Linux LS Command

ls command is used to listing file and directories by default,it will list the content of current directory.with some parameters,we can do more using ls command.

Syntax

$ls [options] [file/directory]

Example


$ls
							

Options

Sr.No

Options

Descriptions

01

-a

list all files including hidden file starting with '.'.

02

-color

colored list.

03

-d

list directories - with '*/'

04

-F

add one char of */=>@| to entries

05

-i

list file's inode index number

06

-l

list with long format - show permissions

07

-la

list long format including hidden files

08

-lh

list long format with readable file size

09

-ls

list with long format with file size

10

-r

list in reverse order

11

-R

list recursiveively directory tree

12

-s

list file size

13

-S

sort by file size

14

-t

sort by time & date

15

-X

sort by extension name

Share Share on Facebook Share on Twitter Share on Google+ Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit