[Linux learning] entry level of common Linux commands

Source: Internet
Author: User

For Linux Command usage, there are a lot of available information on the Internet, especially here at http://linux.chinaitlab.com/special/linuxcom/. this article only lists simple commands for simple usage!

1. CD [directory path/directory name under the current directory]

Go to the directory specified by the parameter. CD .. from the current directory to the previous directory; CD/switch to the root directory; Cd ~ Switch to the user directory.

2. ls/dir [directory path]/null

List objects and folders in a specified or current directory. Ls-L is similar to the display details on windows; ll is the same as LS-l, but there is a senior who will make less use of it; Dir hey, like on Windows, if you do not like ls coloring, this is convenient.

3. mkdir [Folder name]

Create a folder.

4. Touch [file name]

Create a blank file.

5. RM [file name/folder name]

Delete a file or folder. If the folder to be deleted contains subfolders, add the recursive parameter R, that is, the RM-r file name.

6. ifconfig

No need to explain, like ipconfig on Windows.

7. Ping [IP address]

No need to explain.

8. Su [user name]

Switch to another user. If the user name is blank, switch to root.

9. passwd [user name]

Set a password for the user.

10. VI [file name]

Go to the VI editor to edit the file. VI editor of the use of entry is still relatively difficult, there is a portal here: http://linux.chinaunix.net/techdoc/beginner/2009/08/12/1129794.shtml

11. Who

View the current logon user.

12. CP [file 1] [directory 1]

Copy file 1 to directory 1.

13. Mv [directory/file 1] [directory/file name 2]

Move a directory or file.

14. chown

Change file permissions.

15. Reboot

Restart

16. Shutdown [parameters]

Shutdown

17. ln

Add File Link: ln-s File Link name

18. PS-Aux | grep "XXX"

List all processes and filter out processes containing XXX content

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.