Share Linux CentOS7 VMware system directory structure, ls command, file type, alias command--notes

Source: Internet
Author: User

First, the system directory structure

To build a directory tree structure:

Tree-a Show All

Tree-d Show only Directories

Tree-l n N Represents the number: Indicates how many layers to display ...

TREE-F Displays the full path:

Yum install-y Tree

Tree--hep

Mans Tree

Second, ls command

List Full Write

LS Shorthand

LS/Displays the non-shadow files and directories in the current directory

Related directives:

ls/bin/
ls/sbin/
ls/boot/

Ldd/bin/ls
Ls/lib Library file


Ls/lib64

ls/proc/Process LS/PROC/1

ls/usr/

Ls/usr/lib/usr/lib64

Ls/war/log/messages
ls/var/run/
ls/usr/bin/usr/sbin/bin//sbin//etc//var//usr/local//proc/

Iii. Types of files

LS directory: Specifies the directory to display the list, or it can be a specific file

LS-A displays a list of all files, including shadow files, in the current directory

Ls-l Output Long Format list

ls-i-L display inode information for a file

The index node (the index inode is referred to as "Inode") is a special concept in Linux, and two text with the same index node number is essentially the same file (except for the file name).

Ls-la is to list all files and directories in the current directory, including hidden files and directories

Ls-l/bin/ls compiled files cannot be viewed

Ls-l/dev/log Communication S opening file

D: Catalogue

-: Normal document, binary

C: String

B: Block device (Optical drive, CD-ROM)

S:socket file

L: Then link file

Iv. alias Command

Alias to see if the command has an alias

Example: Aliases for davery: Alias davery= ' LS-LHB '

Alias: Unalias Davery

The which command is to find out if a command exists, and where the command is stored

Share Linux CentOS7 VMware system directory structure, ls command, file type, alias command--notes

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.