Linux Shell command (2)
First, switch on and off & restart
Command
Description
General usage
Poweroff
Shut down the computer operating system and power off the system
1. Poweroff (direct shutdown)
2. Poweroff-f (forced shutdown of the operating system)
Shutdown
Shut down the system in a safe way
1. Shutdown-h now (shutdown)
2. Shutdown-h 23:00 (shutdown at 11:00 in the evening)
3. Shutdown-r now (restart)
4. Shutdown-r + 1 'reboot after 1 min' (restart after 1 minute, and prompt reboot after 1 min)
Reboot
Restart the system
1 、 reboot
2. Reboot-f (forced restart of the system)
Linux Shell command (2)
II. Terminal identity query
Command
Description
General usage
Tty
Displays the file name of the end device connected to the current standard input
[root@localhost ~] # tty
/ dev/pts/0
W
Displays the user information that is currently logged into the system
[root@localhost ~] # w
The above are today's switch & restart and terminal identity query commands, to learn more about Linux Shell commands, please continue to follow our column.
To learn more about linux courses, join the linux communication group for excellent employment, where there will be full-time teachers to answer your questions. In addition, there will be free live classes in the group from time to time, which will be taught by active lecturers. There are still 5 days of free trial activities, the heart is better than action, join as soon as possible. Click http://heze.offcn.com/