Skip to content
This repository was archived by the owner on Jun 2, 2020. It is now read-only.

Latest commit

 

History

History
38 lines (27 loc) · 707 Bytes

File metadata and controls

38 lines (27 loc) · 707 Bytes


ls

ls ls command lists the contents of, and optional information about, directories and files. With no options, ls lists the files contained in the current directory, sorting them alphabetically.

$ ls [option ...] [file]...
ls [option ...] [file]...

Useful Options / Examples

ls -a

Shows the hidden files in the directory as well.

 $ ls -a
 a.txt b.txt c.txt

ls -l

Shows file or directory, size, modified date and time,
file or folder name and owner of file and its permission.

 $ ls - l
 $ -rw-r--r--. 1 <directory>   683 Aug 19 09:59 a.txt
 $ -rw-------. 1 <directory>   1586 Jul 31 02:17 b.txt