Basic Linux commands

Robert Lakatos • 2006


Contents


Useful websites


Account management


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


Filesystem navigation

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


Managing print jobs


Using floppy diskettes and CD-ROMs


Remote access


Running applications in the background


Processes and disk space


Command-line history, I/O redirection, and piping


Miscellaneous


Starting applications


Viewer applications

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


Converting 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 known 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 this link or visit the manual or info pages for the jpegtopnm command.


http://math.arizona.edu/~swig/documentation/getting_started/commands.php
Last modified: Fri, 14 Dec 2007 15:50:52 -0700
E-mail: swig@math.arizona.edu
Valid XHTML 1.0! Valid CSS!