Getting help on the Command Line
Help Commands
man
man- Manual page for commandsContent is organized in different sections (Name, Synopsis, Description of the arguments, Examples)
Press
qto exit the man page.
man ls
# man page for the ls command
LS(1) User Commands LS(1)
NAME
ls - list directory contents
SYNOPSIS
ls [OPTION]... [FILE]...
DESCRIPTION
List information about the FILEs (the current directory by default). Sort entries
alphabetically if none of -cftuvSUX nor --sort is specified.
Mandatory arguments to long options are mandatory for short options too.
-a, --all
do not ignore entries starting with .
-A, --almost-all
do not list implied . and ..
--author
with -l, print the author of each file
-b, --escape
print C-style escapes for nongraphic characters
--block-size=SIZE
with -l, scale sizes by SIZE when printing them; e.g., '--block-size=M'; see
SIZE format below
-B, --ignore-backups
do not list implied entries ending with ~
-c with -lt: sort by, and show, ctime (time of last modification of file status
information); with -l: show ctime and sort by name; otherwise: sort by ctime,
newest first
-C list entries by columns
--color[=WHEN]
colorize the output; WHEN can be 'always' (default if omitted), 'auto', or
'never'; more info below
-d, --directory
list directories themselves, not their contents
[...]info
info- a document-like structured replacement for man pages. More in depth information about the command.
command --help
Documentation built into the command, reformated and abbreviated, with specific options usage.
Explain Shell
π Get more information and explanation of complex shell commands at explainshell.com and shell.how.
Last updated
Was this helpful?