basic Linux commands
In an attempt to help the move from MS Windows, here is a list of basic Linux commands.
This is very basic, a little Linux oriented, but a decent start.
man command - Almost always shows you the manual for the specified program. When told to 'RTFM',
this is what you must do.
man -k word - Kind of like a search engine for man.
apropos word - This is the same as man -k.
Moving around the file system:
Navigating the Unix file system is very similar to DOS. Some of the commands are a little different, but they
behave the same.
cd dirname - Changes to the specified directory.
cd .. - Changes to the parent of the current directory.
pwd - Prints the current directory. Usefull if, for whatever reason, your prompt doesn't give this info.
ls - Directory listing. use the -lh switch to get a detailed listing. Use the -a switch to show hidden files.
Dealing with archives:
tar - This command is used to group multiple files together. It stands for Tape ARchiver. There are several
versions of tar, and not all perform the same way. GNU tar appears to have the most features. The typical
extensions for tarballs are .tar, .tar.gz, and .tgz. The extensions .tgz and .tar.gz are compressed tarballs
using gzip. The -x flag unpacks a tarball, the -v enables verbose unpacking, and -f followed by a
filename(s) tells tar which file(s) to work with. To untar an uncompressed file (.tar): tar -xf filename.tar.
To untar and uncompress a tarball (.tar.gz, .tgz): tar -zxf filename.tar.gz.
-GNU tar (gtar) can handle bzip2 files as well as gzipped files. It appears to be the only implimentation of
tar that will handle bzip2 files. The flag for this is -j.
-SUN's tar cannot handle gzip compression or long filenames. To unpack the Apache source code, gtar is
available in Solaris packages.
compress and uncompress - These commands will compress and uncompress files. These commands are
old and generally not used, and are only mentioned for historical purposes. The extensio