Using the LS Command

   

Home Up

 

Display directory listings

Syntax

[-a | --all] [-A | --almost-all] [--author] [-b | -- escape] [--block-size=size]

[-B | --ignorebackups]

[-c] : [-C] : [--color[=when]]

[-d | --directory] [-D | --dired]

[-f] : [-F | -- classify] [--full-time]

[-g] : [-G | --no-group]

[-h | -- human-readable] [-H | -- dereference command - line]

[-i | -- inode] [-I | -- ignore=pattern]

[-k] :

[-l] : [-L | -- dereference]

[-m] :

[-n | -- numeric-uid-gid]

[-N | --literal]

[-o]

[-p | --file-type]

[-q] [-Q | --quote-name] [--quoting-style=word]

[-r | --reverse] [-R | --recursive]

[-s | --size] [-S][--show-control-chars] [--si] [--sort=word]

[-t] [-T | --tabsize=columns]

[-u] [-U]

[-v]

[-w | --width=columns]

[-x] [-X]

[-1]

 

Summary

 

[-a | --all]: Show all entries, including those that start with .

[-A | --almost-all]: Show all entries except those that start with.

[--author]: Show the author.

[-b | --escape]: Print octal escapes for nonprintable characters.

[--block-size=size]: Use the specified size as the block size.

[-B | --ignore-backups]: Do not list implied entries with a trailing ~.

[-c]: When used with -lt, sort by and show the ctime field. With -l, show ctime and sort by name.

[-C]: Display in columns.

[--color[=when]]: Uses color.

[-d | --directory]: Show directory entries rather than contents.

[-D | --dired]: Create output for emacs.

[-f]: Do not sort.

[-F | --classify]: Append indicators to file entries.

[--full-time]: Same as ‘-l --timestyle=full-iso’

[-g]: Same as -l but does not show owner

information.

[-G | --no-group]: Do not display group information.

[-h | --human-readable]: Print sizes in readable formats such as 1M, 2G, etc.

[-H | --dereference-command-line]: Follow symbolic links

[-i | --inode]: Print inode information for each entry.

[-I | --ignore=pattern]: Do not list implied entries matching the specified pattern.

[-k]: Same as --block-size=1K.

[-l]: Use a long listing format.

[-L | --dereference]: For links, show information for the linked file rather than for the link.

[-m]: Fill width with comma delimited entries.

[-n | --numeric-uid-gid]: Same as -l but show numeric user and group IDs.

[-N | --literal]: Print raw entry names.

[-o]: Same as -l but don’t show group information.

[-p | --file-type]: Append indicator (/=@|) to entries.

[-q | --hide-control-chars]: Print a ? in place of non-printable characters.

[-Q | --quote-name]: Enclose entry within quotes.

[-r | --reverse]: Sort in reverse order.

[-R | --recursive]: Recurse into subdirectories.

[-s | --size]: Print file sizes in blocks.

[-S]: Sort by file size.

[--si]: Same as human-readable but uses powers of 1000 instead of 1024.

[--sort=word]: Sort by one of extension, none, size, time, version

[-t]: Sort by time.

[-T | --tabsize=columns]: Set column width (default is 8)

[-u]: Show access time

[-U]: Do not sort files.

[-v]: Sort by version.

[-w | --width=columns]: Set screen width.

[-x]: Show entries in lines rather than columns.

[-X]: Sort by extension.

[-1]: List one file per line.

 

 

 

Order a book or two today - you can download an eBook today for only $1.99!

            

Just click on a book to learn more!

 

Order a book or two today - you can download an eBook today for only $1.99!

            

Just click on a book to learn more!