This article help System Administrators to learn common useful and frequently used Linux or Unix commands some commands are critical and we should be aware and understand the commands carefully before run it on your VPS or dedicated servers.
Uptime Command :uptime command shows since how long your system is up and running ,also show the number of users are currently logged in in the system and displays load average for 1,5 and 15 minutes intervals.
W Command : W displays information about the users currently on the Server , and show user’s processes. The header shows, in this order, the current time,how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes .The command has the following options:
Users Command :displays the current logged in users.
Who Command :who command is similar to w command. Unlike w command who doesn’t print how user’s processes.
The command has the following options:
Whoami Command :display the current user, as example if you are logged as root the result will be root.
ls Command :ls command display list of files in human readable format for the current location. You can use ls -ltr to display the result with sort files by last modified time.
Crontab Command :The crontab is a list of commands that you want to run on a regular schedule, and also the name of the command used to manage that list. The crontab -l will display list of cron schedule jobs
crontab -e: This will open the crontab in a text editor
More Command :more command allows quickly view file and shows details in percentage. You can page up and down. By Pressing ‘q’ letter you can quit from more window command.
Less Command :more command allows quickly view file . You can page up and down. By Pressing ‘q’ letter you can quit from less window command.
Copy Command :Copy file from source to destination . Or you can use the command cp -i sourcefile destinationfile To prompt before overwrite file.
Print Working Directory Command : Show the current directory for the current logged user session.
VI Command : for editing the file after showing the file contents Press “i” to start edit the file and press ESC to end edit and then type :wq to write the update .
SSH Command : SSH command is used to login into remote host server by passing IP address with username .
To check the version of ssh use option -V (uppercase).
Ftp/sftp Command : To connect to remote server using FTP protocol or sftp to remote secure FTP protocol .
To check the version of ssh use option -V (uppercase).
To ignore the SSL certificate use set ssl:verify-certificate no after you logged to remote ftp server
Service Command : The service command allow you to start stop and restart the Linux services .
Memory Command : free command show free, total and swap ,available memory information in bytes .
Top Command : displays processor activity of your system and also displays tasks managed by kernel in real-time. To quite the window press “q”
Extract Zipped file Command : the following show how to Extract “.zip”,”.tar”,”tar.gz”,”.rar”
Grep Search Command : grep command search string in all files in the current folder ,or search keyword in a file contents
lsof Command : display the currnet of all opened files , you can specify the opened files by user
last Command : display user’s activity in the system
Remove File Command : Command with options to remove or delete files
Folders Command : Commands to make new directory or remove directory
Disk Space Command : Determine how much disk space You have in Linux and Unix
Each failover IP address will need its own line in the configuration file. The configuration…
What is mdadm? The mdadm utility can be used to create and manage storage arrays…
There are several scenarios that you might need to increase or decrease your php maximum…
What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…
Python normally installed on all cPanel hosting server because most of Centos/red hat update system…
Usually CentOS 7 comes in a numbers of variants, For most users, there are two…