Getting Around the UNIX File System
I Want to... | I Use... | Popular Options... |
List files and directories Change to another directory
Remove a file Remove a directory
Copy a file Move a file |
ls cd
rm filename rmdir directory_name
cp filename target mv filename target |
-l Show a long listing -a Show all files, including those that begin w/a period (hidden files) -t Show files by time last modified directory_name Go to the named directory .. Go up one directory
-i Copy, prompting when filename would overwrite
target
-f Move all files w/out prompting |
UNIX Equivalents for Popular DOS Commands
If you did this in DOS... | Do this in UNIX... |
ATTRIB =R [filename] CD CHKDSK CLS XCOPY [source target] DATE TIME DEL [filename] ERASE [filename] DIR [filename]
DELTREE [directory]
MKDIR [directory_name]
MOVE [filename]
REN [filename target] |
chmod a=r filename cd df clear cp -r filename target date date rm filename rm filename ls
rm -r directory_name
mkdir directory_name
pg filename
mv filename target |
Working with Files
What I Want Do... | What Command I Use... |
Edit a text file
Print a text file Print a Postscript file Display a text file Page through a text file
Sort the contents of a file Count the letters, words, and lines in a file
Compress a file
Uncompress a file Change who owns a file |
vi filename
lp -dprinter filename lp -dprinter Tpostscript filename cat filename
pg filename diff file 1 file 2 sort filename wc filename
compress filename
uncompress filename chown user filename |
Connecting to Other Computers
What I Want To Do... | What Command I Use... |
Copy files to another computer Run Commands on another computer
Login to another computer
Send E-mail Read E-mail |
rep from; file to:file uuto source destination rsh remote_computer "command options"
rlogin remote_computer
mailx user@computer mailx |
Getting On the Internet from UNIX
Command | Description | Where Do I Get It? |
ftp
telnet
gopher
readnews (and
mosaic netscape |
Used to browse Internet sites and copy files to and from your computer.
Used to login to Internet sites.
Used to access documents from
Used to read articles from UseNet
Used for browsing the Internet via a
Used for browsing the Internet via a |
Comes w/most UNIX systems.
Comes with most UNIX systems.
Gopher can be obtained from this Internet site:
Readnews can be obtained from this Internet
Mosaic can be obtained from this site on the
Netscape can be obtained from this site on the |