Explain a Command

Check what a command does, share a command with an automatic detailed explanation.


Print the largest files or folders in the current dir
du -s * | sort -n | tail
du
du(1)
estimate file space usage
-s
-s, --summarize

display only a total for each argument

** matches all items in the current working directory
| Output of above is piped to:
sort
sort(1)
sort lines of text files
-n
-n, --numeric-sort

compare according to string numerical value; see manual for which strings are supported

| Output of above is piped to:
tail
tail(1)
output the last part of files

Sample Commands

List files, newest first
ls -lth

See commands currently using the internet
lsof -i -n

Print the largest files or folders in the current dir
du -s * | sort -n | tail

Generate a random 16-char password
strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 16 | tr -d '\n'

Read More

Blog entries:

Want to build something like this? Have a look at ManKier's API.

For another take on explaining commands, check out explainshell.com.