What is a file in Linux? How can many documents be organized effectively?

Source: Internet
Author: User

Directory: path mapping;

File: Storage space Storage of a stream of data, the data can be accessed by name;


File system: Hierarchical structure, indexed;

/: Original starting point;

Inverted tree-like structure;


/DEV/PTS/2:

Leftmost/: Represents the root directory

Other/: Represents the path delimiter

The path delimiter for Linux is/

Windows is the \


The path to the file is represented by:

Absolute path: The path represented from the root

Relative path: The path represented at the beginning of the current position


Rules for using file names:

Strictly differentiate character case: File1, File1, FILE1

The directory is also a file, under the same path, two files cannot have the same name;

Supports the use of any character other than/;

Maximum of 255 characters;


User has home directory: Home,

The user's starting directory, the location of the common user management file;

Working directory:


/etc/sysconfig/network-scripts/ifcfg-eno16777736

BaseName: The right-most file or directory name;

Dirname:basename the path to the left;


Command:

~]# Basename/path/to/somefile

Somefile

~]# Dirname/path/to/somefile

/path/to


What is a file in Linux? How can many documents be organized effectively?

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.