You are on page 1of 40

man pages section 1: User Commands

Document Information
Using This Documentation
Introduction
User Commands
7z(1)
7za(1)
7zr(1)
a2p(1)
a2ps(1)
aafire(1)
aalib-config(1)
accessx(1)
acctcom(1)
aclocal-1.11(1)
aclocal(1)
acpidump(1)
acpixtract(1)
acyclic(1)
adb(1)
addbib(1)
addftinfo(1)
addr2line(1g)
admin(1)
afmtodit(1)
alias(1)
allocate(1)
animate(1)
annotate(1)
ant(1)
antlr(1)
appcert(1)
appres(1)
apptrace(1)
apropos(1)
ar(1)
ar(1g)
arch(1)
as(1)
as(1g)
as86(1)
asa(1)
at(1)
atobm(1)
atok(1)
ATOK(1)
atok12migd(1)
atok12migs(1)
atokx2cvttool(1)
atq(1)
atrm(1)
audioconvert(1)
audioctl(1)
audioplay(1)
audiorecord(1)
audiotest(1)
auths(1)
auto_ef(1)
autoconf(1)
autoexpect(1)
autogen(1)
autoheader(1)
autom4te(1)
automake-1.11(1)
automake(1)
autoopts-config(1)
autopoint(1)
autoreconf(1)
autoscan(1)
autoupdate(1)
awk(1)
awk(1g)
banner(1)
base64(1)
basename(1)
basename(1B)
basename(1g)
basepods(1)
bash(1)
bashbug(1)
batch(1)
bc(1)
bcc(1)
bcomps(1)
bdftopcf(1)
bdftops(1)
bdftruncate(1)
bdiff(1)
beansh(1)
beanshell(1)
bfs(1)
bg(1)
biff(1B)
bison(1)
bitmap(1)
bmtoa(1)
break(1)
builtin(1)
bunzip2(1)
bzcat(1)
bzcmp(1)
bzdiff(1)
bzegrep(1)
bzfgrep(1)
bzgrep(1)
bzip2(1)
bzip2recover(1)
bzless(1)
bzmore(1)
c++filt(1g)
c2ph(1)
cal(1)
calendar(1)
cancel(1)
capinfos(1)
card(1)
case(1)
cat(1)
cat(1g)
ccmake(1)
ccomps(1)
cd(1)
cdc(1)
cdda2wav(1)
cdrecord(1)
cdrw(1)
cgi-fcgi(1)
chdir(1)
checkeq(1)
checknr(1)
chgrp(1)
chgrp(1g)
chkey(1)
chmod(1)
chmod(1g)
chown(1)
chown(1B)
chown(1g)
chroot(1g)
ckdate(1)
ckgid(1)
ckint(1)
ckitem(1)
ckkeywd(1)
ckpath(1)
ckrange(1)
ckstr(1)
cksum(1)
cksum(1g)
cktime(1)
ckuid(1)
ckyorn(1)
clear(1)
clear(1g)
clisp-link(1)
clisp(1)
cluster(1)
cmake(1)
cmakecommands(1)
cmakecompat(1)
cmakemodules(1)
cmakepolicies(1)
cmakeprops(1)
cmakevars(1)
cmap_alloc(1)
cmap_compact(1)
cmp(1)
cmp(1g)
col(1)
columns(1)
comb(1)
comm(1)
comm(1g)
command(1)
comp_err(1)
compare(1)
composite(1)
compress(1)
config.guess(1)
config.sub(1)
config_data(1)
conflict(1)
conjure(1)
constype(1)
continue(1)
convert(1)
convmv(1)
corelist(1)
cp(1)
cp(1g)
cpack(1)
cpan(1)
cpan2dist(1)
cpanp(1)
cpio(1)
cpp(1)
cpp(1)
cputrack(1)
crle(1)
crontab(1)
cryptdir(1)
csh(1)
csplit(1)
csplit(1g)
cssh(1)
ct(1C)
ct_run(1)
ctags(1)
ctags(1g)
ctest(1)
ctrun(1)
ctstat(1)
ctwatch(1)
cu(1C)
cups-config(1)
cupstestdsc(1)
cupstestppd(1)
curl-config(1)
curl(1)
cut(1)
cut(1g)
cvs(1)
cvt(1)
cxpm(1)
date(1)
date(1g)
dbilogstrip(1)
dbiprof(1)
dbiproxy(1)
dbmmanage(1)
dc(1)
dd(1g)
deallocate(1)
decrypt(1)
decryptdir(1)
delta(1)
deroff(1)
df(1B)
df(1g)
dhcpinfo(1)
diameter_compile(1)
diff(1)
diff(1g)
diff3(1)
diff3(1g)
diffimg(1)
diffmk(1)
diffpp(1)
digest(1)
digestp(1)
dijkstra(1)
dir(1)
dircmp(1)
dircolors(1)
dirname(1)
dirname(1g)
dirs(1)
dis(1)
dislocate(1)
disown(1)
dispgid(1)
display(1)
dispswitch(1)
dispuid(1)
dmxtodmx(1)
dos2unix(1)
dot(1)
dotty(1)
doxygen(1)
doxytag(1)
dpost(1)
dprofpp(1)
du(1)
du(1B)
du(1g)
dump(1)
dumpcap(1)
dumpcs(1)
dumpkeys(1)
dvipdf(1)
ebrowse(1)
echo(1)
echo(1B)
echo(1g)
ed(1)
edit(1)
editcap(1)
editres(1)
egrep(1)
egrep(1g)
eject(1)
elfcompress(1)
elfdump(1)
elfedit(1)
elfedit(1g)
elffile(1)
elfsign(1)
elfwrap(1)
elinks(1)
emacs-gtk(1)
emacs-nox(1)
emacs-x(1)
emacs(1)
emacsclient(1)
enc2xs(1)
encode_keychange(1)
encrypt(1)
enhance(1)
enscript(1)
env(1)
env(1g)
envsubst(1)
epmd(1)
epsffit(1)
epylint(1)
eqn(1)
eqn2graph(1)
erb(1)
erl(1)
erl_call(1)
erlc(1)
erlsrv(1)
errange(1)
errdate(1)
errgid(1)
errint(1)
erritem(1)
error(1)
errpath(1)
errstr(1)
errtime(1)
erruid(1)
erryorn(1)
escputil(1)
escript(1)
etags(1g)
eval(1)
evim(1)
ex(1)
exec(1)
exit(1)
expand(1)
expand(1g)
expect(1)
export(1)
exportfs(1B)
expr(1)
expr(1B)
expr(1g)
exrenvmap(1)
exrheader(1)
exrmakepreview(1)
exrmaketiled(1)
exrstdattr(1)
exstr(1)
extractres(1)
factor(1)
factor(1g)
false(1)
false(1g)
faqpods(1)
fastboot(1B)
fasthalt(1B)
fc-cache(1)
fc-cat(1)
fc-list(1)
fc-match(1)
fc-query(1)
fc-scan(1)
fc(1)
fetchmail(1)
fetchmailconf(1)
fg(1)
fgrep(1)
fgrep(1g)
file(1)
file(1B)
filebench(1)
filep(1)
filesync(1)
filofaxp(1)
find(1)
find(1g)
find2perl(1)
findsmb(1)
finger(1)
fixdlsrps(1)
fixfmps(1)
fixmacps(1)
fixmswrd.pl(1)
fixproc(1)
fixps(1)
fixpsditps(1)
fixpspps(1)
fixscribeps(1)
fixtpps(1)
fixwfwps(1)
fixwpps(1)
fixwwps(1)
flea(1)
flex(1)
fmt(1)
fmt(1g)
fmtmsg(1)
fold(1)
fold(1g)
font2c(1)
foomatic-combo-xml(1)
foomatic-compiledb(1)
foomatic-configure(1)
foomatic-perl-data(1)
foomatic-ppd-options(1)
foomatic-ppdfile(1)
foomatic-printjob(1)
foomatic-rip(1)
for(1)
foreach(1)
formail(1)
franklinp(1)
from(1B)
fsadmin(1)
fslsfonts(1)
fstobdf(1)
ftp(1)
ftpcount(1)
ftptop(1)
ftpwho(1)
function(1)
funzip(1)
g++(1)
g77(1)
gc(1)
gcc(1)
gcore(1)
gcov(1)
gd2copypal(1)
gd2time(1)
gd2togif(1)
gd2topng(1)
gdb(1)
gdcmpgif(1)
gdiffmk(1)
gdparttopng(1)
gdtopng(1)
gem(1)
gem_mirror(1)
gem_server(1)
gemlock(1)
gemri(1)
gemwhich(1)
gencat(1)
geniconvtbl(1)
genmsg(1)
geqn(1)
get(1)
getafm(1)
getconf(1)
getdefs(1)
getfacl(1)
getlabel(1)
getopt(1)
getopt(1g)
getoptcvt(1)
getopts(1)
gettext(1)
gettext(1g)
gettextize(1)
gettxt(1)
getzonepath(1)
gfortran(1)
ggrn(1)
giftogd2(1)
gindxbib(1)
git-add(1)
git-am(1)
git-annotate(1)
git-apply(1)
git-archimport(1)
git-archive(1)
git-bisect(1)
git-blame(1)
git-branch(1)
git-bundle(1)
git-cat-file(1)
git-check-attr(1)
git-check-ref-format(1)
git-checkout-index(1)
git-checkout(1)
git-cherry-pick(1)
git-cherry(1)
git-citool(1)
git-clean(1)
git-clone(1)
git-commit-tree(1)
git-commit(1)
git-config(1)
git-count-objects(1)
git-credential-cache--daemon(1)
git-credential-cache(1)
git-credential-store(1)
git-cvsexportcommit(1)
git-cvsimport(1)
git-cvsserver(1)
git-daemon(1)
git-describe(1)
git-diff-files(1)
git-diff-index(1)
git-diff-tree(1)
git-diff(1)
git-difftool(1)
git-fast-export(1)
git-fast-import(1)
git-fetch-pack(1)
git-fetch(1)
git-filter-branch(1)
git-fmt-merge-msg(1)
git-for-each-ref(1)
git-format-patch(1)
git-fsck-objects(1)
git-fsck(1)
git-gc(1)
git-get-tar-commit-id(1)
git-grep(1)
git-gui(1)
git-hash-object(1)
git-help(1)
git-http-backend(1)
git-http-fetch(1)
git-http-push(1)
git-imap-send(1)
git-index-pack(1)
git-init-db(1)
git-init(1)
git-instaweb(1)
git-log(1)
git-lost-found(1)
git-ls-files(1)
git-ls-remote(1)
git-ls-tree(1)
git-mailinfo(1)
git-mailsplit(1)
git-merge-base(1)
git-merge-file(1)
git-merge-index(1)
git-merge-one-file(1)
git-merge-tree(1)
git-merge(1)
git-mergetool--lib(1)
git-mergetool(1)
git-mktag(1)
git-mktree(1)
git-mv(1)
git-name-rev(1)
git-notes(1)
git-p4(1)
git-pack-objects(1)
git-pack-redundant(1)
git-pack-refs(1)
git-parse-remote(1)
git-patch-id(1)
git-peek-remote(1)
git-prune-packed(1)
git-prune(1)
git-pull(1)
git-push(1)
git-quiltimport(1)
git-read-tree(1)
git-rebase(1)
git-receive-pack(1)
git-reflog(1)
git-relink(1)
git-remote-ext(1)
git-remote-fd(1)
git-remote-helpers(1)
git-remote-testgit(1)
git-remote(1)
git-repack(1)
git-replace(1)
git-repo-config(1)
git-request-pull(1)
git-rerere(1)
git-reset(1)
git-rev-list(1)
git-rev-parse(1)
git-revert(1)
git-rm(1)
git-send-email(1)
git-send-pack(1)
git-sh-i18n--envsubst(1)
git-sh-i18n(1)
git-sh-setup(1)
git-shell(1)
git-shortlog(1)
git-show-branch(1)
git-show-index(1)
git-show-ref(1)
git-show(1)
git-stage(1)
git-stash(1)
git-status(1)
git-stripspace(1)
git-submodule(1)
git-svn(1)
git-symbolic-ref(1)
git-tag(1)
git-tar-tree(1)
git-unpack-file(1)
git-unpack-objects(1)
git-update-index(1)
git-update-ref(1)
git-update-server-info(1)
git-upload-archive(1)
git-upload-pack(1)
git-var(1)
git-verify-pack(1)
git-verify-tag(1)
git-web--browse(1)
git-whatchanged(1)
git-write-tree(1)
git(1)
gitk(1)
gitweb(1)
glob(1)
glookbib(1)
glxgears(1)
glxinfo(1)
gml2gv(1)
gneqn(1)
gnroff(1)
gnuplot(1)
gocr(1)
goto(1)
gperf(1)
gpg-agent(1)
gpg-connect-agent(1)
gpg-preset-passphrase(1)
gpg-zip(1)
gpg2(1)
gpgconf(1)
gpgparsemail(1)
gpgsm-gencert.sh(1)
gpgsm(1)
gpgv2(1)
gpic(1)
gprof(1)
gprof(1g)
grails-debug(1)
grails(1)
grap2graph(1)
grefer(1)
grep-changelog(1)
grep(1)
grep(1g)
grodvi(1)
groff(1)
groffer(1)
grog(1)
grohtml(1)
grolbp(1)
grolj4(1)
grops(1)
grotty(1)
groups(1)
groups(1B)
groups(1g)
gs(1)
GSinterface(1)
gslp(1)
gsnd(1)
gsoelim(1)
gstrip(1g)
gtbl(1)
gtf(1)
gtroff(1)
guards(1)
guile-config(1)
guile-snarf(1)
guile-tools(1)
guile(1)
gunzip(1)
gvcolor(1)
gvedit(1)
gvgen(1)
gvmap(1)
gvmap.sh(1)
gvpack(1)
gvpr(1)
gxditview(1)
gxl2gv(1)
gzcat(1)
gzcmp(1)
gzdiff(1)
gzegrep(1)
gzexe(1)
gzfgrep(1)
gzforce(1)
gzgrep(1)
gzip(1)
gzless(1)
gzmore(1)
gznew(1)
h2ph(1)
h2xs(1)
hash(1)
hashcheck(1)
hashmake(1)
hashstat(1)
head(1)
head(1g)
helpdate(1)
helpgid(1)
helpint(1)
helpitem(1)
helppath(1)
helprange(1)
helpstr(1)
helptime(1)
helpuid(1)
helpyorn(1)
hexedit(1)
hg(1)
hist(1)
history(1)
hostid(1)
hostid(1g)
hostname(1)
hpftodit(1)
htdbm(1)
htdigest(1)
htpasswd(1)
httping(1)
httxt2dbm(1)
i386(1)
i486(1)
ib_clock_test(1)
ib_read_bw(1)
ib_send_bw(1)
ib_write_bw(1)
ibdiagnet(1)
ibis(1)
ibv_asyncwatch(1)
ibv_devices(1)
ibv_devinfo(1)
ibv_rc_pingpong(1)
ibv_srq_pingpong(1)
ibv_ud_pingpong(1)
icc2ps(1)
icclink(1)
icctrans(1)
iceauth(1)
ico(1)
iconv(1)
id(1g)
identify(1)
idn(1)
if(1)
ifnames(1)
igawk(1)
ijs-config(1)
ijsgutenprint(1)
ImageMagick(1)
imake(1)
import(1)
includeres(1)
indent(1)
index_gem_repository.rb(1)
indxbib(1)
info(1)
infokey(1)
innochecksum(1)
install-info(1)
install(1B)
install(1g)
instmodsh(1)
intel_audio_dump(1)
intel_bios_dumper(1)
intel_bios_reader(1)
intel_error_decode(1)
intel_gpu_top(1)
intel_gtt(1)
intel_infoframes(1)
intel_lid(1)
intel_panel_fitter(1)
intel_reg_dumper(1)
intel_reg_read(1)
intel_reg_write(1)
intel_stepping(1)
intel_upload_blit_large(1)
intel_upload_blit_large_gtt(1)
intel_upload_blit_large_map(1)
intel_upload_blit_small(1)
ipcrm(1)
ipcs(1)
iperf(1)
irb(1)
ircII(1)
isainfo(1)
isalist(1)
jobs(1)
join(1)
join(1g)
jpegicc(1)
jsh(1)
kbd(1)
kbd_mode(1)
kdestroy(1)
keylogin(1)
keylogout(1)
kibitz(1)
kill(1)
kill(1g)
kinit(1)
klist(1)
kmdb(1)
kmfcfg(1)
koi8rxterm(1)
kpasswd(1)
krb5-config(1)
ksh(1)
ksh88(1)
ksh93(1)
ktutil(1)
kvno(1)
lari(1)
last(1)
lastcomm(1)
lbxproxy(1)
ld(1)
ld(1g)
ld.so.1(1)
ld86(1)
ldapadd(1)
ldapdelete(1)
ldaplist(1)
ldapmodify(1)
ldapmodrdn(1)
ldapsearch(1)
ldd(1)
lefty(1)
less(1)
lessecho(1)
lesskey(1)
let(1)
lex(1)
lftp(1)
lftpget(1)
lgrpinfo(1)
libgd2(1)
libnetcfg(1)
libtool(1)
libtoolize(1)
limit(1)
line(1)
link(1g)
links(1)
list_devices(1)
listres(1)
listusers(1)
lkbib(1)
llc2_autoconfig(1)
llc2_config(1)
llc2_stats(1)
ln(1)
ln(1B)
ln(1g)
lndir(1)
lneato(1)
loadkeys(1)
locale(1)
localedef(1)
locate(1)
lockfile(1)
log2pcap(1)
logger(1)
logger(1B)
login(1)
logname(1)
logname(1g)
logout(1)
look(1)
lookbib(1)
lorder(1)
lp(1)
lpoptions(1)
lppasswd(1)
lpq(1)
lpr(1)
lprm(1)
lpstat(1)
ls(1)
ls(1B)
ls(1g)
lua(1)
luac(1)
luit(1)
lzmainfo(1)
m4(1)
m4(1g)
mac(1)
mach(1)
machid(1)
madt(1)
madv.so.1(1)
Magick++-config(1)
Magick-config(1)
MagickCore-config(1)
MagickWand-config(1)
mail(1)
mail(1B)
Mail(1B)
mailcompat(1)
mailp(1)
mailq(1)
mailstat(1)
mailstats(1)
mailx(1)
make(1g)
make(1S)
make_win_bin_dist(1)
makedepend(1)
makeinfo(1)
makekey(1)
man(1)
mc(1)
mcedit(1)
mckey(1)
mconnect(1)
mcs(1)
mcview(1)
md5sum(1)
mdb(1)
meld(1)
memcat(1)
memcp(1)
memerror(1)
memflush(1)
memrm(1)
memslap(1)
memstat(1)
mergecap(1)
mesg(1)
mib2c-update(1)
mib2c(1)
mkdir(1)
mkdir(1g)
mkdirhier(1)
mkfifo(1g)
mkfontdir(1)
mkfontscale(1)
mkmsgs(1)
mknod(1g)
mkpasswd(1)
mkstr(1B)
mktemp(1)
mktemp(1g)
mm2gv(1)
mmroff(1)
modpods(1)
moe(1)
mogrify(1)
montage(1)
more(1)
mp(1)
mpss.so.1(1)
msgattrib(1)
msgcat(1)
msgcc(1)
msgcmp(1)
msgcomm(1)
msgconv(1)
msgcpp(1)
msgcvt(1)
msgen(1)
msgexec(1)
msgfilter(1)
msgfmt(1)
msgfmt(1g)
msggen(1)
msgget(1)
msggrep(1)
msginit(1)
msgmerge(1)
msgunfmt(1)
msguniq(1)
msql2mysql(1)
mt(1)
multixterm(1)
mutt(1)
muttbug(1)
mv(1)
mv(1g)
my_print_defaults(1)
myisam_ftdump(1)
myisamchk(1)
myisamlog(1)
myisampack(1)
mysql-stress-test.pl(1)
mysql-test-run.pl(1)
mysql(1)
mysql.server(1)
mysql_51(1)
mysql_client_test(1)
mysql_client_test_embedded(1)
mysql_config(1)
mysql_convert_table_format(1)
mysql_find_rows(1)
mysql_fix_extensions(1)
mysql_fix_privilege_tables(1)
mysql_install_db(1)
mysql_plugin(1)
mysql_secure_installation(1)
mysql_setpermission(1)
mysql_tzinfo_to_sql(1)
mysql_upgrade(1)
mysql_waitpid(1)
mysql_zap(1)
mysqlaccess(1)
mysqladmin(1)
mysqlbinlog(1)
mysqlbug(1)
mysqlcheck(1)
mysqld_multi(1)
mysqld_safe(1)
mysqldump(1)
mysqldumpslow(1)
mysqlhotcopy(1)
mysqlimport(1)
mysqlman(1)
mysqlshow(1)
mysqlslap(1)
mysqltest(1)
mysqltest_embedded(1)
nawk(1)
nc(1)
ncab2clf(1)
ncakmod(1)
ncat(1)
ncftp(1)
ncftpbatch(1)
ncftpget(1)
ncftpls(1)
ncftpput(1)
ncftpspooler(1)
ndiff(1)
neon-config(1)
neqn(1)
net-snmp-config(1)
netcat(1)
newform(1)
newgrp(1)
newsp(1)
newtask(1)
ngettext(1)
nice(1)
nice(1g)
niceload(1)
nl(1)
nl(1g)
nlmconv(1g)
nm(1)
nm(1g)
nmap(1)
nmblookup(1)
nohup(1)
nohup(1g)
nop(1)
nosetests(1)
notify(1)
nping(1)
nproc(1)
nroff(1)
ntlm_auth(1)
objcopy(1g)
objdump(1g)
oclock(1)
od(1)
od(1g)
ogl-select(1)
ogonkify(1)
omshell(1)
on(1)
onintr(1)
optisa(1)
osage(1)
p7zip(1)
pack(1)
packagemanager(1)
page(1)
pagesize(1)
parallel(1)
pargs(1)
passmass(1)
passwd(1)
paste(1)
paste(1g)
patch(1)
patch(1g)
patchwork(1)
pathchk(1)
pathchk(1g)
pax(1)
pbzip2(1)
pcap-config(1)
pcat(1)
pconsole(1)
pcre-config(1)
pcred(1)
pcregrep(1)
pcretest(1)
pdf2dsc(1)
pdf2ps(1)
pdfopt(1)
pdfroff(1)
pdiff(1)
pep8(1)
perl(1)
perl(1)
perl5004delta(1)
perl5005delta(1)
perl5100delta(1)
perl5101delta(1)
perl5110delta(1)
perl5111delta(1)
perl5112delta(1)
perl5113delta(1)
perl5114delta(1)
perl5115delta(1)
perl5120delta(1)
perl5121delta(1)
perl5122delta(1)
perl5123delta(1)
perl5124delta(1)
perl5125delta(1)
perl561delta(1)
perl56delta(1)
perl570delta(1)
perl571delta(1)
perl572delta(1)
perl573delta(1)
perl581delta(1)
perl582delta(1)
perl583delta(1)
perl584delta(1)
perl585delta(1)
perl586delta(1)
perl587delta(1)
perl588delta(1)
perl589delta(1)
perl58delta(1)
perl590delta(1)
perl591delta(1)
perl592delta(1)
perl593delta(1)
perl594delta(1)
perl595delta(1)
perlaix(1)
perlamiga(1)
perlapi(1)
perlapio(1)
perlapollo(1)
perlartistic(1)
perlbeos(1)
perlbook(1)
perlboot(1)
perlbot(1)
perlbs2000(1)
perlcall(1)
perlce(1)
perlcheat(1)
perlclib(1)
perlcn(1)
perlcommunity(1)
perlcompile(1)
perlcygwin(1)
perldata(1)
perldbmfilter(1)
perldebguts(1)
perldebtut(1)
perldebug(1)
perldelta(1)
perldgux(1)
perldiag(1)
perldoc(1)
perldos(1)
perldsc(1)
perlebcdic(1)
perlembed(1)
perlepoc(1)
perlfaq(1)
perlfaq1(1)
perlfaq2(1)
perlfaq3(1)
perlfaq4(1)
perlfaq5(1)
perlfaq6(1)
perlfaq7(1)
perlfaq8(1)
perlfaq9(1)
perlfilter(1)
perlfork(1)
perlform(1)
perlfreebsd(1)
perlfunc(1)
perlglossary(1)
perlgpl(1)
perlguts(1)
perlhack(1)
perlhaiku(1)
perlhist(1)
perlhpux(1)
perlhurd(1)
perlintern(1)
perlintro(1)
perliol(1)
perlipc(1)
perlirix(1)
perlivp(1)
perljp(1)
perlko(1)
perllexwarn(1)
perllinux(1)
perllocale(1)
perllol(1)
perlmacos(1)
perlmacosx(1)
perlmod(1)
perlmodinstall(1)
perlmodlib(1)
perlmodstyle(1)
perlmpeix(1)
perlmroapi(1)
perlnetware(1)
perlnewmod(1)
perlnumber(1)
perlobj(1)
perlop(1)
perlopenbsd(1)
perlopentut(1)
perlos2(1)
perlos390(1)
perlos400(1)
perlpacktut(1)
perlperf(1)
perlplan9(1)
perlpod(1)
perlpodspec(1)
perlpolicy(1)
perlport(1)
perlpragma(1)
perlqnx(1)
perlre(1)
perlreapi(1)
perlrebackslash(1)
perlrecharclass(1)
perlref(1)
perlreftut(1)
perlreguts(1)
perlrepository(1)
perlrequick(1)
perlreref(1)
perlretut(1)
perlriscos(1)
perlrun(1)
perlsec(1)
perlsolaris(1)
perlstyle(1)
perlsub(1)
perlsymbian(1)
perlsyn(1)
perlthanks(1)
perlthrtut(1)
perltie(1)
perltoc(1)
perltodo(1)
perltooc(1)
perltoot(1)
perltrap(1)
perltru64(1)
perltw(1)
perlunicode(1)
perlunifaq(1)
perluniintro(1)
perluniprops(1)
perlunitut(1)
perlutil(1)
perluts(1)
perlvar(1)
perlvmesa(1)
perlvms(1)
perlvos(1)
perlwin32(1)
perlxs(1)
perlxstut(1)
perror(1)
pf2afm(1)
pfbash(1)
pfbtopfa(1)
pfbtops(1)
pfcat(1)
pfcsh(1)
pfexec(1)
pfiles(1)
pfksh(1)
pflags(1)
pfsh(1)
pftcsh(1)
pfzsh(1)
pg(1)
pgpewrap(1)
pgpring(1)
pgrep(1)
php-config(1)
php(1)
phpize(1)
pic2graph(1)
piconv(1)
pinky(1)
pixz(1)
pkcs11_inspect(1)
pkg-config(1)
pkg(1)
pkgdepend(1)
pkgdiff(1)
pkgfmt(1)
pkginfo(1)
pkglint(1)
pkgmerge(1)
pkgmk(1)
pkgmogrify(1)
pkgparam(1)
pkgproto(1)
pkgrecv(1)
pkgrepo(1)
pkgsend(1)
pkgsign(1)
pkgsurf(1)
pkgtrans(1)
pkill(1)
pklogin_finder(1)
pktool(1)
pl2pm(1)
plabel(1)
pldd(1)
plgrp(1)
plimit(1)
plxload(1)
pm-updatemanager(1)
pmadvise(1)
pmall(1)
pman(1)
pmap(1)
pmcat(1)
pmdesc(1)
pmdirs(1)
pmeth(1)
pmexp(1)
pmfunc(1)
pminst(1)
pmload(1)
pmls(1)
pmpath(1)
pmvers(1)
pngtogd(1)
pngtogd2(1)
pod2html(1)
pod2latex(1)
pod2man(1)
pod2text(1)
pod2usage(1)
podchecker(1)
podgrep(1)
podpath(1)
pods(1)
podselect(1)
podtoc(1)
popd(1)
ppdc(1)
ppdhtml(1)
ppdi(1)
ppdmerge(1)
ppdpo(1)
ppgsz(1)
ppriv(1)
pr(1)
pr(1g)
praliases(1)
prctl(1)
preap(1)
print(1)
printafm(1)
printenv(1)
printenv(1B)
printf(1)
printf(1g)
priocntl(1)
privoxy(1)
proc(1)
procmail(1)
prof(1)
profiles(1)
projects(1)
prove(1)
proxymngr(1)
prs(1)
prt(1)
prun(1)
prune(1)
ps(1)
ps(1B)
ps2ascii(1)
ps2epsi(1)
ps2pdf(1)
ps2pdfwr(1)
ps2ps(1)
ps2ps2(1)
psbook(1)
psed(1)
psig(1)
psmandup(1)
psmerge(1)
psnup(1)
psresize(1)
psselect(1)
psset(1)
pstack(1)
pstop(1)
pstops(1)
ptar(1)
ptardiff(1)
pth-config(1)
ptime(1)
ptked(1)
ptksh(1)
ptree(1)
ptx(1)
pushd(1)
pv(1)
pv.sh(1)
pvs(1)
pwait(1)
pwd(1)
pwd(1g)
pwdx(1)
pwgen(1)
pylint-gui(1)
pylint(1)
pyreverse(1)
python2.6(1)
python2.7(1)
qperf(1)
quilt(1)
rabbitmq-plugins(1)
rabbitmq-server(1)
rabbitmqctl(1)
radadrdoc(1)
radadrgen(1)
rake(1)
ranlib(1)
ranlib(1g)
rawshark(1)
rbash(1)
rcapstat(1)
rcp(1)
rdiff-backup-statistics(1)
rdiff-backup(1)
rdiff(1)
rdma_bw(1)
rds-info(1)
rds-ping(1)
rds-stress(1)
read(1)
readcd(1)
readelf(1g)
readlink(1)
readonly(1)
realpath(1)
red(1)
refer(1)
regcmp(1)
rehash(1)
remote_shell(1)
remsh(1)
renice(1)
repeat(1)
replace(1)
reset(1B)
resize(1)
resolve_stack_dump(1)
resolveip(1)
return(1)
ri(1)
rksh(1)
rksh88(1)
rlogin(1)
rm(1)
rm(1g)
rmail(1)
rmdel(1)
rmdir(1)
rmdir(1g)
rmformat(1)
rmmount(1)
rmumount(1)
roffbib(1)
roles(1)
rpcclient(1)
rpcgen(1)
rping(1)
rpm2cpio(1)
rsh(1)
rsync(1)
rtorrent(1)
ruby(1)
run_erl(1)
runat(1)
rup(1)
rup(1C)
ruptime(1)
rusage(1B)
rusers(1)
rwho(1)
sact(1)
sane-config(1)
sane-find-scanner(1)
sar(1)
scanimage(1)
scanpci(1)
sccmap(1)
sccs-admin(1)
sccs-cdc(1)
sccs-comb(1)
sccs-delta(1)
sccs-get(1)
sccs-help(1)
sccs-prs(1)
sccs-prt(1)
sccs-rmdel(1)
sccs-sact(1)
sccs-sccsdiff(1)
sccs-unget(1)
sccs-val(1)
sccs(1)
sccsdiff(1)
sccshelp(1)
scdaemon(1)
scp(1)
screen(1)
script(1)
sdiff(1)
sdiff(1g)
sed(1)
sed(1B)
sed(1g)
select(1)
sem(1)
seq(1)
sessreg(1)
set(1)
setenv(1)
setfacl(1)
setlabel(1)
setpgrp(1)
setterm(1)
settime(1)
setxkbmap(1)
sftp(1)
sh(1)
sha1sum(1)
sha224sum(1)
sha256sum(1)
sha384sum(1)
sha512sum(1)
sharesec(1)
shasum(1)
shcomp(1)
shell_builtins(1)
shift(1)
showfont(1)
showrgb(1)
shred(1)
shuf(1)
shutdown(1B)
sitepods(1)
size(1)
size(1g)
sleep(1)
sleep(1g)
slib(1)
sliceprint(1)
slrn(1)
slrnpull(1)
slsh(1)
smbcacls(1)
smbclient(1)
smbcontrol(1)
smbcquotas(1)
smbget(1)
smbprofiles(1)
smbstatus(1)
smbtar(1)
smbtree(1)
smime_keys(1)
smproxy(1)
smyrna(1)
sndfile-convert(1)
sndfile-info(1)
sndfile-play(1)
snmpbulkget(1)
snmpbulkwalk(1)
snmpc(1)
snmpcmd(1)
snmpconf(1)
snmpdelta(1)
snmpdf(1)
snmpget(1)
snmpgetnext(1)
snmpinform(1)
snmpnetstat(1)
snmpset(1)
snmptable(1)
snmptest(1)
snmptranslate(1)
snmptrap(1)
snmpusm(1)
snmpvacm(1)
snmpwalk(1)
soelim(1)
sort(1)
sort(1g)
sortbib(1)
sotruss(1)
source(1)
sox(1)
soxi(1)
sparc(1)
spawn-fcgi(1)
spell(1)
spellin(1)
splain(1)
split(1)
split(1g)
sql(1)
squidclient(1)
srchtxt(1)
ssh-add(1)
ssh-agent(1)
ssh-http-proxy-connect(1)
ssh-keygen(1)
ssh-keyscan(1)
ssh-socks5-proxy-connect(1)
ssh(1)
start(1)
start_erl(1)
start_webtool(1)
startx(1)
stat(1)
states(1)
stdbuf(1)
stdpods(1)
stop(1)
strchg(1)
strconf(1)
stream(1)
strings(1)
strings(1g)
strip(1)
stty(1)
stty(1B)
stty(1g)
sum(1)
sum(1B)
sum(1g)
sun(1)
suspend(1)
svcio(1)
svcprop(1)
svcs(1)
svn(1)
svnadmin(1)
svndumpfilter(1)
svnlook(1)
svnrdump(1)
svnsync(1)
svnversion(1)
swift-account-auditor(1)
swift-account-reaper(1)
swift-account-replicator(1)
swift-account-server(1)
swift-container-auditor(1)
swift-container-replicator(1)
swift-container-server(1)
swift-container-sync(1)
swift-container-updater(1)
swift-dispersion-populate(1)
swift-dispersion-report(1)
swift-get-nodes(1)
swift-init(1)
swift-object-auditor(1)
swift-object-expirer(1)
swift-object-info(1)
swift-object-replicator(1)
swift-object-server(1)
swift-object-updater(1)
swift-proxy-server(1)
swift-recon(1)
swift-ring-builder(1)
swift(1)
swig(1)
switch(1)
sxpm(1)
symcryptrun(1)
symilar(1)
symorder(1)
sync(1g)
synclient(1)
syndaemon(1)
sys-suspend(1)
sysV-make(1)
t300(1)
t300s(1)
t4014(1)
t450(1)
tab2space(1)
tabs(1)
tac(1)
tail(1)
tail(1g)
talk(1)
tar(1)
tar(1g)
tbl(1)
tclsh(1)
tcopy(1)
tcpdump(1)
tcsh(1)
tee(1)
tee(1g)
tek(1)
telnet(1)
test(1)
test(1B)
test(1g)
testparm(1)
texi2dvi(1)
texi2dvi4a2ps(1)
texindex(1)
text2pcap(1)
tfmtodit(1)
tftp(1)
tidy(1)
tifficc(1)
time(1)
timemanp(1)
timeout(1)
times(1)
timesysp(1)
timex(1)
tip(1)
tkmib(1)
tknewsbiff(1)
top(1)
touch(1)
touch(1B)
touch(1g)
tplot(1)
tput(1)
tput(1g)
tr(1)
tr(1B)
tr(1g)
transset(1)
trap(1)
traptoemail(1)
tred(1)
troff(1)
true(1)
true(1g)
truncate(1)
truss(1)
tset(1B)
tset(1g)
tshark(1)
tsort(1)
tsort(1g)
tty(1)
tty(1g)
twm(1)
type(1)
typeset(1)
ucmatose(1)
ucs2any(1)
udaddy(1)
ul(1)
ulimit(1)
umask(1)
unalias(1)
uname(1)
uname(1g)
unbuffer(1)
uncompress(1)
unexpand(1)
unexpand(1g)
unflatten(1)
unget(1)
unhash(1)
unifdef(1)
uniq(1)
uniq(1g)
units(1)
unix2dos(1)
unlimit(1)
unlink(1g)
unpack(1)
unrar(1)
unset(1)
unsetenv(1)
until(1)
unzip(1)
unzipsfx(1)
update_rubygems(1)
updatehome(1)
uptime(1)
uptime(1g)
userattr(1)
users(1)
users(1B)
uucp(1C)
uudecode(1C)
uuencode(1C)
uuglist(1C)
uulog(1C)
uuname(1C)
uupick(1C)
uustat(1C)
uuto(1C)
uux(1C)
uxterm(1)
vacation(1)
val(1)
valdate(1)
valgid(1)
valint(1)
valpath(1)
valrange(1)
valstr(1)
valtime(1)
valuid(1)
valyorn(1)
vc(1)
vdir(1)
vdltodmx(1)
vedit(1)
ver(1)
vfstest(1)
vgrind(1)
vi(1)
view(1)
viewres(1)
vim(1)
vimdiff(1)
vimdot(1)
vimtutor(1)
vipw(1B)
vmmouse_detect(1)
vncconfig(1)
vncpasswd(1)
vncserver(1)
vncviewer(1)
volcheck(1)
volrmmount(1)
vp(1)
w(1)
wait(1)
Wand-config(1)
watchgnupg(1)
wbinfo(1)
wc(1)
wc(1g)
webalizer(1)
webpng(1)
werl(1)
wftopfa(1)
wget(1)
what(1)
whatis(1)
whence(1)
whereis(1B)
which(1)
which(1g)
while(1)
who(1)
who(1g)
whoami(1)
whoami(1B)
whocalls(1)
whois(1)
widget(1)
winsysck(1)
wireshark(1)
wish(1)
wnn(1)
wnn8(1)
Wnn8(1)
wnnatod(1)
wnndictutil(1)
wnndtoa(1)
wnnenvutil(1)
wnnstat(1)
wnnsysenv_client (1)
write(1)
wtpt(1)
wx-config(1)
wxrc(1)
x0vncserver(1)
x11perf(1)
x11perfcomp(1)
xargs(1)
xargs(1g)
xatokx2cvttool (1)
xauth(1)
xbiff(1)
xcalc(1)
xclipboard(1)
xclock(1)
xcmsdb(1)
xcolor(1)
xcompmgr(1)
xconsole(1)
xcursorgen(1)
xcutsel(1)
xditview(1)
xdm(1)
Xdmx(1)
xdmxconfig(1)
xdpr(1)
xdpyinfo(1)
xdriinfo(1)
xedit(1)
Xephyr(1)
xev(1)
xeyes(1)
xfd(1)
xfindproxy(1)
xfontsel(1)
xfs(1)
xfsinfo(1)
xfwp(1)
xgamma(1)
xgc(1)
xgettext(1)
xgettext(1g)
xhost(1)
xinit(1)
xinput(1)
xkbbell(1)
xkbcomp(1)
xkbprint(1)
xkbvleds(1)
xkbwatch(1)
xkibitz(1)
xkill(1)
xload(1)
xlock(1)
xlogo(1)
xlsatoms(1)
xlsclients(1)
xlsfonts(1)
xlswins(1)
xmag(1)
xmag_multivis(1)
xmakemap(1)
xman(1)
Xmark(1)
xmkmf(1)
xml2-config(1)
xml2ag(1)
xmlcatalog(1)
xmllint(1)
xmodmap(1)
Xnest(1)
Xorg(1)
xorgcfg(1)
xorgconfig(1)
xorriso(1)
xpr(1)
xprop(1)
xrandr(1)
xrdb(1)
xrefresh(1)
xscanimage(1)
xscope(1)
Xserver(1)
xset(1)
xsetroot(1)
xslt-config(1)
xsltproc(1)
xstdcmap(1)
xstr(1)
xsubpp(1)
xterm(1)
xtotroff(1)
Xvfb(1)
xvidtune(1)
xvinfo(1)
Xvnc(1)
xwd(1)
xwininfo(1)
xwud(1)
xxd(1)
xz(1)
xzdec(1)
xzdiff(1)
xzgrep(1)
xzless(1)
xzmore(1)
yacc(1)
yes(1)
yes(1g)
ypcat(1)
ypmatch(1)
yppasswd(1)
ypwhich(1)
zcat(1)
zenmap(1)
zip(1)
zipcloak(1)
zipgrep(1)
zipinfo(1)
zipnote(1)
zipsplit(1)
zlogin(1)
zonename(1)
zonestat(1)
zsh(1)
zshall(1)
zshbuiltins(1)
zshcalsys(1)
zshcompctl(1)
zshcompsys(1)
zshcompwid(1)
zshcontrib(1)
zshexpn(1)
zshmisc(1)
zshmodules(1)
zshoptions(1)
zshparam(1)
zshroadmap(1)
zshtcpsys(1)
zshzftpsys(1)
zshzle(1)

