Linux commands to learn -ls command

In Linux, ls command is the full name list, the main role is a list of the current directory.

  1. All directories under the root directory lists the Linux
    ls /
  2. List all the folders and files in the current directory
    ls
  3. The current list of all folders and files in the directory (including the "." At the beginning of the hidden files)
    LS -a
  4. Detailed lists all files in the current directory (including permissions, ownership, file size, etc.)
    LS the -l
    LS -a the -l (including hidden files)
  5. List all start with test or end with .txt files in the current directory
    to the beginning of the test: LS test *
    to the end of the test: LS * .txt
  6. Lists the current directory folder testA of all sub-folders and files
    ls testA /

Guess you like

Origin www.cnblogs.com/wintest/p/11183690.html