WebMail
WebMail

UNIX Commands


Basic List Of Unix Commands.

A Few Notices

NOTE: where you see -[switch] in this text it is just because you can do multiple tasks with the command by specifying a switch. To see the list of switches for a specified command use help. i.e. dir --help which will give you help on the dir command. Sometimes a switch is not required for the command to work. i.e. ls, dir.

You can also use the following two commands to learn more about another command.
- apropos
gives you all the commands that have to do with that subject.
- man
gives you a detailed description of how to use that command.

Command		Usage			 What it does.
- ----------------------------------------------------------------------- -

help		{command} --help 	 gives help on a specific
		       			 {command}

passwd		passwd			 change your password

bye		bye			 logout of engsoc

{TAB}		{something}{TAB}	 writes really long filenames
the TAB key				 for you
e.g. you have a file called this_is_a_long_file.txt
     so you type: this{TAB}
     and it will give you this_is_a_long_file.txt at the prompt,  
     therefore you can do pico this{TAB} making it quicker to go edit the 
     file
		
cp		cp filename directory	 copy a file to a directory

rm		rm filename		 removes, deletes a file

mkdir		mkdir directory name	 creates a new directory

rmdir		rmdir directory name	 removes a directory

ls		ls -[switch]	         lists files in directory

dir		dir -[switch]	         lists files in directory

mv		mv filename newfilename	 rename fileone to filetwo
 		mv filename directory	 moves file to directory

cls		cls			 clear screen

df		df -[switch]		 how much diskspace is used up in
					 percent on the server

du		du -[switch]		 how much diskspace you are taken up
					 in your account in Kbytes

bc		bc			 a simple calculator

more		more filename		 read a text file 

tail		tail filename		 read the last few lines of a file

pico		pico filename		 edit a text file

$EDITOR		$EDITOR filename	 edit a text file

vi		vi filename		 edit/view a text file
		type ":q" to quit
	  	without the quotes

search		search filename		 search for a file in your
					 account

archie		archie -[switch] name	 search for a file over the 
					 internet

who		who -[switch]		 show who is online and their 
					 tty number

w		w			 show who's online and what they
					 are doing

elm		elm			 read/send email

pine		pine			 read/send email

lynx		lynx			 www browser

tin		tin			 newsgroup reader

trn		trn			 newsgroup reader
OR
rn		rn			 newsgroup reader

ftp		ftp sitename		 file transfer protocol
			 		 go onto other servers
e.g. ftp wuarchive.wustl.edu
     login: anonymous
     p.w.:  email address (or something bogie like name@whatever)

ncftp		ncftp sitename 	         same as above but more 
		  OR			 elaborate, makes a list of 
	        ncftp			 sites you've been too

telnet		telnet sitename		 log onto another server (or host)

irc		irc			 talk to people around the world
for more info on this check out the newsgroups and the FAQ!
WARNING: this is addictive!!

sz		sz -[switch]		 download from your account to 
					 your home computer (ZMODEM)
     					 type sz to get switches

rz		rz			 upload from home computer to 
					 your account (ZMODEM)

ytalk		ytalk username	         chat with one or more online 
		e.g: ytalk thewrath	 users		 
                                    
talk		talk username		 chat with an online user
		e.g: talk thewrath

write		write user [tty]	 send a message to an online 
                                         user		
    		e.g: write thewrath ttyp0  {enter}
     		message
     		ctrl-C to quit

mesg		mesg y			 allow people to write and talk 
					 to you
		mesg n			 disallow people to write and talk 
					 to you
		
finger		finger -[switch]         tells you of users at a 
		user user@host		 specified address	
		(the above should all
		be on the same line)	

uudecode	uudecode filename	 convert *.uue files to *.???

uuencode	uuencode filename	 convert *.??? files to *.uue

zip		zip -[switch]		 allows you to compress files
					 in the pkzip, gzip, UnixZip
					 formats (using the appropriate
					 switch)

unzip		unzip -[switch]		 allows you to uncompress files
					 in the formats listed above in 
					 zip (using the approriate switch)

gzip		gzip -[switch] filename	 compress to name.gz

gunzip 		gunzip -[switch] filename uncompress name.gz files

tar		tar -[switch] filename	 uncompress tar files		
					 (multi format uncompressor,
					  .gz, .Z, .tar)

(this is basically all you'll need for now.  i might of forgotten some 
important commands in this text so if you think of any, don't be afraid to 
let me know)