change hostname on RHEL/CentOS 7/Almalinux 8/9
To change hostname on RHEL / Almalinux 8/9 hostnamectl set-hostname server.domain.com
To change hostname on RHEL / Almalinux 8/9 hostnamectl set-hostname server.domain.com
Edit /etc/ssh/sshd_config $ nano /etc/ssh/sshd_config Look for: #Port 22 Change to any port number of your choice, for example, 1234 Port 1234 (remove # from the beginning and change 22 to 1234, make sure not to use a port number that’s already used by another service like 80,21,443,53,25 etc..) 2) Add the port number to the
You can move between folders in linux using command cd ‘Change Directory’ cd /folder/destination/, move to destination folder. cd / , move to user root folder or cd ~ , move to user root folder cd .. , up one folder or cd ../ cd – , back to previous location You also can display the
Quick reference to move between folders in Linux CLI Read More »
There are many ways to read files in linux using bash screen. Command head <filename>, show the first few lines of the file. Command cat <filename>, display the file content on screen, not recommended with files longer than 10 lines. Command tail <filename>, used to show the last few lines of the file, it also has
Quick & easy reference to read files in Linux CLI Read More »