Summary of UNIX Commands
Summary of UNIX Commands
UNIX Architecture
Note: The ernel is the core of the UNIX operating system! "ernel is protecte# by $hell! %efore you can #o much with a UNIX system& you nee# to log in to it! A summary of UNIX comman#s'stan#ar# utility programs a(ailable on most UNIX systems! cat filename display the content of file filename c# [dirname] change directory to dirname. If dirname is omitted, change to your home directory. cp source destination copy file source into file destination. cal )**+ show the timetable of 2007 #ate show system date c# !! go back one level c# !!'!! go back two levels
[51]
c# go to home directory cp file file ls !l show details of files and directory m #ir dir create a directory called "dir " pw# show the path of work directory rm #f file delete file called "file " rm #rf dir remove a directory called "dir " and contents recursively touch modify the timestamp of the file or directory
tree show the files starting from $ % $ which &uni' cmd( shows the location%path of the uni' command fin# % #name &name of the file( find the file of the root directory pwc check correct synta' and file format of "%etc%passwd" and users e'istence tar ,c(f archi(e!tar file- file) #ircreate an archive containing "file ", "file2" and "dir " tar ,.(f archi(e!tar e'tract a tarball
[52]
b/ip) file- file-!b/) compress a file called "file " bun/ip) file-!b/) decompress a file called "file .b)2" g/ip file- file-!g/ compress a file called "file " gun/ip file-!g/ decompress a file called "file .g)" /ip file-!/ip filecreate an archive compressed in )ip un/ip file-!/ip decompress a )ip archive more filename One screen file at a time m( filename1 filename2 moves a file *i.e. gives it a different name, or moves it into a different directory rm filename removes a file wc filename tells you how many lines, words, and characters there are in a file who tells you who"s logged on finger username gives you lots of information about that user whoami returns your username
[53]