Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
Unix Command Summary

Unix Command Summary



|Views: 260|Likes:
Published by api-3744861

More info:

Published by: api-3744861 on Oct 15, 2008
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





Summary of UNIX Commands- version 3.2
\u00a91994,1995,1996 Budi Rahardjo <rahardjo@iscom.com>
Summary of UNIX
\u00a91994,1995,1996 Budi Rahardjo
<rahardjo@iscom .com >
This is a summary of UNIX commands
available on most UNIX systems.
Depending on the configuration, some of
the commands may be unavailable on your
site. These commands may be a

commercial program, freeware or public domain program that must be installed separately, or probably just not in your search path. Check your local

documentation or manual pages for more
details (e.g. man programname).
This reference card, obviously, cannot

describe all UNIX commands in details, but instead I picked commands that are useful and interesting from a user\u2019s point of view.

Most of the commands described in this reference card are explained in my UNIX and Internet book which is written in

\u201cBahasa Indonesia\u201d )Indonesian language.)
Rahardjo, Budi (1994),Buku Pegangan
Sistem Unix dan Internet, Bellingham , WA:
OpenPathways, xiv+251pp. Comb-bound,
ISBN 1-885130-11-2.
This book is available only by mail order.
Send inquiry to Marina Schneider
The author and publisher make no warranty of any
kind, expressed or implied, including the warranties of
merchantability or fitness for a particular purpose,

with regard to the use of commands contained in this reference card. This reference card is provided \u201cas is\u201d. The author and publisher shall not be liable for

damage in connection with, or arising out of the
furnishing, performance, or the use of these
commands or the associated descriptions.
represents program name
dirnamerepresents directory name as an
represents file name as an
optional directory name (or other

optional argument) as argument. If it is no given, cu rrent directory will be used.

Table of Contents
1. Directory and file commands

2. Print-related commands
3. Miscellaneous commands
4. Process management

