In Redhat Linux, the network interface configuration files are stored in the /etc/sysconfig/network-scripts/ directory. Each network interface is represented by a separate file with a .cfg extension. The file name corresponds to the name of the network interface, for example, ifcfg-eth0 for the first Ethernet interface. Here’s an example of what a typical network interface … Read more
Best/Tutorial
How To Use SSH With Password On Command Line
You can use the ssh command in the command line to connect to a remote server using a password for authentication. Here’s an example of how you can use ssh with a password: ssh user@remote_server_ip After running the command, you’ll be prompted for the password of the user account on the remote server. Once you’ve … Read more
SUSE Linux Restart / Stop / Start Network Service
In SUSE Linux, you can use the systemctl command to restart, stop, or start the network service. To restart the network service, you can run the following command: systemctl restart network.service To stop the network service, you can run: systemctl stop network.service And to start the network service, you can run: systemctl start network.service Note … Read more
FreeBSD: Permanently Delete / Remove Files With Shred
In FreeBSD, you can use the shred command to permanently delete or remove files. The shred command overwrites the data in a file multiple times, making it difficult or impossible to recover the original data. To use shred to delete a file, you can run the following command: shred -uv /path/to/file The -u option tells … Read more
CentOS / Redhat: Chroot And Mount Raid Or Actual Hard Disk From Rescue Kernel / CD
To chroot into a RAID or actual hard disk from a rescue kernel or CD in CentOS or Red Hat, you can follow these steps: Boot the system using a rescue CD or boot into a rescue kernel. Use the fdisk command to identify the partitions on the hard disk. For example: fdisk -l Create … Read more
Ubuntu Linux: Install MySQL Server Version 5
To install MySQL Server version 5 on an Ubuntu Linux system, you can use the following steps: Update the package index: sudo apt update Install the MySQL Server package: sudo apt install mysql-server-5.7 After the installation is complete, run the MySQL secure installation script to secure your MySQL installation: sudo mysql_secure_installation The script will prompt … Read more
Delete SSH Keys Command for Linux and Unix
To delete SSH keys on a Linux or Unix system, you can use the ssh-keygen command. The basic syntax for deleting an SSH key is as follows: ssh-keygen -f /path/to/key -R hostname Where /path/to/key is the path to the SSH key file, and hostname is the hostname associated with the key. For example, to delete … Read more
CentOS / Redhat Linux: Install OpenNTPD To Synchronize The Local Clock
OpenNTPD is a free and open-source implementation of the Network Time Protocol (NTP) that can be used to synchronize the local clock on a CentOS or Red Hat Linux system. To install OpenNTPD on your system, you will need to have the EPEL (Extra Packages for Enterprise Linux) repository configured. Here are the steps to … Read more
/usr/libexec/mysqld: Incorrect key file for table ‘./DBNAME/TABLE_NAME.MYI’; Try To Repair It Error and Solution
The error message “/usr/libexec/mysqld: Incorrect key file for table ‘./DBNAME/TABLE_NAME.MYI’; try to repair it” is a common issue encountered when using the MySQL database system. It typically occurs when there is a problem with the indexes in a table, causing the MySQL server to be unable to access the data in the table. The error … Read more
restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory Error and Solution
The restorecond command is used in SELinux to restore the default SELinux security context for files and directories. If you encounter the error message “Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory,” it means that the file /etc/resolv.conf has more than one hard link and restorecond … Read more