Basics of Linux Basics (ii) Linux file system infrastructure

Source: Internet
Author: User
Tags file system relative touch command linux

The Linux file system is an inverted tree structure, all files or folders are contained in a root directory "/".

Linux systems are strictly case-sensitive and have a name of up to 255 characters

All valid characters except forward slash

Each shell has a current working directory, with command pwd (print work directory) to view the current working directory

Touch command: Create a blank file or update the (last modified) time of an existing file

The file that starts with. is a hidden file, and most of the hidden files are configuration files.

The command "LS" can list current directory information and support the following parameters:

LS-A displays all files, including hidden files

Ls-l Show details of files

Ls-r recursively display subdirectory information

LS-LD Display directory and link information

Command ' file ' can be used to view the file type of the specified file

Linux directory management uses both absolute and relative paths:

Absolute path: To the root directory "/" as the starting point, recursively each level of directory until the destination file/folder, such as:/etc/passwd

Relative path: The path to the destination file/folder, starting at the current directory, such as:. /.. /etc/passwd

The relative path is basically defined as: ".." Represents the Superior directory, "." Represents the current directory,

"~" represents the current user's home directory, and "-" represents the previous working directory

CD ~ Back home directory, direct CD + return is also home directory, no matter in any directory, cd+ return is home directory

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

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.