Linux Common Command Summary

Source: Internet
Author: User
Tags parent directory

  1. sudo passwd: Set the password under root
  2. mkdir: Creating a Folder
  3. Clear: Clears the terminal's screen
  4. Cd. : Current directory
  5. Cd.. : Parent Directory
  6. RM: Delete file (rmdir: Delete directory)
  7. Touch: Create a file (Lg:touch a.txt)
  8. CP: Copying Files (lg:cp a.txt b.txt)
  9. MV: Moving files (can also be renamed as files)
  10. Cat: View file contents (Lg:cat a.txt)
  11. Echo: Output write content to Terminal (also: echo Hello >> a.txt, i.e. output hello to a.txt, where >> is redirected and append mode, > Redirect and overwrite mode)
  12. grep: Filtering (lg:find ~ | grep. txt, that is: Remove all txt end files in the current directory, |: Pipe character)
  13. GZIP: In situ compression (Lg:gzip a.txt)
  14. Gunzip: In-situ decompression (Lg:gunzip a.txt.gz)
  15. Tar: Extracting files
  16. sudo mount:iso mirroring Mount
  17. Ps-af | MORE: Show All process information (press Q to Exit view)
  18. ls: Query directory under File (Ls-al: Formatted display)
  19. chmod: Change the permissions of a file (Lg:chmod a+w a.txt means that everyone has a.txt Write permission chmod 777 a.txt that all permissions are available for a.txt)
  20. sudo apt-get install xxxxx: Installing software Online
  21. sudo apt-get remove xxxxx: Uninstalling software
  22. sudo dpkg-l | grep XXX: Check if the XXX software is installed
  23. sudo dpkg-i xxxxxxx.deb: Install the Deb end of the package
  24. sudo apt-get install-f: Resolves the dependencies of the package so that the installation can continue
  25. TAR-XZVF xxxxxx: Unzip the. tar.gz End of the package
  26. echo $XXX: Print environment variable (lg:echo $PATH)
  27. Ln-s: Creating Symbolic Links (lg:ln-s/mnt/hgfs\shared/hadoop_jar _hadoop)
  28. SCP: Remote copy (lg:scp-r/etc/hosts [email protected]:/etc/(-r = recursive copy))
  29. SSH: Telnet (lg:ssh 192.168.160.137)
  30. STARTX: Start the graphical interface
  31. ./eclipse &: Background launch eclipse (foreground can still enter other commands with terminal)
  32. Jobs: Query The job number of the background running process
  33. CTRL + Z: Pausing a process running in the background
  34. BG%i: The process of suspending the job number I is running in the background
  35. FG%i: The process for background job number I is placed in the foreground
  36. Unzip: Unzip the ZIP archive package
  37. Nice-n -10./job.sh: When you start the job.sh script, set his priority to 10 run
  38. Renice-10-p 514: Reset Process 514 with a run priority of 10

Linux Common Command Summary

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.