Rate this document:

Language:
ksh(1)
Name
ksh, ksh93, rksh - Korn Shell, a standard and restricted command and programming
language
Synopsis

ksh [±abcefhikmnoprstuvxBCD] [-R file] [ ±o option] ...


[-] [arg ...]
rksh [±abcefhikmnoprstuvxBCD] [-R file] [±o option] ...
[-] [arg ...]

Description

ksh is a command and programming language that executes commands read from a
terminal or a file. rksh is a restricted version of the command interpreter ksh.
rksh is used to set up login names and execution environments whose capabilities
are more controlled than those of the standard shell.

See Invocation for the meaning of arguments to the shell.


Definitions

A metacharacter is defined as one of the following characters:

; & ( ) | < > NEWLINE SPACE TAB

A blank is a TAB or a SPACE.

An identifier is a sequence of letters, digits, or underscores starting with a


letter or underscore. Identifiers are used as components of variable names.

A vname is a sequence of one or more identifiers separated by a period (.) and


optionally preceded by a period (.). vnames are used as function and variable
names.

A word is a sequence of characters from the character set defined by the current
locale, excluding non-quoted metacharacters.

A command is a sequence of characters in the syntax of the shell language. The


shell reads each command and carries out the desired action either directly or by
invoking separate utilities. A built-in command is a command that is carried out by
the shell itself without creating a separate process. Some commands are built-in
purely for convenience and are not documented in this manual page. Built-ins that
cause side effects in the shell environment and built-ins that are found before
performing a path search (see Execution) are documented in this manual page. For
historical reasons, some of these built-ins behave differently than other built-ins
and are called special built-ins.
Commands

