Linux command (2): ls command

  
        

1, role: list the contents of the directory;

2, format: ls [options] [files]

[options] is specified to view the file-related content, if not The specified file defaults to view all files in the current directory;

3, common parameters:

As shown in the figure:

4, use examples:

[yourname @www /]$ ls –l (can be abbreviated as ll)

total 220

drwxr-xr-x 2 root root 4096 Mar 31 2005 bin

drwxr- Xr-x 3 root root 4096 Apr 3 2005 boot

-rw-r--r-- 1 root root 0 Apr 24 2002 test.run


This example looks at all the files in the current directory and displays the details via the option “-l”.

The display format is as follows: File Type and Permission (Hard) Number of Links File Owner File Group File Size Modified Time Name.

If you want to display all the files at the beginning of “.”, you can use -a, which is very common in embedded development.

Note:

Executables in Linux are not identified by file extensions like Windows, but by setting the executable properties of the file.

Copyright © Windows knowledge All Rights Reserved