Last Updated on
Insight: List of useful and practical Linux server commands.
Let’s have a quick look into the list of useful and practical Linux server commands which can be useful for the system administrator.
Useful And Practical Linux Server Commands
Easy to use and simple command for the Linux beginner.
users # users --version # users --help
The command to check the running time of our system.
# uptime # uptime -p
Displays all the users logged in a system and their activities.
Note: Use –ip-addr or -i to print out the IP of the remote hosts.
Similar to w command to display information about remote users.
# who # who -b ( to print when the system was booted) # who -d (-d or –dead to show the dead processes) # who --ips ( to print out the IP of the remote hosts instead of their username.)
The whoami tells who you have logged in as.
# whoami # whoami --version # whoami --help
The scp (Secure Copy) command is used for transferring files between remote Linux hosts securely.
# scp user@remote_host:filename.txt /local/documents/
The ssh command in Linux helps to manage remote hosts over the secure shell protocol.
# ssh user@host # man ssh
The netstat command is a Linux tool/command that admins can use to view all active TCP connections, socket states, routing tables, and many more.
# netstat # netstat -l # netstat -a | more
Display the routes of the packets.
# traceroute google.com # traceroute example.com
The ifconfig tool is used to view their network interfaces and assign, add, delete, or control interface parameters.
# ifconfig # ifconfig | grep inet # man ifconfig
The tcpdump command displays the TCP/IP packets transmitted and received by your system.
# tcpdump # tcpdump -c 15 # tcpdump --help
The sestatus command allows us to view our SELinux status directly from the command line.
# sestatus # man sestatus
The nload program is simple and easy to use to monitor the incoming and outgoing network traffics for their servers.
# nload # nload devices wlp1s1 # nload --help
The dhclient command allows admins to monitor the IP address, subnet, gateway, and other information related to the DNS server.
# dhclient eth1 # man dhclient
The ps command displays information about system processes.
The free command is used to check the available and occupied memory of your Linux server.