Linux Basic Commands Personal note essence

Source: Internet
Author: User

Catalogue and documents

  1. Pwd
    -P Returns the true path of the link
  2. Cd
    CD-Return to the previous directory
    CD switch to the current user's home directory
  3. Ls
    -D displays information about the directory itself rather than the information in the directory
    -C Displays the time when the file or directory attribute was last modified
    -U shows when the file or directory was last accessed
    -T to modify the time sort, by default sort by file name
  4. Mkdir
    -P Create a multilevel directory
  5. Find
    find[command options [path] [Expression options]

    Option:-empty find a blank file or directory

    -group Find by group

    -name Search by name

    -iname Case insensitive

    -mtime Modify Time Lookup

    -size

    -type f,d,b,c,l

    -user

    -exec executing commands on the found document

    -A

    -O

  6. Du view the capacity of a file or directory

-sh Show only Totals

View File Contents

  1. Cat

    -B Displays line numbers, blank lines do not appear

    -N Displays line numbers, including blank lines

  2. Tail

    -F Dynamic display of file contents, CTRL + C exit

  3. Wc

    -l display number of file lines

  4. grep

    -i

    -v

    --color

  5. Echo

    -N does not output line breaks

    -E supports escape characters starting with backslashes, masking the original meaning of the character behind the backslash

    If you use the-e option, you can recognize the special meaning of the following sequence of characters

    \ \ Backslash

    \a Alarm

    \b Backspace key

    \c does not generate extra output

    \f Input form format, keep cursor position after line break

    \ nthe line break

    \ t generates a horizontal tab

    \v Creating a vertical tab

Linux Basic Commands Personal note essence

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.