Appendix A. Linux Commands
-
alias Creates a command that runs other commands. Aliases are a handy way to customize your system and to provide shortcuts for common activities. For example, the following alias creates an easy-to-remember name for unpacking a compressed archive:
alias extract='tar zxovf'
Put an alias into the file /etc/bashrc if you would like the alias to be always accessible to all users on the system. Type
aliasalone to see the list of aliases for your account. Useunaliasto remove an alias.-
alias ls="ls --color=tty" Creates an alias for the command
lsto enhance its format with color. In this example, the alias is also calledlsand the color option is evoked only when the output is done to a terminal (not to files).-
apropostopic Shows which man (documentation) pages cover the topic specified.
-
bashfilename Runs a script, or file containing
bashshell commands.-
bunzip2filename.bz2 bunzip2stands for big unzip. The command decompresses files with the extension .bz2. Such files have been zipped withbzip2compression utility, which is usually reserved for large files and/or directories.-
catfilenames Combines all listed files in order and displays them on the screen. Useful for showing plain text files; if they are long, they should be displayed with less or more. Also often used to combine files into a single file specified after a > character, as in:
cat a1 a2 a3 > complete_file
-
cddirectory cdstands for change directory. For example, if you want ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access