Fix grammar and add mv command (#22517)
This commit is contained in:
committed by
Christopher McCormack
parent
2403175b05
commit
2f44b97bff
@ -24,39 +24,42 @@ Use these commands in scripts and at the command line. They're all very powerful
|
||||
|
||||
Also, important commands used for System Administrators are following:
|
||||
|
||||
1. `uptime` Command
|
||||
In Linux uptime command shows since how long your system is running and the number of users are currently logged in and also displays load average for 1,5 and 15 minutes intervals.
|
||||
1. `uptime`
|
||||
It shows since how long your system is running and the number of users who are currently logged in. It also displays the load averages for 1, 5 and 15 minutes intervals.
|
||||
|
||||
2. `w` Command
|
||||
It will displays users currently logged in and their process along-with shows load averages. also shows the login name, tty name, remote host, login time, idle time, JCPU, PCPU, command and processes.
|
||||
2. `w`
|
||||
It displays currently logged in users and their processes along-with load averages. It also shows the login name, tty name, remote host, login time, idle time, JCPU, PCPU, command and processes.
|
||||
|
||||
3. `users` Command
|
||||
Users command displays currently logged in users. This command don’t have other parameters other than help and version.
|
||||
3. `users`
|
||||
It displays currently logged in users. This command doesn’t have parameters other than 'help' and 'version'.
|
||||
|
||||
4. `who` Command
|
||||
who command simply return user name, date, time and host information. who command is similar to w command. Unlike w command who doesn’t print what users are doing. Lets illustrate and see the different between who and w commands.
|
||||
4. `who`
|
||||
It simply returns user name, date, time and host information. `who` command is similar to `w` command. Unlike `w` command, `who` doesn’t print what users are doing.
|
||||
|
||||
5. `whoami` Command
|
||||
whoami command print the name of current user. You can also use “who am i” command to display the current user. If you are logged in as a root using sudo command “whoami” command return root as current user. Use “who am i” command if you want to know the exact user logged in.
|
||||
5. `whoami`
|
||||
It prints the name of current user. You can also use “who am i” command to display the current user. If you are logged in as a root using sudo command “whoami” command return root as current user. Use “who am i” command if you want to know the exact user logged in.
|
||||
|
||||
6. `ls` Command
|
||||
ls command display list of files in human readable format.
|
||||
6. `ls`
|
||||
It displays the list of files in human readable format.
|
||||
|
||||
7. `crontab` Command
|
||||
7. `crontab`
|
||||
List schedule jobs for current user with crontab command and -l option.
|
||||
|
||||
8. `less` Command
|
||||
less command allows quickly view file. You can page up and down. Press ‘q‘ to quit from less window.
|
||||
8. `less`
|
||||
It allows quickly view file. You can page up and down. Press `q` to quit from `less` window.
|
||||
|
||||
9. `more` Command
|
||||
more command allows quickly view file and shows details in percentage. You can page up and down. Press ‘q‘ to quit out from more window.
|
||||
9. `more`
|
||||
It allows quickly view file and shows details in percentage. You can page up and down. Press `q` to quit from `more` window.
|
||||
|
||||
10. `cp` Command
|
||||
10. `cp`
|
||||
Copy file from source to destination preserving same mode.
|
||||
|
||||
11. `ifconfig` to view ip and other information.
|
||||
11. `mv`
|
||||
Move file from source to destination preserving same mode.
|
||||
|
||||
12. `systemctl` Command
|
||||
12. `ifconfig` to view ip and other information.
|
||||
|
||||
13. `systemctl` Command
|
||||
This is a command which allows operators to work with the Linux system services. The standard use of the command is `systemctl <OPTION> <SERVICE-NAME>` by providing an `OPTION` (e.g. `start`, `stop`, `status`) and than providing a specific Service Name to act on. You can use the command to get a general status of your Linux services (e.g `systemctl status`). Note that you will either need Administrator access or use `sudo` to elevate your rights to run the command successfully.
|
||||
|
||||
These commands are frequently used by adminstrators. This is not a complete list, but it’s a compact list to refer to when needed.
|
||||
|
Reference in New Issue
Block a user