Basic Linux commands

Below is a list of Linux commands organized by theme. Use man and info to learn more about each command (or use the links to the right for some tutorials).

Account management

Exiting from a shell prompt (to close a terminal window or to log out)

File system navigation / directories

We have a tutorial on manipulating files.

Searching for files by name

Searching through contents of files

Determining file types

Viewing text files

Editing text files

Compressing and decompressing files

File extension Compression command Decompression command
.gz gzip gunzip or gzip -d
.bz2 bzip2 or bzip2 -d bunzip2
.zip zip unzip
.Z compress uncompress

Reading compressed text files

Archiving (packaging) files and directories

Commands for managing print jobs

Using floppy diskettes and CD-ROMs

Remote access

To run applications in the background

Useful system commands

Command line history, I/O redirection, and piping

Miscellaneous

Starting applications

The basic viewer applications

File extension Viewer
.pdf xpdf acroread
.ps ggv ghostview gs
.dvi xdvi
.jpeg .png xview gthumb eog

Transforming between document formats

from\to .tex .dvi .ps .pdf .html
.tex latex pdflatex latex2html
.dvi dvips
.ps ps2pdf
.pdf pdf2ps
.html

Image manipulation from a shell prompt

There are programs for manipulating image files that can be run at a shell prompt without a need for a graphical interface like the one that the gimp application uses. These programs are know under the collective name Netpbm which also stands for a collection of image formats (also known as npm formats) that can be used as intermediary formats for converting bettwen the most popular standard image types (e.g. .jpeg, .png). These formats have extensions like .ppm which stands for portable pixmap, .pgm for portable graymap, and .pbm for portable bitmaps. To learn more about these commands check out the Netpbm link in our useful websites box to the right, or visit the manual or info pages for the jpegtopnm command.


Navigation tree for section Computer Support