Basic Linux commands-general Linux technology-Linux technology and application information. For more information, see the following section. Mode switch
1. From characters to graphics # startx or init 5
2. From graphics to characters # logout or init 3
3. log out # logout, exit, or ctrl + d
4. shutdown # poweroff or init 0 or shutdown now or halt-p
5. Restart # reboot, init 6, or shutdown-r now
Get help
# Help provides help for internal commands # man Or info provides help for external commands.
Cd
This command is used to access the directory. It is used in the same way as in dos, so I think there is nothing to say, but there are two points to add.
Mkdir
This command is used to create a new directory.
Rmdir
Used to delete a Created directory.
Cp
This command is equivalent to the copy command below dos. Usage: cp? R source file (target ).
Rm
This command is used to delete files.
For example, I want to delete a file named test: rm? I test
Mv
The function of this command is to move a directory or file. The extended function is to rename a directory or file.
Du
This command shows the disk space occupied by the current directory.
Df
This command shows the remaining disk space of the current disk.
Cat
This command is a very important command in linux. Its function is to display or link common ascii text files.
Cat text displays the text file;
Cat file1 file2 displays file1 and file2 in sequence;
Cat "file1" "file2"> file3 combines the content of file1 and file2, and then redirects (>) to file3.
More, le
These are two commands for displaying common text files.
Pwd
This command immediately shows the absolute path name of your current working directory.
Clear
This command is used to clear the screen. It does not require any parameters and has the same function as cls under dos. If you think the screen is too messy, you can use it to clear information on the screen.
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