Basic knowledge of Linux in three major systems

Source: Internet
Author: User
Tags create directory

Three major systems:
1,linux 2Windows 3 Unix
A shutdown, reboot some settings
Shutdown-h now "shut down immediately"
or Poweroff.
Shutdown-h 10 "Shut down after 10 minutes"
Shutdown-h 22:30 "22:30 shutdown"
Init 0 shutdown
Shutdown-r Now "reboot immediately"
or reboot.
Shutdown-r 10 "10-minute reboot"
Shutdown-r 22:30 "22;30 Restart"
Init 6 Restart
Shutdown-c "Cancel shutdown restart Settings"

Two virtual consoles
CTRL+ALT+F2 "First Virtual Console"
Ctrl+alt+f1 "Back to the first Virtual Console"
1 The corresponding introduction
[Email protected] ~]#
Root indicates the current user name
LocalHost indicates the current host name
~ Indicates the current directory

Indicates the user logged in

2 Basic View command word
[[email protected] ~]# whoami "View Current User"
Root

[[email protected] ~]# su-chen "Switch User"
[Email protected] ~]$

[[email protected] ~]# hostname-s "View host name"
localhost

Three: Command format
command word [options] [parameters]
The command word indicates the specific command to complete the corresponding operation
Options indicate the requirements of the command
Parameters represent the objects that the command acts on
[] Indicates an option, see the specific situation

 四:常用命令

1 Directory class commands
PWD "View current directory"
mkdir "Create directory"
CD directory Name "Go to Directory"
Cd.. "Back to top level"
Cd.. /.. "Return to the upper level of the previous level"
CD/"Go straight back to the root directory"
mkdir xixi haha "can create multiple directories, spaces separated"
RmDir xixi haha "can delete multiple directories, spaces separated"
Cd-p 6/66/666 "can open the specified directory, enter the corresponding directory"
Du statistics directory and spatial usage of files
-a "show all sizes of files in bytes"
-H "Display information in more readable byte units (k,m)"
-S "show the size of all files"

Basic knowledge of Linux in three major systems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.