Linux basic commands common

  • Linux command line format of
    the command word [options] [parameters]
  • Features command word
    command word is unique; strictly case-sensitive
  • Features Options
    Options command word to achieve a specific function; options are divided into short form and a - indicates short format; option - represents a long format
  • Features parameter
    parameter is the object of command processing
  • Quick Edit Linux command
    1) tab key
    completion key Linux command; speed up user input commands
    2) a backslash
    \ command to force line breaks
    3) CTRL + K
    after removing the cursor all the characters
    4) CTRL + U
    to delete characters from the cursor position to the beginning of the line
    5) CTRL + L
    clear the display contents
    6) forced termination command to edit
    the CTRL + C
    . 7) using pwd location
    Linux basic commands common
    8) change directory to the root directory cd
    Linux basic commands common
    . 9) to switch to the user's home directory cd
    Linux basic commands common
  • ls common options
    -a show hidden directory
    -A parent directory display
    -l long format details
    -h to KB, M-bit size of the display unit
    -d view the directory attributes
    -R recursively displaying information in the directory
    --color display color
    Linux basic commands common
    Linux basic commands common
    Linux basic commands common
    Linux basic commands common
  • Create directories and files
    Linux basic commands common
    Linux basic commands common
    Linux basic commands common
    Linux basic commands common
  • cp copy the data
    cp common options
    -f found directly covered by the same name
    -i found a reminder of the same name to overwrite
    -p Copy the file directory permissions to maintain the same source file
    -r copy cycle data directory
    Linux basic commands common
  • mv rename a file or directory data is used may be cut
    Linux basic commands common
    Linux basic commands common
  • find Find File
    -name name lookup
    -size size of the lookup
    -user Search User
    -type find the specified type, f files, d directory, b pieces of equipment, c character device
    Linux basic commands common
    Linux basic commands common
    Linux basic commands common
    Linux basic commands common
  • Common options rm
    -f not remind forcibly remove
    -i remind confirm
    -r circulation delete the directory data
    Linux basic commands common
    Linux basic commands common

Guess you like

Origin blog.51cto.com/14156658/2402486