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

Unix Command Summary

Ratings:

4.0

(1)
|Views: 260|Likes:
Published by api-3744861

More info:

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

Availability:

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

03/18/2014

pdf

text

original

Summary of UNIX Commands- version 3.2
\u00a91994,1995,1996 Budi Rahardjo <rahardjo@iscom.com>
Summary of UNIX
commands
\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
mschneid@prairienet.org
Disclaimer
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.
Conventions
bold
represents program name
dirnamerepresents directory name as an
argument
filename
represents file name as an
argument
[dirname]
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
previewers
16. Wordprocessors
17. Spreadsheets
18. Databases
1. Directory and file commands
bdf
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
dtree
(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:
-a
display hidden files
-l
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
time
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).
pwd
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.
xless
an X window pager (named after
less )
2. Print-related commands
lp
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)
lpstat
check printer status (HP-UX,
Solaris 2.x)
3. Miscellaneous commands
env
print or alter environment variables
hostname
display host name
mant o p ic
display on-line manual ont o p ic.
screen
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.
uname
print system name
users
display all users on-line
w
check who is doing what
whichcom m a n d n a m e
show the location ofcommandname
who
who is on-line on this machine
4. Process management
kill S IGNUM PID
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.
ps
check processes. The options for
this command depends on the
version and variation of you r UNIX.
Check your local documentation.
top
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
mt
magnetic tape control program.
tar
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
uncompressfilename.Z
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 .
MTOOLS
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
axe
a simple X window text editor
ee
easy edit: emacs with a help menu
elvis
a vi clon e
emacs
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
jed text editor
joe[f ile n a m e ]
a WordStar-like editor
nedit
a Motif-based text editor
pico
a simple text editor distributed as
part ofp in e
sqhm
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
xcoral
a mu ltiwindow X window text editor
that can be used to browse C
functions and C++ classes.
xedit
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

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