A simple-command is a list of variable assignments (see Variable Assignments) or a


sequence of blank-separated words which can be preceded by a list of variable
assignments. See the Environment section of this manual page.

The first word specifies the name of the command to be executed. Except as
specified in this section, the remaining words are passed as arguments to the
invoked command. The command name is passed as argument 0. See exec (2). The value
of a simple-command is its exit status. If it terminates normally, its value is 0-
255. If it terminates abnormally, its value is 256+signum. The name of the signal
corresponding to the exit status can be obtained by way of the –l option of the
kill built-in utility.

A pipeline is a sequence of one or more commands separated by |. The standard


output of each command but the last is connected by a pipe(2) to the standard input
of the next command. Each command, except possibly the last, is run as a separate
process. The shell waits for the last command to terminate. The exit status of a
pipeline is the exit status of the last command unless the pipefail option is
enabled. Each pipeline can be preceded by the reserved word!. This causes the exit
status of the pipeline to become 0 if the exit status of the last command is non-
zero, and 1 if the exit status of the last command is 0.

A list is a sequence of one or more pipelines separated by ;, &, |&, &&, or |, and
optionally terminated by ;, &, or |&. Of these five symbols, ;, &, and |& have
equal precedence, which is lower than that of && and ||. The symbols && and || also
have equal precedence.

