Linux is the most widely used OS by the web hosting services providers to host the servers of their clients. Operating a Linux based server is not as easy as operating a windows based one. As Linux is a command driven OS one should be very well familiar with the commands required for particular operations. Here I would like to share some most frequently used commands while working on a Linux Hosting Server.
Hostname – This command is used for finding host/domain name and IP address
hostname –d displays the domain name the machine belongs to
hostname –f displays the fully qualified host and domain name
hostname –i displays the IP address for the current machine
ping – This command is used to test network connection. Testing the network connection is necessary to ensure establishment and Timing information as to the speed of the connection.
Ifconfig – This command is used to view the current network adapter configurations and it is also useful to check the transmit (TX) or receive (RX) errors.
netstat – It is very useful to find connection to and from the host, routing tables, interface statistics with the hosts. Furthermore you can use ‘netstat -g’ to find out all the multicast groups (network) subscribed by this host.
nslookup – It is used for tracing the hostname by entering the IP address, you can also find all the IP addresses for a given domain name.
telnet – It connects destination host via telnet protocol, if telnet connection established on any port then you can predict the connectivity between two hosts is working without any problem.
traceroute – It is useful to view the number of hops and response time to get to a remote system or web site is traceroute.
Finger – When you want to view a user’s login name, real name, terminal name and write status, then you can use this command.