Linux commands (4) LS
LS is a command that lists files or directories, and LS is the most commonly used command under Linux. LS is the abbreviation of the list, the lack of saving LS is used to print the current directory list, if LS specifies a different directory, then the specified directory of files and folders list. The LS command can not only view the files contained in the Linux folder, but also can view the file permissions, the LS command in the daily operation of the Linux a lot.
Here are a few of the common LS commands. Detailed can be #man ls to check O (∩_∩) o~
?
Command format:
#ls [-LA1RH] [path]
?
Common parameters:
#ls
List directories and files
?
#ls –l
List of detailed information
?
#ls –a
List all files, including hidden files
?
#ls-1
List only single-file names
?
#ls –r
Reverse order
?
#ls –R
To list all subordinate files in a recursive manner
?
#ls –h
List file sizes
?
#ls –i
Node information