A semicolon (;) causes sequential execution of the preceding pipeline. An ampersand


(&) causes asynchronous execution of the preceding pipeline, that is, the shell
does not wait for that pipeline to finish. The symbol |& causes asynchronous
execution of the preceding pipeline with a two-way pipe established to the parent
shell. The standard input and output of the spawned pipeline can be written to and
read from by the parent shell by applying the redirection operators <& and >& with
arg p to commands and by using –p option of the built-in commands read and print.
The symbol && (||) causes the list following it to be executed only if the
preceding pipeline returns a zero (non-zero) value. One or more NEWLINEs can appear
in a list instead of a semicolon, to delimit a command. The first item of the first
pipeline of a list that is a simple command not beginning with a redirection, and
not occurring within a while, until, or if list , can be preceded by a semicolon.
This semicolon is ignored unless the showme option is enabled as described with the
set built-in.

A command is either a simple-command or one of commands in the following list.


Unless otherwise stated, the value returned by a command is that of the last
simple-command executed in the command.

for vname [ in word ... ] ;do list ;done

Each time a for command is executed, vname is set to the next word taken from
the in word list. If in word ... is omitted, the for command executes the do list
once for each positional parameter that is set starting from 1. Execution ends when
there are no more words in the list. See Parameter Expansion.
(( [expr1] ; [expr2] ; [expr3] )) ;do list ;done

