50 basic commands for linux beginners

Source: Internet
Author: User
Linux Beginners should master 50 basic commands-general Linux technology-Linux technology and application information. The following is a detailed description. Author: Chao Hua Xi

Parameters and tips: Click man to close your eyes.

1. ls-a lists all files in the current directory, including hidden files with a. header (for example ~ /. Bashrc)

Ls? L list the details of files in the current directory

2. pwd: view the absolute path of the current directory

3. Move between cd Directories

4. Create a directory with the mkdir directory name

5. delete an object with the rm file name

6. view the content of the cat file name (full screen view)

7. view the file content by file name more (move left and right)

8. view the file content using the less file name (move up, down, and left/right)

9. The mv path file name moves the file to the path

Renamed the mv file name

10. The grep character file name can be used to view part of the file content based on character matching.

11. find the path-name "string" to find the files and directories that match the string.

12. ln Source File Link name creates a hard link to the source file

Ln-s source File Link name creates a soft link to the source file

13. Create a file with the touch file name

14. df shows the total capacity, usage, and remaining amount of the file system.

15. view the current/home directory capacity (k) and subdirectory capacity (k) in du-B/HOME)

16. fdisk-l view system partition information

17. mount-t file system type device path access path

18. chmod *** permission for executing write and read operations on file name Modification

19. Comparison of diff file names and file names

20. top dynamic ps? Aux static pstree process tree Viewing System Processes

21. program name & background running program

Fg transfers the processes running in the background back to the foreground

Bg transfers the foreground running process to the background

22. halt init 0 shutdown? H now shut down the system

23. reboot init 6 restart the system

24. init [0123456] changed the system running level, 7 types

25. at 5 pm + 3 days/bin/ls specify to execute/bin/ls at pm three days later

26. crontab periodic Task Command (details are recommended)

27. date display date command

28. cal command for displaying calendar

29. A good simple calculator for bc

30. man command query command help

31. which view the location of the executable file

32. whereis view the location of the file

33. Use locate with the database to view the file location

34. gzip bzip2 compress compression and decompression command

35. Use vi to edit files for VI file names

36. alias command alias setting command unalias release alias

37. tar package unpacking command

38. The head displays the first few lines of the file. The tail displays the last few lines of the file.

39. | MPs queue> Redirection

40. od reads the file content in binary format

41. log on to the super administrator su do and run the command as a manager.

42.tar package installation instructions

./Configure? Prefix =/usr/local configuration before Compilation

Make Compilation

Make install the compiled source code package

43. rpm? Parameter rpm installation query deletion upgrade, etc.

44. ifconfig network configuration command

Ping the target host

Netstat displays listening ports and processes

45. clear Screen

46. useradd Add User

47. Change passwd Password

48. chgrp chown modify the user group owner of the file

49. dd commands used for backup

Dd if = "input-file" of = "output-file"

50. sh Script File Execution script file
Related Article

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.