List Ls command in linux with examples

Cal Command In Linux OS








Linux Is World No.1 Computer Operating Systems.This system is open source and Free OS.This system is virus FREE OS Computer.







Linux Listing LS Command Using In Computer Operating System.



1) List the all files, directories and sub-directories.

Ans = ls

2) List the full detailed of files, directories and subdirectories.

Ans = ls -l

3) Display the file size in human readable form.

Ans = ls -b

4) Sort the file in according to the size smallest to the largest.

Ans = ls -hs

5) List the hidden files.

Ans = ls -a

6) Displays only sub directories.

Ans = ls -R
7) Display files and directories starting form Z-A.

Ans = ls -r

8) Display the same extension file together.

Ans = ls -x

9) Command which display the files according to the last modification.

Ans = ls -t

10) List the content of the Home directories.

Ans = ls ~

11) List the content of the parent directories.

Ans = ls ..




Other Command 


Option Description

ls -a list all files including hidden file starting with '.'

ls --color colored list [=always/never/auto]

ls -d list directories - with ' */'

ls -F add one char of */=>@| to enteries

ls -i list file's inode index number

ls -l list with long format - show permissions

ls -la list long format including hidden files

ls -lh list long format with readable file size

ls -ls list with long format with file size

ls -r list in reverse order

ls -R list recursively directory tree

ls -s list file size

ls -S sort by file size

ls -t sort by time & date

ls -X sort by extension name


EmoticonEmoticon