The arithmetic expression expr1 is evaluated first. The arithmetic expression


expr2 is repeatedly evaluated until it evaluates to zero and when non-zero, list is
executed and the arithmetic expression expr3 evaluated. If any expression is
omitted, then it behaves as if it evaluated to 1. See Arithmetic Evaluation.
select vname [ in word ... ] ;do list ;done

A select command prints on standard error (file descriptor 2) the set of words,
each preceded by a number. If in word... is omitted, the positional parameters
starting from 1 are used instead. See Parameter Expansion. The PS3 prompt is
printed and a line is read from the standard input. If this line consists of the
number of one of the listed words, then the value of the variable vname is set to
the word corresponding to this number. If this line is empty, the selection list is
printed again. Otherwise the value of the variable vname is set to null. The
contents of the line read from standard input is saved in the variable REPLY. The
list is executed for each selection until a break or EOF is encountered. If the
REPLY variable is set to null by the execution of list, the selection list is
printed before displaying the PS3 prompt for the next selection.
case word in [ [(] pattern [ | pattern ] ... ) list ;; ] ... esac

A case command executes the list associated with the first pattern that matches
word. The form of the patterns is the same as that used for file name generation.
See File Name Generation.

The ;; operator causes execution of case to terminate. If ;& is used in place


of ;; the next subsequent list, if any, is executed.
if list ;then list [ ;elif list ;then list ] ... [ ;else list ] ;fi

