Discover built-in Linux help tools — whatis, man, —help, and apropos — to quickly look up command usage and find the right command for any task.
When you need assistance with Linux commands, there are several built-in help options that provide a quick reference or detailed information about command usage.
The man command displays the full manual page for a command, including its usage, all available options, and examples.
karchunt@kcserver:~$ man lsLS(1) User Commands LS(1)NAME ls - list directory contentsSYNOPSIS 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. -a, --all do not ignore entries starting with ....
Press q to exit the man page viewer. Use / followed by a keyword to search within the manual.
Most Linux commands support the --help (or -h) option, which prints a concise summary of usage and available flags directly in the terminal — without opening the full manual.
karchunt@kcserver:~$ ls --helpUsage: ls [OPTION]... [FILE]...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...
The apropos command searches manual page names and descriptions for a keyword. This is especially useful when you know what you want to do but don’t know the exact command name.
karchunt@kcserver:~$ apropos copycp (1) - copy files and directoriescpgr (8) - copy with locking the given file to the password or group filecppw (8) - copy with locking the given file to the password or group filedd (1) - convert and copy a filedebconf-copydb (1) - copy a debconf databasegit-checkout-index (1) - Copy files from the index to the working treeinstall (1) - copy files and set attributesobjcopy (1) - copy and translate object filesrsync (1) - a fast, versatile, remote (and local) file-copying toolscp (1) - OpenSSH secure file copyssh-copy-id (1) - use locally available keys to authorise logins on a remote machinestring_copying (7) - copying strings and character sequences