Linux Series: Shell script programming

Source: Internet
Author: User
Tags diff

File system

1. File system partition structure is divided into Inode group and data domain

The 2.linux file is divided into directories and binary files

3. Catalog items are stored in the directory, and the directory entry records the file name and IndexID, each indexid corresponds to a meta-data structure in the Inode group.

4. The metadata structure contains the permissions, type, size, pointers and other data, through the pointer can find the location of the binary file

Ls:list File Information

Ls

-A lists all files

-L Detailed information

-I list IndexID

Diff:different differences of two files

Diff Test.java Testcopy.java

If there is no output that indicates that two files are consistent in content

Cp:copy

Copy location/file name Location---copying files

Copy share/share2-r---Iteration replication directory

Rm:remove

RM location/File name---Delete file

RM location/-R---iteration delete

Note that, in fact, the deletion does not clear the binaries, only the directory entries in the directory are deleted, and the Inode group is marked as idle in the particular ID.

Mv:move | Rename

MV Location/File location---moving files

MV File New FileName---Rename

Aided

Alias L = ' ls-l '---aliases

Linux Series: Shell script programming

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.