ls command

1. File type:

Query all files in the bin directory:

share picture

-: file

Beginning: soft link

d Start: Directory file

2. File permissions:

Share pictures

r: read permission

w: write

x: execute

3. View directory information:

p>

(1) View the information of the directory itself:

Share pictures

(2) View the file information in the directory: share picture

share picture

4. Query directory:

ls:

share pictures

ls -a (show hidden files)

share picture

ls -l(ll) displays the detailed information of each file:

share picture

ls -lh

share picture

Leave a Comment

Your email address will not be published.