The list following if is executed and, if it returns a zero exit status, the
list following the first then is executed. Otherwise, the list following elif is
executed, and, if its value is zero, the list following the next then is executed.
Failing each successive elif list, the else list is executed. If the if list has
non-zero exit status and there is no else list, then the if command returns a zero
exit status.
while list ;do list ;done
until list ;do list ;done

A while command repeatedly executes the while list and, if the exit status of
the last command in the list is zero, executes the do list, otherwise the loop
terminates. If no commands in the do list are executed, then the while command
returns a zero exit status, until can be used in place of while to negate the loop
termination test.
((expression))

The expression is evaluated using the rules for arithmetic evaluation described
in this manual page. If the value of the arithmetic expression is non-zero, the
exit status is 0. Otherwise the exit status is 1.
(list;)

Execute list in a separate environment. If two adjacent open parentheses are


needed for nesting, a SPACE must be inserted to avoid evaluation as an arithmetic
command as described in this section.

list is simply executed. Unlike the metacharacters, ( and ), { and } are


reserved words and must occur at the beginning of a line or after a ; to be
recognized.
[[ expression ]]

Evaluates expression and returns a zero exit status when expression is true.
See Conditional Expressions for a description of expression.
function varname { list ;}
varname () { list ;}

Define a function which is referenced by varname. A function whose varname


