Let’s say we want to search for text lophost in file /var/log/messages We can do this using command grep. Login […]
How to rename a file via SSH
On a Linux server you can rename a file using mv command. Let say you want to rename file-one.txt to […]
How to List All Open / Listening Ports on a Server
You should open only limited ports for incoming and outgoing traffic on a server. You can use firewall like CSF […]
How to Start, Stop and Restart MySQL from SSH
Using below commands you can start, stop and restart MySQL from SSH. Login to your server as root via SSH, […]
How to find Hostname of Linux Server
Use following command to know the hostname of your server. hostname You should run above command in SSH as root […]
How to update CentOS all Packages except Kernel
If for some reason you do not want to update your server kernel but want to update other packages running […]
How to copy Files and Folder from one server to another server
If you want to copy a file / folder from one server to another, you can use wget or scp […]
How to copy paste in putty
PuTTY is a free and open-source SSH / telnet client for Windows and Unix platforms. A newbie can find it […]
How to Stop / Exit from Ping in SSH
If you use ping command in SSH, it will continue pinging and extending output lines without any stoppage. Something like […]
How to change SSH port on CentOS 7 Server
The default SSH port on centOS 7 (32-bits / 64-bits) server is 22. But for security reasons, it is recommended […]