Linux Tips For New Users

The command line

The command line (also referred to as the "terminal" or "console") is an alternate way to get things done, in Linux. In some casses, a succinct command at a terminal can be a lot easier and faster than doing the same task in a graphical user interface (GUI). The major downside to a command line interface is that it's pretty much useless unless you already know at least some simple commands.

In most of the distributions of Linux-based operating systems we installed at Free Your Machine (Redhat and Mandrake), pretty much everything that you would need to do can be done with an easy-to-use graphical interface. But since most people are fairly familiar with that paradigm, here are some tips on using the command line, and expanding the power you have over your computer.

Note: when at the command line in linux, you may type tab to autocomplete lines, or get a listing of files in the current directory beginning with the characters you have typed

CommandDescription
startxstart x windows
shutdown -r nowrestart
shutdown -h nowshutdown w/o restart
sulogin to root
exitexit root/end terminal
man view manual entry for specfied command
man -k keywordsearch manual listingsfor keyword
mv filename newfilenamerename filename to newfilename
mv filename newdirectorymove filename to newdirectory
lslists files in directory
ls -alfilelisting with details
rm filenamedeletes file
rm -rf foldernamedelete folder and all subfile
cp oldfile newfilemakes copy with name newfile
cp oldfile directorymakes copy of file in indicated directory
cd directorychange to specified directory
cd ..move one directory up
tar -xvf file.tarunzip tar file
tar -t file.tarlist contents of tar file
tar -xvfz file.tar.gzunzip tar.gz file
tar -xvfj file.tar.bz2unzip tar.bz2 file
gunzip file.gzunzip gzip file
unzip file.zipunzip zip file
bunzip2 file.bz2unzip bzip2 file
DOS CommandUNIX CommandDescription
cdcdchange (to) directory
attribchmodchange file protections
compdiffcompare files
copycpcopy file(s)
delrmdelete file
rdrmdirdelete directory
dirlslist directory contents
editpicoedit a file
findgrepfind text in a file
helpmanget information on a command
mdmkdirmake a new directory
movemvmove file(s)
renmvrename file
date, timedateshow date and time
chkdskdfshow free disk space (storage)
typecatshow file contents
type | morecat | moreshow file, screen-by-screen
sortsortsort data

Additional Programs and Getting Help

Beyond the command line, there are a few "regular" programs you may wish to install, which are general useful. Most of these programs (or similar) ones were likely installed on your computer if we installed Redhat Linux or Mandrake, but it's always handy to know the actual names of the programs. Also, in the future, if you think of any programs you may need, one of the most surefire places to look is freshmeat.net, or rpmfind.net if you installed Redhat or Mandrake.

A few recommended programs:

CPLUG Information:

ProgramDescription
mozilla/mozilla firebirdweb browser
xmmsmp3 file player (compatible with winamp skins)
lamemp3 encoding
mplayermedia/video player
gimpimage editing
gaiminstant messaging client
openofficeMS Office replacement
xpdfpdf file viewer
evolutionemail/groupware program
kmailemail/groupware program
Web Site:www.cplug.org
  
Where to ask Questions:
IRC Channel:#cplug on irc.freenode.net
To connect to IRC: open xchat, select FreeNode from the server list and click connect. After it connects, type /nick [your nickname], then /j #cplug. There's usually a couple of us in there and we can help you with any questions you have.
Mailing List:cplug@cplug.org
  
Other places to get help:
Google Groups:http://groups.google.com
The Linux Documentation Project:http://tldp.org