28.09.2018 Views

Linux Dummies 9th

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A: Common <strong>Linux</strong> Commands<br />

411<br />

Command<br />

compress<br />

gunzip<br />

gzip<br />

tar<br />

uncompress<br />

unzip<br />

zip<br />

Purpose<br />

Compresses files into .Z format. Pretty old and not used<br />

much in the <strong>Linux</strong> world anymore.<br />

Uncompresses .gz files and .tgz files.<br />

Compresses files into .gz format.<br />

Packages files together in a group called a tarball. The<br />

most common way of using this command is tar xvf<br />

filename, as in tar xvf download.tar.<br />

Uncompresses files from .Z format.<br />

Uncompresses files from .zip format.<br />

Compresses files into .zip format.<br />

Built-in bash commands<br />

Some commands don’t even seem to exist if you try to look up their help<br />

information in the man pages, and the commands themselves don’t show up<br />

as files on your system. Remember, as you type commands at the prompt,<br />

you’re communicating with a type of program called a shell. (The bash is<br />

the default <strong>Linux</strong> shell.) The shell has a set of commands that you can use to<br />

communicate with it, as shown in Table A-3.<br />

Table A-3<br />

Command<br />

alias<br />

env<br />

export<br />

history<br />

unalias<br />

Purpose<br />

Shell Commands<br />

Creates or lists command shortcuts.<br />

Lists your current environment variables and their settings.<br />

Whenever you’re told to set an environment variable, create<br />

the variable and then use this command so that the variable<br />

will be remembered properly.<br />

Lists the last 1,000 commands you’ve typed.<br />

Removes command shortcuts.<br />

If you try to view the man page entries for some of these commands, you find<br />

instead that the help information for BASH BUILTINS appears. To search<br />

through this manual, press the forward slash (/) key to open the man search<br />

interface — and then type the name of the command you want to search for.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!