Linux File processing commands

Source: Internet
Author: User

  • About 3,000 commands in Linux, need to master and familiar with sixty or seventy commands, each command to knock at least 3 times
  • Ls-alh
    • A show all files including hidden files
    • H Display user-friendly file size
    • L Display the file details
      • -rw-r--r--
        • First bit-Indicates file type
          • -Represents a file
          • D indicates directory
          • L indicates a soft connection file
        • 9 bits in the back, every three bits for a whole
          • Rw-u owner Readable writable
          • r--g belongs to group only readable
          • r--o others are only readable
          • R Read W write x executable
      • Next is the file reference count file size file last modified time
  • Mkdir-p
  • Pwd
    • Print working directory
  • Rm-rf
    • The character interface of Linux is no Recycle Bin, deleted can be really no
  • Cp-a = cp-pdr
    • Connected directories, file attributes copied together
    • -D If the source file is a linked file, copy the link property
  • ln-s [Source file] [destination file] Generate link file
    • What are the differences between soft links and hard links?
      • Soft links are somewhat similar to shortcuts under Windows
      • Hard links are real duplicates and can be seen as the same file
      • Use more soft links in real-world applications

Linux File processing commands

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.