Python Full stack Development--linux command Learning

Source: Internet
Author: User
Tags gz file disk usage server memory

  • linux--All Documents
  • PWD: View your current directory
  • '/': root directory
  • CD: Switch directory eg.cd/switch to root directory
  • LS: View the current root directory with several disks, several files
  • Ls-l: View Details (the first character is the d--> table of contents)
  • LS-LH: User-friendly Display file list
  • Cd.. : Returns to the previous level directory
  • Vim file name--Enter-->i Enter insert mode input--press ESC to exit-simultaneously hold ' shift ' + ': ' and enter Wq to save the file and exit
  • Vim. File name: Create a hidden file
  • Ls-a: Show hidden files
  • Cat file Name: View file contents
  • More filename: Slowly viewing the contents of a file
  • mkdir directory: Creating a new Directory
  • MV FileName Directory Name: Move the file to another directory
  • Mkdir-p Directory 1/directory 2/directory 3/.../: Creating a directory recursively
  • Tree Directory 1: Display the table of contents 1
  • Man command: Query Help
  • Command--help: Simple Help
  • Help CD: View some Linux built-in commands
  • CP files/Directories: Copying files to the directory
  • Find path-name "file name": Find File (* file name *--fuzzy query) "Query by file name"
  • Find Path-size +90m | Xargs ls-lh "Query by Size"
  • Touch Path/File name: Create file
  • RM File: Delete file (dangerous!) )
  • Tar zcvf name. tar.gz file 1 File 2 ... : Package A file
  • FREE-M: Viewing server memory usage
  • IP A: View current IP Address
  • Useradd User name: Create user
  • Chown. Genus Group file name: Owner and owner of modified file
  • r--Read permission (4) w--Write permission (2) x--Execute permission (1)-—— no permissions (0)
  • chmod Right (eg.777) file name: Modify file Permissions
  • DF: View Linux disk usage
  • Df-h: User-friendly display of disk usage
  • Top: Viewing system performance (input Q exit)
  • Kill process Number (PID): End a process
  • cpu:user--user processes account for CPU IDLE--CPU idle rate of CPU system--OS itself iowait--cpu wait io time than

Python Full stack Development--linux command Learning

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.