contains a . is called a discipline function and the portion of the varname
preceding the last . must refer to an existing variable.

The body of the function is the list of commands between { and }. A function
defined with the function varname syntax can also be used as an argument to the .
special built-in command to get the equivalent behavior as if the varname() syntax
were used to define it. See Functions.
time [ pipeline ]

If pipeline is omitted, the user and system time for the current shell and
completed child processes is printed on standard error. Otherwise, pipeline is
executed and the elapsed time as well as the user and system time are printed on
standard error. The TIMEFORMAT variable can be set to a format string that
specifies how the timing information should be displayed. See Shell Variables for a
description of the TIMEFORMAT variable.

The following reserved words are recognized as reserved only when they are the
first word of a command and are not quoted:

case
do

done

else

elif

esac

for

fi

function

if

select

then

time

until

while

{ }

[[ ]]

!
Variable Assignments

One or more variable assignments can start a simple command or can be arguments to
the typeset, export, or readonly special built-in commands. The syntax for an
assignment is of the form:

varname=word
varname[word]=word

No space is permitted between varname and the = or between = and word.


varname=(assignlist)

No space is permitted between varname and the =. An assignlist can be one of


the following:

word ...

Indexed array assignment.


[word]=word ...

Associative array assignment. If prefixed by typeset –a, creates an indexed


array instead.
assignment ...

Compound variable assignment. This creates a compound variable varname with


sub-variables of the form varname.name, where name is the name portion of
assignment. The value of varname contains all the assignment elements. Additional
assignments made to sub-variables of varname are also displayed as part of the
value of varname. If no assignments are specified, varname is a compound variable
allowing subsequence child elements to be defined.

You might also like