5. File archive and compression
6. Text editors
7. Mail programs
8. Usnet news
9. File transfer and remote access
10. X window
11. Graph, Plot, Image processing tools
12. Information systems
13. Networking programs
14. Programming tools
15. Text processors, typesetters, and
16. Wordprocessors
17. Spreadsheets
18. Databases
1. Directory and file commands
display disk space (HP-UX). See
alsod f.
catf ile n a m e
display the content of filef ile n a m e
cd[d irn a m e ]
change directory tod irn a m e. If
dirname is omitted, change to your
home directory.
cp source destination
copy files o u rc e in to filed e s t in a t ion.
df[d irn a m e ]
display free disk space. If dirname
is omitted, display all available
disks. The output maybe in blocks
or in Kbytes. Use df -k in Solaris 2.x
(visually) display directory structure
du[d irn a m e ]
Summary of UNIX commands - version 3.1
\u00a91 9 9 4 , 1 9 9 5
Budi Rahardjo <rahardjo@isnet.org>
display disk usage.
lessf ile n a m e
displayf ile n a m e one screenful. A
pager similar to (better than)more .
ls[d irn a m e ]
list the content of directory
dirname. Options:
display hidden files
display in long format
mkdird irn a m e
make directoryd irn a m e
moref ile n a m e
view filef ile n a m e one screenfu ll at a
mv oldname new name
ren am e fileold n a m e to file
new name. If new name is a
directory, then moveold n a m e into
directoryn e w n a m e.
pgf ile n a m e
viewf ile n a m e one screenfu ll at
atime (a pager).
print working directory
rmdird irn a m e
remove directoryd irn a m e (if
dirname is empty).
rm file1 [file2 ...]
remove filesf ile 1,f ile 2, etc.
rm- rd irn a m e
rem oved irn a m e recu rsively,
removing all files and subdirectories
underneathd irn a m e.
an X window pager (named after
less )
2. Print-related commands
print a file (HP-UX, Solaris 2.x)
lpq[-Pp rin t e rn a m e ]
query printer queue of the default
printer. Ifp rin t e rn a m e is given, will
query printerp rin t e rn a m e. (BSD,
SunOS, Linux)
lpr[-Pp rin t e rn a m e ] f ile n a m e
printf ile n a m e (sendf ile n a m e to the
default printer). If printername is
given, will send tof ile n a m e to
printername. (BSD, SunOS, Linux)
lprm[-Pp rin t e rn a m e ] job n u m
remove printing job numberju b n u m
from printerp rin t e rn a m e. (BSD,
SunOS, Linux)
check printer status (HP-UX,
Solaris 2.x)
3. Miscellaneous commands
print or alter environment variables
display host name
mant o p ic
display on-line manual ont o p ic.
create multiple screen with one
physical screen. This program is
u sefu l if you have a text-only (e.g.
vt100) terminal. Move around with
con trol-A.
print system name
display all users on-line
check who is doing what
whichcom m a n d n a m e
show the location ofcommandname
who is on-line on this machine
4. Process management
Send signalS IG N UM to process ID
PID, or kill (terminate) process with
process ID numberPID. For
exam ple:
kill -HUP5 5 5 5
nicep rog ra m n a m e
run programp rog ra m n a m e with
lower priority (nicer to other users).
Summary of UNIX commands - version 3.1
\u00a91 9 9 4 , 1 9 9 5
Budi Rahardjo <rahardjo@isnet.org>
Recommended for running
background processes.
check processes. The options for
this command depends on the
version and variation of you r UNIX.
Check your local documentation.
show (continu ou sly) what
process(es) is running.
5. File archive and compression
compressf ile n a m e
makef ile n a m e smaller
(compression).f ile n a m e will be
replaced byf ile n a m e . Z ( a .Z
extension is added).
gunzipf ile n a m e . g z
expandf ile n a m e . g z into its original
form (size) and remove the. g z
extension. This is GNU u nzip.
gzipf ile n a m e
compressf ile n a m e with GNU zip
(gzip) and add .gz extension
magnetic tape control program.
combine files into one tar file, or
extract files from a tar file. A tar file
could be a device (magnetic tape as
/ dev/ rst0) or a plain file.
To extractf ile n a m e . t a r
tar xvf filename.tar
To combine all files u nderd irn a m e
intof ile n a m e . t a r:
tar cvf filename.tar dirname
expandf ile n a m e . Z into its original
size and remove the .Z extension
unarjf ile n a m e . a rj
exteract files from an ARJ archive
unzipf ile n a m e . z ip
extract files fromf ile n a m e . z ip. The
reverse of zip command.
zip zipname files
create an archive file (and compress
it) calledz ip n a m e .z ip wh ich
containsf ile s .
There is a set of commands to access MS-
DOS disks on systems equipped with
floppy disk. Most DOS file commands are
available (prefixed with \u201cm\u201d): mcopy, mdel,
mdir, mmd, mtype,etc.
6. Text editors
asWeditHTML editor
a simple X window text editor
easy edit: emacs with a help menu
a vi clon e
start emacs . A more extensive
documentation is available on-line.
Reference card for GNU emacs is
also available from FSF GNU emacs
distribu tion.
jed text editor
joe[f ile n a m e ]
a WordStar-like editor
a Motif-based text editor
a simple text editor distributed as
part ofp in e
SoftQu ad\u2019s HoTMetaL HTML editor.
textedit[f ile n a m e ]
OpenWindow\u2019s text editor
vi[f ile n a m e ]
vi editor
vile[f ile n a m e ]
a vi-clone
vim[f ile n a m e ]
a vi-clone
a mu ltiwindow X window text editor
that can be used to browse C
functions and C++ classes.
a simple X window text editor

Activity (6)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Deepmala Sachan liked this
h1a1s1e1g1a1w1a@ liked this
shekar_bandi liked this
ojay liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->