busybox.pod 111 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902
  1. # vi: set sw=4 ts=4:
  2. =head1 NAME
  3. BusyBox - The Swiss Army Knife of Embedded Linux
  4. =head1 SYNTAX
  5. busybox <applet> [arguments...] # or
  6. <applet> [arguments...] # if symlinked
  7. =head1 DESCRIPTION
  8. BusyBox combines tiny versions of many common UNIX utilities into a single
  9. small executable. It provides minimalist replacements for most of the utilities
  10. you usually find in GNU coreutils, util-linux, etc. The utilities in BusyBox
  11. generally have fewer options than their full-featured GNU cousins; however, the
  12. options that are included provide the expected functionality and behave very
  13. much like their GNU counterparts.
  14. BusyBox has been written with size-optimization and limited resources in mind.
  15. It is also extremely modular so you can easily include or exclude commands (or
  16. features) at compile time. This makes it easy to customize your embedded
  17. systems. To create a working system, just add /dev, /etc, and a Linux kernel.
  18. BusyBox provides a fairly complete POSIX environment for any small or embedded
  19. system.
  20. BusyBox is extremely configurable. This allows you to include only the
  21. components you need, thereby reducing binary size. Run 'make config' or 'make
  22. menuconfig' to select the functionality that you wish to enable. Then run
  23. 'make' to compile BusyBox using your configuration.
  24. After the compile has finished, you should use 'make install' to install
  25. BusyBox. This will install the 'bin/busybox' binary, in the target directory
  26. specified by CONFIG_PREFIX. CONFIG_PREFIX can be set when configuring BusyBox,
  27. or you can specify an alternative location at install time (i.e., with a
  28. command line like 'make CONFIG_PREFIX=/tmp/foo install'). If you enabled
  29. any applet installation scheme (either as symlinks or hardlinks), these will
  30. also be installed in the location pointed to by CONFIG_PREFIX.
  31. =head1 USAGE
  32. BusyBox is a multi-call binary. A multi-call binary is an executable program
  33. that performs the same job as more than one utility program. That means there
  34. is just a single BusyBox binary, but that single binary acts like a large
  35. number of utilities. This allows BusyBox to be smaller since all the built-in
  36. utility programs (we call them applets) can share code for many common
  37. operations.
  38. You can also invoke BusyBox by issuing a command as an argument on the
  39. command line. For example, entering
  40. /bin/busybox ls
  41. will also cause BusyBox to behave as 'ls'.
  42. Of course, adding '/bin/busybox' into every command would be painful. So most
  43. people will invoke BusyBox using links to the BusyBox binary.
  44. For example, entering
  45. ln -s /bin/busybox ls
  46. ./ls
  47. will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled
  48. into BusyBox). Generally speaking, you should never need to make all these
  49. links yourself, as the BusyBox build system will do this for you when you run
  50. the 'make install' command.
  51. If you invoke BusyBox with no arguments, it will provide you with a list of the
  52. applets that have been compiled into your BusyBox binary.
  53. =head1 COMMON OPTIONS
  54. Most BusyBox applets support the B<--help> argument to provide a terse runtime
  55. description of their behavior. If the CONFIG_FEATURE_VERBOSE_USAGE option has
  56. been enabled, more detailed usage information will also be available.
  57. =head1 COMMANDS
  58. Currently available applets include:
  59. [, [[, acpid, add-shell, addgroup, adduser, adjtimex, arch, arp,
  60. arping, ash, awk, base64, basename, beep, blkdiscard, blkid,
  61. blockdev, bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, chat,
  62. chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt,
  63. cksum, clear, cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw,
  64. cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod,
  65. devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname,
  66. dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, echo, ed, egrep,
  67. eject, env, envdir, envuidgid, ether-wake, expand, expr, factor,
  68. fakeidentd, fallocate, false, fatattr, fbset, fbsplash, fdflush,
  69. fdformat, fdisk, fgconsole, fgrep, find, findfs, flock, fold, free,
  70. freeramdisk, fsck, fsck.minix, fsfreeze, fstrim, fsync, ftpd,
  71. ftpget, ftpput, fuser, getopt, getty, grep, groups, gunzip, gzip,
  72. halt, hd, hdparm, head, hexdump, hexedit, hostid, hostname, httpd,
  73. hush, hwclock, i2cdetect, i2cdump, i2cget, i2cset, id, ifconfig,
  74. ifdown, ifenslave, ifplugd, ifup, inetd, init, insmod, install,
  75. ionice, iostat, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, ipneigh,
  76. iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd,
  77. last, less, link, linux32, linux64, linuxrc, ln, loadfont, loadkmap,
  78. logger, login, logname, logread, losetup, lpd, lpq, lpr, ls, lsattr,
  79. lsmod, lsof, lspci, lsscsi, lsusb, lzcat, lzma, lzop, makedevs,
  80. makemime, man, md5sum, mdev, mesg, microcom, mkdir, mkdosfs, mke2fs,
  81. mkfifo, mkfs.ext2, mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap,
  82. mktemp, modinfo, modprobe, more, mount, mountpoint, mpstat, mt, mv,
  83. nameif, nanddump, nandwrite, nbd-client, nc, netstat, nice, nl,
  84. nmeter, nohup, nproc, nsenter, nslookup, ntpd, nuke, od, openvt,
  85. partprobe, passwd, paste, patch, pgrep, pidof, ping, ping6,
  86. pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff,
  87. powertop, printenv, printf, ps, pscan, pstree, pwd, pwdx,
  88. raidautorun, rdate, rdev, readahead, readlink, readprofile,
  89. realpath, reboot, reformime, remove-shell, renice, reset, resize,
  90. resume, rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake,
  91. run-init, run-parts, runlevel, runsv, runsvdir, rx, script,
  92. scriptreplay, sed, sendmail, seq, setarch, setconsole, setfattr,
  93. setfont, setkeycodes, setlogcons, setpriv, setserial, setsid,
  94. setuidgid, sh, sha1sum, sha256sum, sha3sum, sha512sum, showkey,
  95. shred, shuf, slattach, sleep, smemcap, softlimit, sort, split,
  96. ssl_client, start-stop-daemon, stat, strings, stty, su, sulogin,
  97. sum, sv, svc, svlogd, swapoff, swapon, switch_root, sync, sysctl,
  98. syslogd, tac, tail, tar, taskset, tcpsvd, tee, telnet, telnetd,
  99. test, tftp, tftpd, time, timeout, top, touch, tr, traceroute,
  100. traceroute6, true, truncate, tty, ttysize, tunctl, ubiattach,
  101. ubidetach, ubimkvol, ubirename, ubirmvol, ubirsvol, ubiupdatevol,
  102. udhcpc, udhcpd, udpsvd, uevent, umount, uname, unexpand, uniq,
  103. unix2dos, unlink, unlzma, unshare, unxz, unzip, uptime, users,
  104. usleep, uudecode, uuencode, vconfig, vi, vlock, volname, w, wall,
  105. watch, watchdog, wc, wget, which, who, whoami, whois, xargs, xxd,
  106. xz, xzcat, yes, zcat, zcip
  107. =head1 COMMAND DESCRIPTIONS
  108. =over 4
  109. =item B<acpid>
  110. acpid [-df] [-c CONFDIR] [-l LOGFILE] [-a ACTIONFILE] [-M MAPFILE] [-e PROC_EVENT_FILE] [-p PIDFILE]
  111. Listen to ACPI events and spawn specific helpers on event arrival
  112. -d Log to stderr, not log file (implies -f)
  113. -f Run in foreground
  114. -c DIR Config directory [/etc/acpi]
  115. -e FILE /proc event file [/proc/acpi/event]
  116. -l FILE Log file [/var/log/acpid.log]
  117. -p FILE Pid file [/var/run/acpid.pid]
  118. -a FILE Action file [/etc/acpid.conf]
  119. -M FILE Map file [/etc/acpi.map]
  120. Accept and ignore compatibility options -g -m -s -S -v
  121. =item B<add-shell>
  122. add-shell SHELL...
  123. Add SHELLs to /etc/shells
  124. =item B<addgroup>
  125. addgroup [-g GID] [-S] [USER] GROUP
  126. Add a group or add a user to a group
  127. -g GID Group id
  128. -S Create a system group
  129. =item B<adduser>
  130. adduser [OPTIONS] USER [GROUP]
  131. Create new user, or add USER to GROUP
  132. -h DIR Home directory
  133. -g GECOS GECOS field
  134. -s SHELL Login shell
  135. -G GRP Group
  136. -S Create a system user
  137. -D Don't assign a password
  138. -H Don't create home directory
  139. -u UID User id
  140. -k SKEL Skeleton directory (/etc/skel)
  141. =item B<adjtimex>
  142. adjtimex [-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]
  143. Read or set kernel time variables. See adjtimex(2)
  144. -q Quiet
  145. -o OFF Time offset, microseconds
  146. -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm)
  147. -t TICK Microseconds per tick, usually 10000
  148. (positive -t or -f values make clock run faster)
  149. -p TCONST
  150. =item B<arch>
  151. arch
  152. Print system architecture
  153. =item B<arp>
  154. arp
  155. [-vn] [-H HWTYPE] [-i IF] -a [HOSTNAME]
  156. [-v] [-i IF] -d HOSTNAME [pub]
  157. [-v] [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [temp]
  158. [-v] [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [netmask MASK] pub
  159. [-v] [-H HWTYPE] [-i IF] -Ds HOSTNAME IFACE [netmask MASK] pub
  160. Manipulate ARP cache
  161. -a Display (all) hosts
  162. -d Delete ARP entry
  163. -s Set new entry
  164. -v Verbose
  165. -n Don't resolve names
  166. -i IF Network interface
  167. -D Read HWADDR from IFACE
  168. -A,-p AF Protocol family
  169. -H HWTYPE Hardware address type
  170. =item B<arping>
  171. arping [-fqbDUA] [-c CNT] [-w TIMEOUT] [-I IFACE] [-s SRC_IP] DST_IP
  172. Send ARP requests/replies
  173. -f Quit on first ARP reply
  174. -q Quiet
  175. -b Keep broadcasting, don't go unicast
  176. -D Exit with 1 if DST_IP replies
  177. -U Unsolicited ARP mode, update your neighbors
  178. -A ARP answer mode, update your neighbors
  179. -c N Stop after sending N ARP requests
  180. -w TIMEOUT Seconds to wait for ARP reply
  181. -I IFACE Interface to use (default eth0)
  182. -s SRC_IP Sender IP address
  183. DST_IP Target IP address
  184. =item B<ash>
  185. ash [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]]
  186. Unix shell interpreter
  187. =item B<awk>
  188. awk [OPTIONS] [AWK_PROGRAM] [FILE]...
  189. -v VAR=VAL Set variable
  190. -F SEP Use SEP as field separator
  191. -f FILE Read program from FILE
  192. -e AWK_PROGRAM
  193. =item B<base64>
  194. base64 [-d] [FILE]
  195. Base64 encode or decode FILE to standard output
  196. -d Decode data
  197. =item B<basename>
  198. basename FILE [SUFFIX]
  199. Strip directory path and .SUFFIX from FILE
  200. =item B<beep>
  201. beep -f FREQ -l LEN -d DELAY -r COUNT -n
  202. -f Frequency in Hz
  203. -l Length in ms
  204. -d Delay in ms
  205. -r Repetitions
  206. -n Start new tone
  207. =item B<blkdiscard>
  208. blkdiscard [-o OFS] [-l LEN] [-s] DEVICE
  209. Discard sectors on DEVICE
  210. -o OFS Byte offset into device
  211. -l LEN Number of bytes to discard
  212. -s Perform a secure discard
  213. =item B<blkid>
  214. blkid [BLOCKDEV]...
  215. Print UUIDs of all filesystems
  216. =item B<blockdev>
  217. blockdev OPTION BLOCKDEV
  218. --setro Set ro
  219. --setrw Set rw
  220. --getro Get ro
  221. --getss Get sector size
  222. --getbsz Get block size
  223. --setbsz BYTES Set block size
  224. --getsz Get device size in 512-byte sectors
  225. --getsize64 Get device size in bytes
  226. --flushbufs Flush buffers
  227. --rereadpt Reread partition table
  228. =item B<bootchartd>
  229. bootchartd start [PROG ARGS]|stop|init
  230. Create /var/log/bootchart.tgz with boot chart data
  231. start: start background logging; with PROG, run PROG, then kill logging with USR1
  232. stop: send USR1 to all bootchartd processes
  233. init: start background logging; stop when getty/xdm is seen (for init scripts)
  234. Under PID 1: as init, then exec $bootchart_init, /init, /sbin/init
  235. =item B<brctl>
  236. brctl COMMAND [BRIDGE [INTERFACE]]
  237. Manage ethernet bridges
  238. Commands:
  239. show Show a list of bridges
  240. addbr BRIDGE Create BRIDGE
  241. delbr BRIDGE Delete BRIDGE
  242. addif BRIDGE IFACE Add IFACE to BRIDGE
  243. delif BRIDGE IFACE Delete IFACE from BRIDGE
  244. setageing BRIDGE TIME Set ageing time
  245. setfd BRIDGE TIME Set bridge forward delay
  246. sethello BRIDGE TIME Set hello time
  247. setmaxage BRIDGE TIME Set max message age
  248. setpathcost BRIDGE COST Set path cost
  249. setportprio BRIDGE PRIO Set port priority
  250. setbridgeprio BRIDGE PRIO Set bridge priority
  251. stp BRIDGE [1/yes/on|0/no/off] STP on/off
  252. =item B<bunzip2>
  253. bunzip2 [-cfk] [FILE]...
  254. Decompress FILEs (or stdin)
  255. -c Write to stdout
  256. -f Force
  257. -k Keep input files
  258. =item B<bzcat>
  259. bzcat [FILE]...
  260. Decompress to stdout
  261. =item B<bzip2>
  262. bzip2 [OPTIONS] [FILE]...
  263. Compress FILEs (or stdin) with bzip2 algorithm
  264. -1..9 Compression level
  265. -d Decompress
  266. -t Test file integrity
  267. -c Write to stdout
  268. -f Force
  269. -k Keep input files
  270. =item B<cal>
  271. cal [-jy] [[MONTH] YEAR]
  272. Display a calendar
  273. -j Use julian dates
  274. -y Display the entire year
  275. =item B<cat>
  276. cat [-nbvteA] [FILE]...
  277. Print FILEs to stdout
  278. -n Number output lines
  279. -b Number nonempty lines
  280. -v Show nonprinting characters as ^x or M-x
  281. -t ...and tabs as ^I
  282. -e ...and end lines with $
  283. -A Same as -vte
  284. =item B<chat>
  285. chat EXPECT [SEND [EXPECT [SEND...]]]
  286. Useful for interacting with a modem connected to stdin/stdout.
  287. A script consists of "expect-send" argument pairs.
  288. Example:
  289. chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'
  290. =item B<chattr>
  291. chattr [-R] [-v VERSION] [-+=AacDdijsStTu] FILE...
  292. Change ext2 file attributes
  293. -R Recurse
  294. -v VER Set version/generation number
  295. Modifiers:
  296. -,+,= Remove/add/set attributes
  297. Attributes:
  298. A Don't track atime
  299. a Append mode only
  300. c Enable compress
  301. D Write dir contents synchronously
  302. d Don't backup with dump
  303. i Cannot be modified (immutable)
  304. j Write all data to journal first
  305. s Zero disk storage when deleted
  306. S Write synchronously
  307. t Disable tail-merging of partial blocks with other files
  308. u Allow file to be undeleted
  309. =item B<chgrp>
  310. chgrp [-RhLHPcvf]... GROUP FILE...
  311. Change the group membership of each FILE to GROUP
  312. -R Recurse
  313. -h Affect symlinks instead of symlink targets
  314. -L Traverse all symlinks to directories
  315. -H Traverse symlinks on command line only
  316. -P Don't traverse symlinks (default)
  317. -c List changed files
  318. -v Verbose
  319. -f Hide errors
  320. =item B<chmod>
  321. chmod [-Rcvf] MODE[,MODE]... FILE...
  322. Each MODE is one or more of the letters ugoa, one of the
  323. symbols +-= and one or more of the letters rwxst
  324. -R Recurse
  325. -c List changed files
  326. -v List all files
  327. -f Hide errors
  328. =item B<chown>
  329. chown [-RhLHPcvf]... USER[:[GRP]] FILE...
  330. Change the owner and/or group of each FILE to USER and/or GRP
  331. -R Recurse
  332. -h Affect symlinks instead of symlink targets
  333. -L Traverse all symlinks to directories
  334. -H Traverse symlinks on command line only
  335. -P Don't traverse symlinks (default)
  336. -c List changed files
  337. -v List all files
  338. -f Hide errors
  339. =item B<chpasswd>
  340. chpasswd [--md5|--encrypted|--crypt-method]
  341. Read user:password from stdin and update /etc/passwd
  342. -e,--encrypted Supplied passwords are in encrypted form
  343. -m,--md5 Eencrypt using md5, not des
  344. -c,--crypt-method ALG des,md5,sha256/512 (default des)
  345. =item B<chpst>
  346. chpst [-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR]
  347. [-/ DIR] [-n NICE] [-m BYTES] [-d BYTES] [-o N]
  348. [-p N] [-f BYTES] [-c BYTES] PROG ARGS
  349. Change the process state, run PROG
  350. -u USER[:GRP] Set uid and gid
  351. -U USER[:GRP] Set $UID and $GID in environment
  352. -e DIR Set environment variables as specified by files
  353. in DIR: file=1st_line_of_file
  354. -/ DIR Chroot to DIR
  355. -n NICE Add NICE to nice value
  356. -m BYTES Same as -d BYTES -s BYTES -l BYTES
  357. -d BYTES Limit data segment
  358. -o N Limit number of open files per process
  359. -p N Limit number of processes per uid
  360. -f BYTES Limit output file sizes
  361. -c BYTES Limit core file size
  362. -v Verbose
  363. -P Create new process group
  364. -0 Close stdin
  365. -1 Close stdout
  366. -2 Close stderr
  367. =item B<chroot>
  368. chroot NEWROOT [PROG ARGS]
  369. Run PROG with root directory set to NEWROOT
  370. =item B<chrt>
  371. chrt [-prfom] [PRIO] [PID | PROG ARGS]
  372. Change scheduling priority and class for a process
  373. -p Operate on PID
  374. -r Set SCHED_RR class
  375. -f Set SCHED_FIFO class
  376. -o Set SCHED_OTHER class
  377. -m Show min/max priorities
  378. =item B<chvt>
  379. chvt N
  380. Change the foreground virtual terminal to /dev/ttyN
  381. =item B<cksum>
  382. cksum FILE...
  383. Calculate the CRC32 checksums of FILEs
  384. =item B<clear>
  385. clear
  386. Clear screen
  387. =item B<cmp>
  388. cmp [-l] [-s] FILE1 [FILE2 [SKIP1 [SKIP2]]]
  389. Compare FILE1 with FILE2 (or stdin)
  390. -l Write the byte numbers (decimal) and values (octal)
  391. for all differing bytes
  392. -s Quiet
  393. =item B<comm>
  394. comm [-123] FILE1 FILE2
  395. Compare FILE1 with FILE2
  396. -1 Suppress lines unique to FILE1
  397. -2 Suppress lines unique to FILE2
  398. -3 Suppress lines common to both files
  399. =item B<conspy>
  400. conspy [-vcsndfFQ] [-x COL] [-y LINE] [CONSOLE_NO]
  401. A text-mode VNC like program for Linux virtual consoles.
  402. To exit, quickly press ESC 3 times.
  403. -v Don't send keystrokes to the console
  404. -c Create missing /dev/{tty,vcsa}N
  405. -s Open a SHELL session
  406. -n Black & white
  407. -d Dump console to stdout
  408. -f Follow cursor
  409. -F Assume console is on a framebuffer device
  410. -Q Disable exit on ESC-ESC-ESC
  411. -x COL Starting column
  412. -y LINE Starting line
  413. =item B<cp>
  414. cp [OPTIONS] SOURCE... DEST
  415. Copy SOURCE(s) to DEST
  416. -a Same as -dpR
  417. -R,-r Recurse
  418. -d,-P Preserve symlinks (default if -R)
  419. -L Follow all symlinks
  420. -H Follow symlinks on command line
  421. -p Preserve file attributes if possible
  422. -f Overwrite
  423. -i Prompt before overwrite
  424. -l,-s Create (sym)links
  425. -T Treat DEST as a normal file
  426. -u Copy only newer files
  427. =item B<cpio>
  428. cpio [-dmvu] [-F FILE] [-R USER[:GRP]] [-H newc] [-tio] [-p DIR] [EXTR_FILE]...
  429. Extract (-i) or list (-t) files from a cpio archive, or
  430. take file list from stdin and create an archive (-o) or copy files (-p)
  431. Main operation mode:
  432. -t List
  433. -i Extract EXTR_FILEs (or all)
  434. -o Create (requires -H newc)
  435. -p DIR Copy files to DIR
  436. Options:
  437. -d Make leading directories
  438. -m Preserve mtime
  439. -v Verbose
  440. -u Overwrite
  441. -F FILE Input (-t,-i,-p) or output (-o) file
  442. -R USER[:GRP] Set owner of created files
  443. -H newc Archive format
  444. =item B<crond>
  445. crond -fbS -l N -d N -L LOGFILE -c DIR
  446. -f Foreground
  447. -b Background (default)
  448. -S Log to syslog (default)
  449. -l N Set log level. Most verbose 0, default 8
  450. -d N Set log level, log to stderr
  451. -L FILE Log to FILE
  452. -c DIR Cron dir. Default:/var/spool/cron/crontabs
  453. =item B<crontab>
  454. crontab [-c DIR] [-u USER] [-ler]|[FILE]
  455. -c Crontab directory
  456. -u User
  457. -l List crontab
  458. -e Edit crontab
  459. -r Delete crontab
  460. FILE Replace crontab by FILE ('-': stdin)
  461. =item B<cryptpw>
  462. cryptpw [OPTIONS] [PASSWORD] [SALT]
  463. Print crypt(3) hashed PASSWORD
  464. -P,--password-fd N Read password from fd N
  465. -m,--method TYPE des,md5,sha256/512 (default des)
  466. -S,--salt SALT
  467. =item B<cttyhack>
  468. cttyhack [PROG ARGS]
  469. Give PROG a controlling tty if possible.
  470. Example for /etc/inittab (for busybox init):
  471. ::respawn:/bin/cttyhack /bin/sh
  472. Giving controlling tty to shell running with PID 1:
  473. $ exec cttyhack sh
  474. Starting interactive shell from boot shell script:
  475. setsid cttyhack sh
  476. =item B<cut>
  477. cut [OPTIONS] [FILE]...
  478. Print selected fields from each input FILE to stdout
  479. -b LIST Output only bytes from LIST
  480. -c LIST Output only characters from LIST
  481. -d CHAR Use CHAR instead of tab as the field delimiter
  482. -s Output only the lines containing delimiter
  483. -f N Print only these fields
  484. -n Ignored
  485. =item B<date>
  486. date [OPTIONS] [+FMT] [TIME]
  487. Display time (using +FMT), or set time
  488. [-s,--set] TIME Set time to TIME
  489. -u,--utc Work in UTC (don't convert to local time)
  490. -R,--rfc-2822 Output RFC-2822 compliant date string
  491. -I[SPEC] Output ISO-8601 compliant date string
  492. SPEC='date' (default) for date only,
  493. 'hours', 'minutes', or 'seconds' for date and
  494. time to the indicated precision
  495. -r,--reference FILE Display last modification time of FILE
  496. -d,--date TIME Display TIME, not 'now'
  497. -D FMT Use FMT for -d TIME conversion
  498. Recognized TIME formats:
  499. hh:mm[:ss]
  500. [YYYY.]MM.DD-hh:mm[:ss]
  501. YYYY-MM-DD hh:mm[:ss]
  502. [[[[[YY]YY]MM]DD]hh]mm[.ss]
  503. 'date TIME' form accepts MMDDhhmm[[YY]YY][.ss] instead
  504. =item B<dc>
  505. dc EXPRESSION...
  506. Tiny RPN calculator. Operations:
  507. +, add, -, sub, *, mul, /, div, %, mod, **, exp, and, or, not, xor,
  508. p - print top of the stack (without popping),
  509. f - print entire stack,
  510. o - pop the value and set output radix (must be 10, 16, 8 or 2).
  511. Examples: 'dc 2 2 add p' -> 4, 'dc 8 8 mul 2 2 + / p' -> 16
  512. =item B<dd>
  513. dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N]
  514. [seek=N] [conv=notrunc|noerror|sync|fsync] [iflag=skip_bytes]
  515. Copy a file with converting and formatting
  516. if=FILE Read from FILE instead of stdin
  517. of=FILE Write to FILE instead of stdout
  518. bs=N Read and write N bytes at a time
  519. ibs=N Read N bytes at a time
  520. obs=N Write N bytes at a time
  521. count=N Copy only N input blocks
  522. skip=N Skip N input blocks
  523. seek=N Skip N output blocks
  524. conv=notrunc Don't truncate output file
  525. conv=noerror Continue after read errors
  526. conv=sync Pad blocks with zeros
  527. conv=fsync Physically write data out before finishing
  528. conv=swab Swap every pair of bytes
  529. iflag=skip_bytes skip=N is in bytes
  530. status=noxfer Suppress rate output
  531. status=none Suppress all output
  532. N may be suffixed by c (1), w (2), b (512), kB (1000), k (1024), MB, M, GB, G
  533. =item B<deallocvt>
  534. deallocvt [N]
  535. Deallocate unused virtual terminal /dev/ttyN
  536. =item B<delgroup>
  537. delgroup [USER] GROUP
  538. Delete group GROUP from the system or user USER from group GROUP
  539. =item B<deluser>
  540. deluser [--remove-home] USER
  541. Delete USER from the system
  542. =item B<depmod>
  543. depmod [-n]
  544. Generate modules.dep.bb
  545. -n Dry run: print file to stdout
  546. =item B<devmem>
  547. devmem ADDRESS [WIDTH [VALUE]]
  548. Read/write from physical address
  549. ADDRESS Address to act upon
  550. WIDTH Width (8/16/...)
  551. VALUE Data to be written
  552. =item B<df>
  553. df [-PkmhTai] [-B SIZE] [FILESYSTEM]...
  554. Print filesystem usage statistics
  555. -P POSIX output format
  556. -k 1024-byte blocks (default)
  557. -m 1M-byte blocks
  558. -h Human readable (e.g. 1K 243M 2G)
  559. -T Print filesystem type
  560. -a Show all filesystems
  561. -i Inodes
  562. -B SIZE Blocksize
  563. =item B<dhcprelay>
  564. dhcprelay CLIENT_IFACE[,CLIENT_IFACE2]... SERVER_IFACE [SERVER_IP]
  565. Relay DHCP requests between clients and server
  566. =item B<diff>
  567. diff [-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2
  568. Compare files line by line and output the differences between them.
  569. This implementation supports unified diffs only.
  570. -a Treat all files as text
  571. -b Ignore changes in the amount of whitespace
  572. -B Ignore changes whose lines are all blank
  573. -d Try hard to find a smaller set of changes
  574. -i Ignore case differences
  575. -L Use LABEL instead of the filename in the unified header
  576. -N Treat absent files as empty
  577. -q Output only whether files differ
  578. -r Recurse
  579. -S Start with FILE when comparing directories
  580. -T Make tabs line up by prefixing a tab when necessary
  581. -s Report when two files are the same
  582. -t Expand tabs to spaces in output
  583. -U Output LINES lines of context
  584. -w Ignore all whitespace
  585. =item B<dirname>
  586. dirname FILENAME
  587. Strip non-directory suffix from FILENAME
  588. =item B<dmesg>
  589. dmesg [-c] [-n LEVEL] [-s SIZE]
  590. Print or control the kernel ring buffer
  591. -c Clear ring buffer after printing
  592. -n LEVEL Set console logging level
  593. -s SIZE Buffer size
  594. -r Print raw message buffer
  595. =item B<dnsd>
  596. dnsd [-dvs] [-c CONFFILE] [-t TTL_SEC] [-p PORT] [-i ADDR]
  597. Small static DNS server daemon
  598. -c FILE Config file
  599. -t SEC TTL
  600. -p PORT Listen on PORT
  601. -i ADDR Listen on ADDR
  602. -d Daemonize
  603. -v Verbose
  604. -s Send successful replies only. Use this if you want
  605. to use /etc/resolv.conf with two nameserver lines:
  606. nameserver DNSD_SERVER
  607. nameserver NORMAL_DNS_SERVER
  608. =item B<dos2unix>
  609. dos2unix [-ud] [FILE]
  610. Convert FILE in-place from DOS to Unix format.
  611. When no file is given, use stdin/stdout.
  612. -u dos2unix
  613. -d unix2dos
  614. =item B<dpkg>
  615. dpkg [-ilCPru] [-F OPT] PACKAGE
  616. Install, remove and manage Debian packages
  617. -i,--install Install the package
  618. -l,--list List of installed packages
  619. --configure Configure an unpackaged package
  620. -P,--purge Purge all files of a package
  621. -r,--remove Remove all but the configuration files for a package
  622. --unpack Unpack a package, but don't configure it
  623. --force-depends Ignore dependency problems
  624. --force-confnew Overwrite existing config files when installing
  625. --force-confold Keep old config files when installing
  626. =item B<dpkg-deb>
  627. dpkg-deb [-cefxX] FILE [DIR]
  628. Perform actions on Debian packages (.deb)
  629. -c List files
  630. -f Print control fields
  631. -e Extract control files to DIR (default: ./DEBIAN)
  632. -x Extract files to DIR (no default)
  633. -X Verbose -x
  634. =item B<du>
  635. du [-aHLdclsxhmk] [FILE]...
  636. Summarize disk space used for each FILE and/or directory
  637. -a Show file sizes too
  638. -L Follow all symlinks
  639. -H Follow symlinks on command line
  640. -d N Limit output to directories (and files with -a) of depth < N
  641. -c Show grand total
  642. -l Count sizes many times if hard linked
  643. -s Display only a total for each argument
  644. -x Skip directories on different filesystems
  645. -h Sizes in human readable format (e.g., 1K 243M 2G)
  646. -m Sizes in megabytes
  647. -k Sizes in kilobytes (default)
  648. =item B<dumpkmap>
  649. dumpkmap > keymap
  650. Print a binary keyboard translation table to stdout
  651. =item B<dumpleases>
  652. dumpleases [-r|-a] [-d] [-f LEASEFILE]
  653. Display DHCP leases granted by udhcpd
  654. -f,--file FILE Lease file
  655. -r,--remaining Show remaining time
  656. -a,--absolute Show expiration time
  657. -d,--decimal Show time in seconds
  658. =item B<echo>
  659. echo [-neE] [ARG]...
  660. Print the specified ARGs to stdout
  661. -n Suppress trailing newline
  662. -e Interpret backslash escapes (i.e., \t=tab)
  663. -E Don't interpret backslash escapes (default)
  664. =item B<ed>
  665. ed [FILE]
  666. =item B<eject>
  667. eject [-t] [-T] [DEVICE]
  668. Eject DEVICE or default /dev/cdrom
  669. -s SCSI device
  670. -t Close tray
  671. -T Open/close tray (toggle)
  672. =item B<env>
  673. env [-iu] [-] [name=value]... [PROG ARGS]
  674. Print the current environment or run PROG after setting up
  675. the specified environment
  676. -, -i Start with an empty environment
  677. -u Remove variable from the environment
  678. =item B<envdir>
  679. envdir DIR PROG ARGS
  680. Set various environment variables as specified by files
  681. in the directory DIR, run PROG
  682. =item B<envuidgid>
  683. envuidgid USER PROG ARGS
  684. Set $UID to USER's uid and $GID to USER's gid, run PROG
  685. =item B<ether-wake>
  686. ether-wake [-b] [-i IFACE] [-p aa:bb:cc:dd[:ee:ff]/a.b.c.d] MAC
  687. Send a magic packet to wake up sleeping machines.
  688. MAC must be a station address (00:11:22:33:44:55) or
  689. a hostname with a known 'ethers' entry.
  690. -b Broadcast the packet
  691. -i IFACE Interface to use (default eth0)
  692. -p PASSWORD Append four or six byte PASSWORD to the packet
  693. =item B<expand>
  694. expand [-i] [-t N] [FILE]...
  695. Convert tabs to spaces, writing to stdout
  696. -i Don't convert tabs after non blanks
  697. -t Tabstops every N chars
  698. =item B<expr>
  699. expr EXPRESSION
  700. Print the value of EXPRESSION to stdout
  701. EXPRESSION may be:
  702. ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2
  703. ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0
  704. ARG1 < ARG2 1 if ARG1 is less than ARG2, else 0. Similarly:
  705. ARG1 <= ARG2
  706. ARG1 = ARG2
  707. ARG1 != ARG2
  708. ARG1 >= ARG2
  709. ARG1 > ARG2
  710. ARG1 + ARG2 Sum of ARG1 and ARG2. Similarly:
  711. ARG1 - ARG2
  712. ARG1 * ARG2
  713. ARG1 / ARG2
  714. ARG1 % ARG2
  715. STRING : REGEXP Anchored pattern match of REGEXP in STRING
  716. match STRING REGEXP Same as STRING : REGEXP
  717. substr STRING POS LENGTH Substring of STRING, POS counted from 1
  718. index STRING CHARS Index in STRING where any CHARS is found, or 0
  719. length STRING Length of STRING
  720. quote TOKEN Interpret TOKEN as a string, even if
  721. it is a keyword like 'match' or an
  722. operator like '/'
  723. (EXPRESSION) Value of EXPRESSION
  724. Beware that many operators need to be escaped or quoted for shells.
  725. Comparisons are arithmetic if both ARGs are numbers, else
  726. lexicographical. Pattern matches return the string matched between
  727. \( and \) or null; if \( and \) are not used, they return the number
  728. of characters matched or 0.
  729. =item B<factor>
  730. factor [NUMBER]...
  731. Print prime factors
  732. =item B<fakeidentd>
  733. fakeidentd [-fiw] [-b ADDR] [STRING]
  734. Provide fake ident (auth) service
  735. -f Run in foreground
  736. -i Inetd mode
  737. -w Inetd 'wait' mode
  738. -b ADDR Bind to specified address
  739. STRING Ident answer string (default: nobody)
  740. =item B<fallocate>
  741. fallocate [-o OFS] -l LEN FILE
  742. Preallocate space for FILE
  743. -o OFS Offset of range
  744. -l LEN Length of range
  745. =item B<fatattr>
  746. fatattr [-+rhsvda] FILE...
  747. Change file attributes on FAT filesystem
  748. - Clear attributes
  749. + Set attributes
  750. r Read only
  751. h Hidden
  752. s System
  753. v Volume label
  754. d Directory
  755. a Archive
  756. =item B<fbset>
  757. fbset [OPTIONS] [MODE]
  758. Show and modify frame buffer settings
  759. =item B<fbsplash>
  760. fbsplash -s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]
  761. -s Image
  762. -c Hide cursor
  763. -d Framebuffer device (default /dev/fb0)
  764. -i Config file (var=value):
  765. BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT
  766. BAR_R,BAR_G,BAR_B
  767. -f Control pipe (else exit after drawing image)
  768. commands: 'NN' (% for progress bar) or 'exit'
  769. =item B<fdflush>
  770. fdflush DEVICE
  771. Force floppy disk drive to detect disk change
  772. =item B<fdformat>
  773. fdformat [-n] DEVICE
  774. Format floppy disk
  775. -n Don't verify after format
  776. =item B<fdisk>
  777. fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK
  778. Change partition table
  779. -u Start and End are in sectors (instead of cylinders)
  780. -l Show partition table for each DISK, then exit
  781. -b 2048 (for certain MO disks) use 2048-byte sectors
  782. -C CYLINDERS Set number of cylinders/heads/sectors
  783. -H HEADS Typically 255
  784. -S SECTORS Typically 63
  785. =item B<fgconsole>
  786. fgconsole
  787. Get active console
  788. =item B<find>
  789. find [-HL] [PATH]... [OPTIONS] [ACTIONS]
  790. Search for files and perform actions on them.
  791. First failed action stops processing of current file.
  792. Defaults: PATH is current directory, action is '-print'
  793. -L,-follow Follow symlinks
  794. -H ...on command line only
  795. -xdev Don't descend directories on other filesystems
  796. -maxdepth N Descend at most N levels. -maxdepth 0 applies
  797. actions to command line arguments only
  798. -mindepth N Don't act on first N levels
  799. -depth Act on directory *after* traversing it
  800. Actions:
  801. ( ACTIONS ) Group actions for -o / -a
  802. ! ACT Invert ACT's success/failure
  803. ACT1 [-a] ACT2 If ACT1 fails, stop, else do ACT2
  804. ACT1 -o ACT2 If ACT1 succeeds, stop, else do ACT2
  805. Note: -a has higher priority than -o
  806. -name PATTERN Match file name (w/o directory name) to PATTERN
  807. -iname PATTERN Case insensitive -name
  808. -path PATTERN Match path to PATTERN
  809. -ipath PATTERN Case insensitive -path
  810. -regex PATTERN Match path to regex PATTERN
  811. -type X File type is X (one of: f,d,l,b,c,...)
  812. -perm MASK At least one mask bit (+MASK), all bits (-MASK),
  813. or exactly MASK bits are set in file's mode
  814. -mtime DAYS mtime is greater than (+N), less than (-N),
  815. or exactly N days in the past
  816. -mmin MINS mtime is greater than (+N), less than (-N),
  817. or exactly N minutes in the past
  818. -newer FILE mtime is more recent than FILE's
  819. -inum N File has inode number N
  820. -user NAME/ID File is owned by given user
  821. -group NAME/ID File is owned by given group
  822. -size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.))
  823. +/-N: file size is bigger/smaller than N
  824. -links N Number of links is greater than (+N), less than (-N),
  825. or exactly N
  826. -prune If current file is directory, don't descend into it
  827. If none of the following actions is specified, -print is assumed
  828. -print Print file name
  829. -print0 Print file name, NUL terminated
  830. -exec CMD ARG ; Run CMD with all instances of {} replaced by
  831. file name. Fails if CMD exits with nonzero
  832. -exec CMD ARG + Run CMD with {} replaced by list of file names
  833. -delete Delete current file/directory. Turns on -depth option
  834. =item B<findfs>
  835. findfs LABEL=label or UUID=uuid
  836. Find a filesystem device based on a label or UUID
  837. =item B<flock>
  838. flock [-sxun] FD|{FILE [-c] PROG ARGS}
  839. [Un]lock file descriptor, or lock FILE, run PROG
  840. -s Shared lock
  841. -x Exclusive lock (default)
  842. -u Unlock FD
  843. -n Fail rather than wait
  844. =item B<fold>
  845. fold [-bs] [-w WIDTH] [FILE]...
  846. Wrap input lines in each FILE (or stdin), writing to stdout
  847. -b Count bytes rather than columns
  848. -s Break at spaces
  849. -w Use WIDTH columns instead of 80
  850. =item B<free>
  851. free [-b/k/m/g]
  852. Display the amount of free and used system memory
  853. =item B<freeramdisk>
  854. freeramdisk DEVICE
  855. Free all memory used by the specified ramdisk
  856. =item B<fsck>
  857. fsck [-ANPRTV] [-t FSTYPE] [FS_OPTS] [BLOCKDEV]...
  858. Check and repair filesystems
  859. -A Walk /etc/fstab and check all filesystems
  860. -N Don't execute, just show what would be done
  861. -P With -A, check filesystems in parallel
  862. -R With -A, skip the root filesystem
  863. -T Don't show title on startup
  864. -V Verbose
  865. -t TYPE List of filesystem types to check
  866. =item B<fsck.minix>
  867. fsck.minix [-larvsmf] BLOCKDEV
  868. Check MINIX filesystem
  869. -l List all filenames
  870. -r Perform interactive repairs
  871. -a Perform automatic repairs
  872. -v Verbose
  873. -s Output superblock information
  874. -m Show "mode not cleared" warnings
  875. -f Force file system check
  876. =item B<fsfreeze>
  877. fsfreeze --[un]freeze MOUNTPOINT
  878. Flush and halt writes to MOUNTPOINT
  879. =item B<fstrim>
  880. fstrim [OPTIONS] MOUNTPOINT
  881. -o,--offset OFFSET Offset in bytes to discard from
  882. -l,--length LEN Bytes to discard
  883. -m,--minimum MIN Minimum extent length
  884. -v,--verbose Print number of discarded bytes
  885. =item B<fsync>
  886. fsync [-d] FILE...
  887. Write files' buffered blocks to disk
  888. -d Avoid syncing metadata
  889. =item B<ftpd>
  890. ftpd [-wvS] [-a USER] [-t N] [-T N] [DIR]
  891. FTP server. Chroots to DIR, if this fails (run by non-root), cds to it.
  892. Should be used as inetd service, inetd.conf line:
  893. 21 stream tcp nowait root ftpd ftpd /files/to/serve
  894. Can be run from tcpsvd:
  895. tcpsvd -vE 0.0.0.0 21 ftpd /files/to/serve
  896. -w Allow upload
  897. -a USER Enable 'anonymous' login and map it to USER
  898. -v Log errors to stderr. -vv: verbose log
  899. -S Log errors to syslog. -SS: verbose log
  900. -t,-T N Idle and absolute timeout
  901. =item B<ftpget>
  902. ftpget [OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE
  903. Download a file via FTP
  904. -c Continue previous transfer
  905. -v Verbose
  906. -u USER Username
  907. -p PASS Password
  908. -P NUM Port
  909. =item B<ftpput>
  910. ftpput [OPTIONS] HOST [REMOTE_FILE] LOCAL_FILE
  911. Upload a file to a FTP server
  912. -v Verbose
  913. -u USER Username
  914. -p PASS Password
  915. -P NUM Port number
  916. =item B<fuser>
  917. fuser [OPTIONS] FILE or PORT/PROTO
  918. Find processes which use FILEs or PORTs
  919. -m Find processes which use same fs as FILEs
  920. -4,-6 Search only IPv4/IPv6 space
  921. -s Don't display PIDs
  922. -k Kill found processes
  923. -SIGNAL Signal to send (default: KILL)
  924. =item B<getopt>
  925. getopt [OPTIONS] [--] OPTSTRING PARAMS
  926. -a Allow long options starting with single -
  927. -l LOPT[,...] Long options to recognize
  928. -n PROGNAME The name under which errors are reported
  929. -o OPTSTRING Short options to recognize
  930. -q No error messages on unrecognized options
  931. -Q No normal output
  932. -s SHELL Set shell quoting conventions
  933. -T Version test (exits with 4)
  934. -u Don't quote output
  935. Example:
  936. O=`getopt -l bb: -- ab:c:: "$@"` || exit 1
  937. eval set -- "$O"
  938. while true; do
  939. case "$1" in
  940. -a) echo A; shift;;
  941. -b|--bb) echo "B:'$2'"; shift 2;;
  942. -c) case "$2" in
  943. "") echo C; shift 2;;
  944. *) echo "C:'$2'"; shift 2;;
  945. esac;;
  946. --) shift; break;;
  947. *) echo Error; exit 1;;
  948. esac
  949. done
  950. =item B<getty>
  951. getty [OPTIONS] BAUD_RATE[,BAUD_RATE]... TTY [TERMTYPE]
  952. Open TTY, prompt for login name, then invoke /bin/login
  953. -h Enable hardware RTS/CTS flow control
  954. -L Set CLOCAL (ignore Carrier Detect state)
  955. -m Get baud rate from modem's CONNECT status message
  956. -n Don't prompt for login name
  957. -w Wait for CR or LF before sending /etc/issue
  958. -i Don't display /etc/issue
  959. -f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue
  960. -l LOGIN Invoke LOGIN instead of /bin/login
  961. -t SEC Terminate after SEC if no login name is read
  962. -I INITSTR Send INITSTR before anything else
  963. -H HOST Log HOST into the utmp file as the hostname
  964. BAUD_RATE of 0 leaves it unchanged
  965. =item B<grep>
  966. grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...
  967. Search for PATTERN in FILEs (or stdin)
  968. -H Add 'filename:' prefix
  969. -h Do not add 'filename:' prefix
  970. -n Add 'line_no:' prefix
  971. -l Show only names of files that match
  972. -L Show only names of files that don't match
  973. -c Show only count of matching lines
  974. -o Show only the matching part of line
  975. -q Quiet. Return 0 if PATTERN is found, 1 otherwise
  976. -v Select non-matching lines
  977. -s Suppress open and read errors
  978. -r Recurse
  979. -i Ignore case
  980. -w Match whole words only
  981. -x Match whole lines only
  982. -F PATTERN is a literal (not regexp)
  983. -E PATTERN is an extended regexp
  984. -m N Match up to N times per file
  985. -A N Print N lines of trailing context
  986. -B N Print N lines of leading context
  987. -C N Same as '-A N -B N'
  988. -e PTRN Pattern to match
  989. -f FILE Read pattern from file
  990. =item B<groups>
  991. groups [USER]
  992. Print the group memberships of USER or for the current process
  993. =item B<gunzip>
  994. gunzip [-cfkt] [FILE]...
  995. Decompress FILEs (or stdin)
  996. -c Write to stdout
  997. -f Force
  998. -k Keep input files
  999. -t Test file integrity
  1000. =item B<gzip>
  1001. gzip [-cfkdt] [FILE]...
  1002. Compress FILEs (or stdin)
  1003. -d Decompress
  1004. -t Test file integrity
  1005. -c Write to stdout
  1006. -f Force
  1007. -k Keep input files
  1008. =item B<halt>
  1009. halt [-d DELAY] [-n] [-f] [-w]
  1010. Halt the system
  1011. -d SEC Delay interval
  1012. -n Do not sync
  1013. -f Force (don't go through init)
  1014. -w Only write a wtmp record
  1015. =item B<hd>
  1016. hd FILE...
  1017. hd is an alias for hexdump -C
  1018. =item B<hdparm>
  1019. hdparm [OPTIONS] [DEVICE]
  1020. -a Get/set fs readahead
  1021. -A Set drive read-lookahead flag (0/1)
  1022. -b Get/set bus state (0 == off, 1 == on, 2 == tristate)
  1023. -B Set Advanced Power Management setting (1-255)
  1024. -c Get/set IDE 32-bit IO setting
  1025. -C Check IDE power mode status
  1026. -d Get/set using_dma flag
  1027. -D Enable/disable drive defect-mgmt
  1028. -f Flush buffer cache for device on exit
  1029. -g Display drive geometry
  1030. -h Display terse usage information
  1031. -i Display drive identification
  1032. -I Detailed/current information directly from drive
  1033. -k Get/set keep_settings_over_reset flag (0/1)
  1034. -K Set drive keep_features_over_reset flag (0/1)
  1035. -L Set drive doorlock (0/1) (removable harddisks only)
  1036. -m Get/set multiple sector count
  1037. -n Get/set ignore-write-errors flag (0/1)
  1038. -p Set PIO mode on IDE interface chipset (0,1,2,3,4,...)
  1039. -P Set drive prefetch count
  1040. -Q Get/set DMA tagged-queuing depth (if supported)
  1041. -r Get/set readonly flag (DANGEROUS to set)
  1042. -R Register an IDE interface (DANGEROUS)
  1043. -S Set standby (spindown) timeout
  1044. -t Perform device read timings
  1045. -T Perform cache read timings
  1046. -u Get/set unmaskirq flag (0/1)
  1047. -U Unregister an IDE interface (DANGEROUS)
  1048. -v Defaults; same as -mcudkrag for IDE drives
  1049. -V Display program version and exit immediately
  1050. -w Perform device reset (DANGEROUS)
  1051. -W Set drive write-caching flag (0/1) (DANGEROUS)
  1052. -x Tristate device for hotswap (0/1) (DANGEROUS)
  1053. -X Set IDE xfer mode (DANGEROUS)
  1054. -y Put IDE drive in standby mode
  1055. -Y Put IDE drive to sleep
  1056. -Z Disable Seagate auto-powersaving mode
  1057. -z Reread partition table
  1058. =item B<head>
  1059. head [OPTIONS] [FILE]...
  1060. Print first 10 lines of each FILE (or stdin) to stdout.
  1061. With more than one FILE, precede each with a filename header.
  1062. -n N[kbm] Print first N lines
  1063. -n -N[kbm] Print all except N last lines
  1064. -c [-]N[kbm] Print first N bytes
  1065. -q Never print headers
  1066. -v Always print headers
  1067. N may be suffixed by k (x1024), b (x512), or m (x1024^2).
  1068. =item B<hexdump>
  1069. hexdump [-bcCdefnosvxR] [FILE]...
  1070. Display FILEs (or stdin) in a user specified format
  1071. -b 1-byte octal display
  1072. -c 1-byte character display
  1073. -d 2-byte decimal display
  1074. -o 2-byte octal display
  1075. -x 2-byte hex display
  1076. -C hex+ASCII 16 bytes per line
  1077. -v Show all (no dup folding)
  1078. -e FORMAT_STR Example: '16/1 "%02x|""\n"'
  1079. -f FORMAT_FILE
  1080. -n LENGTH Show only first LENGTH bytes
  1081. -s OFFSET Skip OFFSET bytes
  1082. -R Reverse of 'hexdump -Cv'
  1083. =item B<hexedit>
  1084. hexedit FILE
  1085. Edit FILE in hexadecimal
  1086. =item B<hostid>
  1087. hostid
  1088. Print out a unique 32-bit identifier for the machine
  1089. =item B<hostname>
  1090. hostname [OPTIONS] [HOSTNAME | -F FILE]
  1091. Get or set hostname or DNS domain name
  1092. -s Short
  1093. -i Addresses for the hostname
  1094. -d DNS domain name
  1095. -f Fully qualified domain name
  1096. -F FILE Use FILE's content as hostname
  1097. =item B<httpd>
  1098. httpd [-ifv[v]] [-c CONFFILE] [-p [IP:]PORT] [-u USER[:GRP]] [-r REALM] [-h HOME]
  1099. or httpd -d/-e/-m STRING
  1100. Listen for incoming HTTP requests
  1101. -i Inetd mode
  1102. -f Don't daemonize
  1103. -v[v] Verbose
  1104. -p [IP:]PORT Bind to IP:PORT (default *:80)
  1105. -u USER[:GRP] Set uid/gid after binding to port
  1106. -r REALM Authentication Realm for Basic Authentication
  1107. -h HOME Home directory (default .)
  1108. -c FILE Configuration file (default {/etc,HOME}/httpd.conf)
  1109. -m STRING MD5 crypt STRING
  1110. -e STRING HTML encode STRING
  1111. -d STRING URL decode STRING
  1112. =item B<hush>
  1113. hush [-enxl] [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]]
  1114. Unix shell interpreter
  1115. =item B<hwclock>
  1116. hwclock [-r|--show] [-s|--hctosys] [-w|--systohc] [--systz] [--localtime] [-u|--utc] [-f|--rtc FILE]
  1117. Query and set hardware clock (RTC)
  1118. -r Show hardware clock time
  1119. -s Set system time from hardware clock
  1120. -w Set hardware clock from system time
  1121. --systz Set in-kernel timezone, correct system time
  1122. if hardware clock is in local time
  1123. -u Assume hardware clock is kept in UTC
  1124. --localtime Assume hardware clock is kept in local time
  1125. -f FILE Use specified device (e.g. /dev/rtc2)
  1126. =item B<i2cdetect>
  1127. i2cdetect -l | -F I2CBUS | [-ya] [-q|-r] I2CBUS [FIRST LAST]
  1128. Detect I2C chips
  1129. -l List installed buses
  1130. -F BUS# List functionalities on this bus
  1131. -y Disable interactive mode
  1132. -a Force scanning of non-regular addresses
  1133. -q Use smbus quick write commands for probing (default)
  1134. -r Use smbus read byte commands for probing
  1135. FIRST and LAST limit probing range
  1136. =item B<i2cdump>
  1137. i2cdump [-fy] [-r FIRST-LAST] BUS ADDR [MODE]
  1138. Examine I2C registers
  1139. I2CBUS I2C bus number
  1140. ADDRESS 0x03-0x77
  1141. MODE is:
  1142. b Byte (default)
  1143. w Word
  1144. W Word on even register addresses
  1145. i I2C block
  1146. s SMBus block
  1147. c Consecutive byte
  1148. Append p for SMBus PEC
  1149. -f Force access
  1150. -y Disable interactive mode
  1151. -r Limit the number of registers being accessed
  1152. =item B<i2cget>
  1153. i2cget [-fy] BUS CHIP-ADDRESS [DATA-ADDRESS [MODE]]
  1154. Read from I2C/SMBus chip registers
  1155. I2CBUS I2C bus number
  1156. ADDRESS 0x03-0x77
  1157. MODE is:
  1158. b Read byte data (default)
  1159. w Read word data
  1160. c Write byte/read byte
  1161. Append p for SMBus PEC
  1162. -f Force access
  1163. -y Disable interactive mode
  1164. =item B<i2cset>
  1165. i2cset [-fy] [-m MASK] BUS CHIP-ADDRESS DATA-ADDRESS [VALUE] ... [MODE]
  1166. Set I2C registers
  1167. I2CBUS I2C bus number
  1168. ADDRESS 0x03-0x77
  1169. MODE is:
  1170. c Byte, no value
  1171. b Byte data (default)
  1172. w Word data
  1173. i I2C block data
  1174. s SMBus block data
  1175. Append p for SMBus PEC
  1176. -f Force access
  1177. -y Disable interactive mode
  1178. -r Read back and compare the result
  1179. -m MASK Mask specifying which bits to write
  1180. =item B<id>
  1181. id [OPTIONS] [USER]
  1182. Print information about USER or the current user
  1183. -u User ID
  1184. -g Group ID
  1185. -G Supplementary group IDs
  1186. -n Print names instead of numbers
  1187. -r Print real ID instead of effective ID
  1188. =item B<ifconfig>
  1189. ifconfig [-a] interface [address]
  1190. Configure a network interface
  1191. [add ADDRESS[/PREFIXLEN]]
  1192. [del ADDRESS[/PREFIXLEN]]
  1193. [[-]broadcast [ADDRESS]] [[-]pointopoint [ADDRESS]]
  1194. [netmask ADDRESS] [dstaddr ADDRESS]
  1195. [outfill NN] [keepalive NN]
  1196. [hw ether|infiniband ADDRESS] [metric NN] [mtu NN]
  1197. [[-]trailers] [[-]arp] [[-]allmulti]
  1198. [multicast] [[-]promisc] [txqueuelen NN] [[-]dynamic]
  1199. [mem_start NN] [io_addr NN] [irq NN]
  1200. [up|down] ...
  1201. =item B<ifdown>
  1202. ifdown [-anmvf] [-i FILE] IFACE...
  1203. -a Deconfigure all interfaces
  1204. -i FILE Use FILE for interface definitions
  1205. -n Print out what would happen, but don't do it
  1206. (note: doesn't disable mappings)
  1207. -m Don't run any mappings
  1208. -v Print out what would happen before doing it
  1209. -f Force deconfiguration
  1210. =item B<ifenslave>
  1211. ifenslave [-cdf] MASTER_IFACE SLAVE_IFACE...
  1212. Configure network interfaces for parallel routing
  1213. -c Change active slave
  1214. -d Remove slave interface from bonding device
  1215. -f Force, even if interface is not Ethernet
  1216. =item B<ifplugd>
  1217. ifplugd [OPTIONS]
  1218. Network interface plug detection daemon
  1219. -n Don't daemonize
  1220. -s Don't log to syslog
  1221. -i IFACE Interface
  1222. -f/-F Treat link detection error as link down/link up
  1223. (otherwise exit on error)
  1224. -a Don't up interface at each link probe
  1225. -M Monitor creation/destruction of interface
  1226. (otherwise it must exist)
  1227. -r PROG Script to run
  1228. -x ARG Extra argument for script
  1229. -I Don't exit on nonzero exit code from script
  1230. -p Don't run "up" script on startup
  1231. -q Don't run "down" script on exit
  1232. -l Always run script on startup
  1233. -t SECS Poll time in seconds
  1234. -u SECS Delay before running script after link up
  1235. -d SECS Delay after link down
  1236. -m MODE API mode (mii, priv, ethtool, wlan, iff, auto)
  1237. -k Kill running daemon
  1238. =item B<ifup>
  1239. ifup [-anmvf] [-i FILE] IFACE...
  1240. -a Configure all interfaces
  1241. -i FILE Use FILE instead of /etc/network/interfaces
  1242. -n Print out what would happen, but don't do it
  1243. (note: doesn't disable mappings)
  1244. -m Don't run any mappings
  1245. -v Print out what would happen before doing it
  1246. -f Force configuration
  1247. =item B<inetd>
  1248. inetd [-fe] [-q N] [-R N] [CONFFILE]
  1249. Listen for network connections and launch programs
  1250. -f Run in foreground
  1251. -e Log to stderr
  1252. -q N Socket listen queue (default 128)
  1253. -R N Pause services after N connects/min
  1254. (default 0 - disabled)
  1255. Default CONFFILE is /etc/inetd.conf
  1256. =item B<init>
  1257. init
  1258. Init is the first process started during boot. It never exits.
  1259. It (re)spawns children according to /etc/inittab.
  1260. =item B<insmod>
  1261. insmod FILE [SYMBOL=VALUE]...
  1262. Load kernel module
  1263. =item B<install>
  1264. install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [-t DIR] [SOURCE]... DEST
  1265. Copy files and set attributes
  1266. -c Just copy (default)
  1267. -d Create directories
  1268. -D Create leading target directories
  1269. -s Strip symbol table
  1270. -p Preserve date
  1271. -o USER Set ownership
  1272. -g GRP Set group ownership
  1273. -m MODE Set permissions
  1274. -t DIR Install to DIR
  1275. =item B<ionice>
  1276. ionice [-c 1-3] [-n 0-7] [-p PID] [PROG]
  1277. Change I/O priority and class
  1278. -c Class. 1:realtime 2:best-effort 3:idle
  1279. -n Priority
  1280. =item B<iostat>
  1281. iostat [-c] [-d] [-t] [-z] [-k|-m] [ALL|BLOCKDEV...] [INTERVAL [COUNT]]
  1282. Report CPU and I/O statistics
  1283. -c Show CPU utilization
  1284. -d Show device utilization
  1285. -t Print current time
  1286. -z Omit devices with no activity
  1287. -k Use kb/s
  1288. -m Use Mb/s
  1289. =item B<ip>
  1290. ip [OPTIONS] address|route|link|tunnel|neigh|rule [COMMAND]
  1291. OPTIONS := -f[amily] inet|inet6|link | -o[neline]
  1292. COMMAND :=
  1293. ip addr add|del IFADDR dev IFACE | show|flush [dev IFACE] [to PREFIX]
  1294. ip route list|flush|add|del|change|append|replace|test ROUTE
  1295. ip link set IFACE [up|down] [arp on|off] | show [IFACE]
  1296. ip tunnel add|change|del|show [NAME]
  1297. [mode ipip|gre|sit]
  1298. [remote ADDR] [local ADDR] [ttl TTL]
  1299. ip neigh show|flush [to PREFIX] [dev DEV] [nud STATE]
  1300. ip rule [list] | add|del SELECTOR ACTION
  1301. =item B<ipaddr>
  1302. ipaddr add|del IFADDR dev IFACE | show|flush [dev IFACE] [to PREFIX]
  1303. ipaddr add|change|replace|delete dev IFACE IFADDR
  1304. IFADDR := PREFIX | ADDR peer PREFIX [broadcast ADDR|+|-]
  1305. [anycast ADDR] [label STRING] [scope SCOPE]
  1306. PREFIX := ADDR[/MASK]
  1307. SCOPE := [host|link|global|NUMBER]
  1308. ipaddr show|flush [dev IFACE] [scope SCOPE] [to PREFIX] [label PATTERN]
  1309. =item B<ipcalc>
  1310. ipcalc [OPTIONS] ADDRESS[/PREFIX] [NETMASK]
  1311. Calculate and display network settings from IP address
  1312. -b Broadcast address
  1313. -n Network address
  1314. -m Default netmask for IP
  1315. -p Prefix for IP/NETMASK
  1316. -h Resolved host name
  1317. -s No error messages
  1318. =item B<ipcrm>
  1319. ipcrm [-MQS key] [-mqs id]
  1320. Upper-case options MQS remove an object by shmkey value.
  1321. Lower-case options remove an object by shmid value.
  1322. -mM Remove memory segment after last detach
  1323. -qQ Remove message queue
  1324. -sS Remove semaphore
  1325. =item B<ipcs>
  1326. ipcs [[-smq] -i shmid] | [[-asmq] [-tcplu]]
  1327. -i Show specific resource
  1328. Resource specification:
  1329. -m Shared memory segments
  1330. -q Message queues
  1331. -s Semaphore arrays
  1332. -a All (default)
  1333. Output format:
  1334. -t Time
  1335. -c Creator
  1336. -p Pid
  1337. -l Limits
  1338. -u Summary
  1339. =item B<iplink>
  1340. iplink set IFACE [up|down] [arp on|off] | show [IFACE]
  1341. iplink set IFACE [up|down] [arp on|off] [multicast on|off] [promisc on|off]
  1342. [mtu NUM] [name NAME] [qlen NUM] [address MAC]
  1343. iplink show [IFACE]
  1344. =item B<ipneigh>
  1345. ipneigh show|flush [to PREFIX] [dev DEV] [nud STATE]
  1346. =item B<iproute>
  1347. iproute list|flush|add|del|change|append|replace|test ROUTE
  1348. iproute list|flush SELECTOR
  1349. SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO]
  1350. PREFIX := default|ADDR[/MASK]
  1351. iproute get ADDR [from ADDR iif IFACE]
  1352. [oif IFACE] [tos TOS]
  1353. iproute add|del|change|append|replace|test ROUTE
  1354. ROUTE := NODE_SPEC [INFO_SPEC]
  1355. NODE_SPEC := PREFIX [table TABLE_ID] [proto RTPROTO] [scope SCOPE] [metric METRIC]
  1356. INFO_SPEC := NH OPTIONS
  1357. NH := [via [inet|inet6] ADDR] [dev IFACE] [src ADDR] [onlink]
  1358. OPTIONS := [mtu [lock] NUM] [advmss [lock] NUM]
  1359. =item B<iprule>
  1360. iprule [list] | add|del SELECTOR ACTION
  1361. SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK]
  1362. [dev IFACE] [pref NUMBER]
  1363. ACTION := [table TABLE_ID] [nat ADDR]
  1364. [prohibit|reject|unreachable]
  1365. [realms [SRCREALM/]DSTREALM]
  1366. TABLE_ID := [local|main|default|NUMBER]
  1367. =item B<iptunnel>
  1368. iptunnel add|change|del|show [NAME]
  1369. [mode ipip|gre|sit]
  1370. [remote ADDR] [local ADDR] [ttl TTL]
  1371. iptunnel add|change|del|show [NAME]
  1372. [mode ipip|gre|sit] [remote ADDR] [local ADDR]
  1373. [[i|o]seq] [[i|o]key KEY] [[i|o]csum]
  1374. [ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV]
  1375. =item B<kbd_mode>
  1376. kbd_mode [-a|k|s|u] [-C TTY]
  1377. Report or set VT console keyboard mode
  1378. -a Default (ASCII)
  1379. -k Medium-raw (keycode)
  1380. -s Raw (scancode)
  1381. -u Unicode (utf-8)
  1382. -C TTY Affect TTY
  1383. =item B<kill>
  1384. kill [-l] [-SIG] PID...
  1385. Send a signal (default: TERM) to given PIDs
  1386. -l List all signal names and numbers
  1387. =item B<killall>
  1388. killall [-l] [-q] [-SIG] PROCESS_NAME...
  1389. Send a signal (default: TERM) to given processes
  1390. -l List all signal names and numbers
  1391. -q Don't complain if no processes were killed
  1392. =item B<killall5>
  1393. killall5 [-l] [-SIG] [-o PID]...
  1394. Send a signal (default: TERM) to all processes outside current session
  1395. -l List all signal names and numbers
  1396. -o PID Don't signal this PID
  1397. =item B<klogd>
  1398. klogd [-c N] [-n]
  1399. Kernel logger
  1400. -c N Print to console messages more urgent than prio N (1-8)
  1401. -n Run in foreground
  1402. =item B<last>
  1403. last [-HW] [-f FILE]
  1404. Show listing of the last users that logged into the system
  1405. -W Display with no host column truncation
  1406. -f FILE Read from FILE instead of /var/log/wtmp
  1407. =item B<less>
  1408. less [-EIMmNSh~] [FILE]...
  1409. View FILE (or stdin) one screenful at a time
  1410. -E Quit once the end of a file is reached
  1411. -I Ignore case in all searches
  1412. -M,-m Display status line with line numbers
  1413. and percentage through the file
  1414. -N Prefix line number to each line
  1415. -S Truncate long lines
  1416. -~ Suppress ~s displayed past EOF
  1417. =item B<link>
  1418. link FILE LINK
  1419. Create hard LINK to FILE
  1420. =item B<ln>
  1421. ln [OPTIONS] TARGET... LINK|DIR
  1422. Create a link LINK or DIR/TARGET to the specified TARGET(s)
  1423. -s Make symlinks instead of hardlinks
  1424. -f Remove existing destinations
  1425. -n Don't dereference symlinks - treat like normal file
  1426. -b Make a backup of the target (if exists) before link operation
  1427. -S suf Use suffix instead of ~ when making backup files
  1428. -T 2nd arg must be a DIR
  1429. -v Verbose
  1430. =item B<loadfont>
  1431. loadfont < font
  1432. Load a console font from stdin
  1433. =item B<loadkmap>
  1434. loadkmap < keymap
  1435. Load a binary keyboard translation table from stdin
  1436. =item B<logger>
  1437. logger [OPTIONS] [MESSAGE]
  1438. Write MESSAGE (or stdin) to syslog
  1439. -s Log to stderr as well as the system log
  1440. -t TAG Log using the specified tag (defaults to user name)
  1441. -p PRIO Priority (numeric or facility.level pair)
  1442. =item B<login>
  1443. login [-p] [-h HOST] [[-f] USER]
  1444. Begin a new session on the system
  1445. -f Don't authenticate (user already authenticated)
  1446. -h HOST Host user came from (for network logins)
  1447. -p Preserve environment
  1448. =item B<logname>
  1449. logname
  1450. Print the name of the current user
  1451. =item B<logread>
  1452. logread [-fF]
  1453. Show messages in syslogd's circular buffer
  1454. -f Output data as log grows
  1455. -F Same as -f, but dump buffer first
  1456. =item B<losetup>
  1457. losetup [-r] [-o OFS] {-f|LOOPDEV} FILE - associate loop devices
  1458. losetup -d LOOPDEV - disassociate
  1459. losetup -a - show status
  1460. losetup -f - show next free loop device
  1461. -o OFS Start OFS bytes into FILE
  1462. -r Read-only
  1463. -f Show/use next free loop device
  1464. =item B<lpd>
  1465. lpd SPOOLDIR [HELPER [ARGS]]
  1466. SPOOLDIR must contain (symlinks to) device nodes or directories
  1467. with names matching print queue names. In the first case, jobs are
  1468. sent directly to the device. Otherwise each job is stored in queue
  1469. directory and HELPER program is called. Name of file to print
  1470. is passed in $DATAFILE variable.
  1471. Example:
  1472. tcpsvd -E 0 515 softlimit -m 999999 lpd /var/spool ./print
  1473. =item B<lpq>
  1474. lpq [-P queue[@host[:port]]] [-U USERNAME] [-d JOBID]... [-fs]
  1475. -P lp service to connect to (else uses $PRINTER)
  1476. -d Delete jobs
  1477. -f Force any waiting job to be printed
  1478. -s Short display
  1479. =item B<lpr>
  1480. lpr -P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE]...
  1481. -P lp service to connect to (else uses $PRINTER)
  1482. -m Send mail on completion
  1483. -h Print banner page too
  1484. -V Verbose
  1485. =item B<ls>
  1486. ls [-1AaCxdLHRFplinshrSXvctu] [-w WIDTH] [FILE]...
  1487. List directory contents
  1488. -1 One column output
  1489. -a Include entries which start with .
  1490. -A Like -a, but exclude . and ..
  1491. -x List by lines
  1492. -d List directory entries instead of contents
  1493. -L Follow symlinks
  1494. -H Follow symlinks on command line
  1495. -R Recurse
  1496. -p Append / to dir entries
  1497. -F Append indicator (one of */=@|) to entries
  1498. -l Long listing format
  1499. -i List inode numbers
  1500. -n List numeric UIDs and GIDs instead of names
  1501. -s List allocated blocks
  1502. -lc List ctime
  1503. -lu List atime
  1504. --full-time List full date and time
  1505. -h Human readable sizes (1K 243M 2G)
  1506. --group-directories-first
  1507. -S Sort by size
  1508. -X Sort by extension
  1509. -v Sort by version
  1510. -t Sort by mtime
  1511. -tc Sort by ctime
  1512. -tu Sort by atime
  1513. -r Reverse sort order
  1514. -w N Format N columns wide
  1515. --color[={always,never,auto}] Control coloring
  1516. =item B<lsattr>
  1517. lsattr [-Radlv] [FILE]...
  1518. List ext2 file attributes
  1519. -R Recurse
  1520. -a Don't hide entries starting with .
  1521. -d List directory entries instead of contents
  1522. -l List long flag names
  1523. -v List version/generation number
  1524. =item B<lsmod>
  1525. lsmod
  1526. List loaded kernel modules
  1527. =item B<lsof>
  1528. lsof
  1529. Show all open files
  1530. =item B<lspci>
  1531. lspci [-mk]
  1532. List all PCI devices
  1533. -m Parsable output
  1534. -k Show driver
  1535. =item B<lzcat>
  1536. lzcat [FILE]...
  1537. Decompress to stdout
  1538. =item B<lzma>
  1539. lzma -d [-cfk] [FILE]...
  1540. Decompress FILE (or stdin)
  1541. -d Decompress
  1542. -c Write to stdout
  1543. -f Force
  1544. -k Keep input files
  1545. =item B<lzop>
  1546. lzop [-cfUvd123456789CF] [FILE]...
  1547. -1..9 Compression level
  1548. -d Decompress
  1549. -c Write to stdout
  1550. -f Force
  1551. -U Delete input files
  1552. -v Verbose
  1553. -F Don't store or verify checksum
  1554. -C Also write checksum of compressed block
  1555. =item B<makedevs>
  1556. makedevs [-d device_table] rootdir
  1557. Create a range of special files as specified in a device table.
  1558. Device table entries take the form of:
  1559. <name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>
  1560. Where name is the file name, type can be one of:
  1561. f Regular file
  1562. d Directory
  1563. c Character device
  1564. b Block device
  1565. p Fifo (named pipe)
  1566. uid is the user id for the target file, gid is the group id for the
  1567. target file. The rest of the entries (major, minor, etc) apply to
  1568. to device special files. A '-' may be used for blank entries.
  1569. =item B<makemime>
  1570. makemime [OPTIONS] [FILE]...
  1571. Create multipart MIME-encoded message from FILEs
  1572. -o FILE Output. Default: stdout
  1573. -a HDR Add header(s). Examples:
  1574. "From: user@host.org", "Date: `date -R`"
  1575. -c CT Content type. Default: application/octet-stream
  1576. -C CS Charset. Default: us-ascii
  1577. Other options are silently ignored
  1578. =item B<man>
  1579. man [-aw] [MANPAGE]...
  1580. Format and display manual page
  1581. -a Display all pages
  1582. -w Show page locations
  1583. $COLUMNS overrides output width
  1584. =item B<md5sum>
  1585. md5sum [-c[sw]] [FILE]...
  1586. Print or check MD5 checksums
  1587. -c Check sums against list in FILEs
  1588. -s Don't output anything, status code shows success
  1589. -w Warn about improperly formatted checksum lines
  1590. =item B<mdev>
  1591. mdev [-s]
  1592. mdev -s is to be run during boot to scan /sys and populate /dev.
  1593. Bare mdev is a kernel hotplug helper. To activate it:
  1594. echo /sbin/mdev >/proc/sys/kernel/hotplug
  1595. It uses /etc/mdev.conf with lines
  1596. [-][ENV=regex;]...DEVNAME UID:GID PERM [>|=PATH]|[!] [@|$|*PROG]
  1597. where DEVNAME is device name regex, @major,minor[-minor2], or
  1598. environment variable regex. A common use of the latter is
  1599. to load modules for hotplugged devices:
  1600. $MODALIAS=.* 0:0 660 @modprobe "$MODALIAS"
  1601. If /dev/mdev.seq file exists, mdev will wait for its value
  1602. to match $SEQNUM variable. This prevents plug/unplug races.
  1603. To activate this feature, create empty /dev/mdev.seq at boot.
  1604. If /dev/mdev.log file exists, debug log will be appended to it.
  1605. =item B<mesg>
  1606. mesg [y|n]
  1607. Control write access to your terminal
  1608. y Allow write access to your terminal
  1609. n Disallow write access to your terminal
  1610. =item B<microcom>
  1611. microcom [-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY
  1612. Copy bytes for stdin to TTY and from TTY to stdout
  1613. -d Wait up to DELAY ms for TTY output before sending every
  1614. next byte to it
  1615. -t Exit if both stdin and TTY are silent for TIMEOUT ms
  1616. -s Set serial line to SPEED
  1617. -X Disable special meaning of NUL and Ctrl-X from stdin
  1618. =item B<mkdir>
  1619. mkdir [OPTIONS] DIRECTORY...
  1620. Create DIRECTORY
  1621. -m MODE Mode
  1622. -p No error if exists; make parent directories as needed
  1623. =item B<mkdosfs>
  1624. mkdosfs [-v] [-n LABEL] BLOCKDEV [KBYTES]
  1625. Make a FAT32 filesystem
  1626. -v Verbose
  1627. -n LBL Volume label
  1628. =item B<mke2fs>
  1629. mke2fs [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES]
  1630. -b BLK_SIZE Block size, bytes
  1631. -F Force
  1632. -i RATIO Max number of files is filesystem_size / RATIO
  1633. -I BYTES Inode size (min 128)
  1634. -L LBL Volume label
  1635. -m PERCENT Percent of blocks to reserve for admin
  1636. -n Dry run
  1637. =item B<mkfifo>
  1638. mkfifo [-m MODE] NAME
  1639. Create named pipe
  1640. -m MODE Mode (default a=rw)
  1641. =item B<mkfs.ext2>
  1642. mkfs.ext2 [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES]
  1643. -b BLK_SIZE Block size, bytes
  1644. -F Force
  1645. -i RATIO Max number of files is filesystem_size / RATIO
  1646. -I BYTES Inode size (min 128)
  1647. -L LBL Volume label
  1648. -m PERCENT Percent of blocks to reserve for admin
  1649. -n Dry run
  1650. =item B<mkfs.minix>
  1651. mkfs.minix [-c | -l FILE] [-nXX] [-iXX] BLOCKDEV [KBYTES]
  1652. Make a MINIX filesystem
  1653. -c Check device for bad blocks
  1654. -n [14|30] Maximum length of filenames
  1655. -i INODES Number of inodes for the filesystem
  1656. -l FILE Read bad blocks list from FILE
  1657. -v Make version 2 filesystem
  1658. =item B<mkfs.vfat>
  1659. mkfs.vfat [-v] [-n LABEL] BLOCKDEV [KBYTES]
  1660. Make a FAT32 filesystem
  1661. -v Verbose
  1662. -n LBL Volume label
  1663. =item B<mknod>
  1664. mknod [-m MODE] NAME TYPE MAJOR MINOR
  1665. Create a special file (block, character, or pipe)
  1666. -m MODE Creation mode (default a=rw)
  1667. TYPE:
  1668. b Block device
  1669. c or u Character device
  1670. p Named pipe (MAJOR and MINOR are ignored)
  1671. =item B<mkpasswd>
  1672. mkpasswd [OPTIONS] [PASSWORD] [SALT]
  1673. Print crypt(3) hashed PASSWORD
  1674. -P,--password-fd N Read password from fd N
  1675. -m,--method TYPE des,md5,sha256/512 (default des)
  1676. -S,--salt SALT
  1677. =item B<mkswap>
  1678. mkswap [-L LBL] BLOCKDEV [KBYTES]
  1679. Prepare BLOCKDEV to be used as swap partition
  1680. -L LBL Label
  1681. =item B<mktemp>
  1682. mktemp [-dt] [-p DIR] [TEMPLATE]
  1683. Create a temporary file with name based on TEMPLATE and print its name.
  1684. TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX).
  1685. Without TEMPLATE, -t tmp.XXXXXX is assumed.
  1686. -d Make directory, not file
  1687. -q Fail silently on errors
  1688. -t Prepend base directory name to TEMPLATE
  1689. -p DIR Use DIR as a base directory (implies -t)
  1690. -u Do not create anything; print a name
  1691. Base directory is: -p DIR, else $TMPDIR, else /tmp
  1692. =item B<modinfo>
  1693. modinfo [-adlpn0] [-F keyword] MODULE
  1694. -a Shortcut for '-F author'
  1695. -d Shortcut for '-F description'
  1696. -l Shortcut for '-F license'
  1697. -p Shortcut for '-F parm'
  1698. -F keyword Keyword to look for
  1699. -0 Separate output with NULs
  1700. =item B<modprobe>
  1701. modprobe [-rq] MODULE [SYMBOL=VALUE]...
  1702. -r Remove MODULE
  1703. -q Quiet
  1704. =item B<more>
  1705. more [FILE]...
  1706. View FILE (or stdin) one screenful at a time
  1707. =item B<mount>
  1708. mount [OPTIONS] [-o OPT] DEVICE NODE
  1709. Mount a filesystem. Filesystem autodetection requires /proc.
  1710. -a Mount all filesystems in fstab
  1711. -f Dry run
  1712. -v Verbose
  1713. -r Read-only mount
  1714. -t FSTYPE[,...] Filesystem type(s)
  1715. -T FILE Read FILE instead of /etc/fstab
  1716. -O OPT Mount only filesystems with option OPT (-a only)
  1717. -o OPT:
  1718. loop Ignored (loop devices are autodetected)
  1719. [a]sync Writes are [a]synchronous
  1720. [no]atime Disable/enable updates to inode access times
  1721. [no]diratime Disable/enable atime updates to directories
  1722. [no]relatime Disable/enable atime updates relative to modification time
  1723. [no]dev (Dis)allow use of special device files
  1724. [no]exec (Dis)allow use of executable files
  1725. [no]suid (Dis)allow set-user-id-root programs
  1726. [r]shared Convert [recursively] to a shared subtree
  1727. [r]slave Convert [recursively] to a slave subtree
  1728. [r]private Convert [recursively] to a private subtree
  1729. [un]bindable Make mount point [un]able to be bind mounted
  1730. [r]bind Bind a file or directory [recursively] to another location
  1731. move Relocate an existing mount point
  1732. remount Remount a mounted filesystem, changing flags
  1733. ro Same as -r
  1734. There are filesystem-specific -o flags.
  1735. =item B<mountpoint>
  1736. mountpoint [-q] <[-dn] DIR | -x DEVICE>
  1737. Check if the directory is a mountpoint
  1738. -q Quiet
  1739. -d Print major/minor device number of the filesystem
  1740. -n Print device name of the filesystem
  1741. -x Print major/minor device number of the blockdevice
  1742. =item B<mpstat>
  1743. mpstat [-A] [-I SUM|CPU|ALL|SCPU] [-u] [-P num|ALL] [INTERVAL [COUNT]]
  1744. Per-processor statistics
  1745. -A Same as -I ALL -u -P ALL
  1746. -I SUM|CPU|ALL|SCPU Report interrupt statistics
  1747. -P num|ALL Processor to monitor
  1748. -u Report CPU utilization
  1749. =item B<mt>
  1750. mt [-f device] opcode value
  1751. Control magnetic tape drive operation
  1752. Available Opcodes:
  1753. bsf bsfm bsr bss datacompression drvbuffer eof eom erase
  1754. fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2
  1755. ras3 reset retension rewind rewoffline seek setblk setdensity
  1756. setpart tell unload unlock weof wset
  1757. =item B<mv>
  1758. mv [-fin] SOURCE DEST
  1759. or: mv [-fin] SOURCE... DIRECTORY
  1760. Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY
  1761. -f Don't prompt before overwriting
  1762. -i Interactive, prompt before overwrite
  1763. -n Don't overwrite an existing file
  1764. =item B<nameif>
  1765. nameif [-s] [-c FILE] [IFNAME SELECTOR]...
  1766. Rename network interface while it in the down state.
  1767. The device matched by SELECTOR is renamed to IFACE.
  1768. SELECTOR can be a combination of:
  1769. driver=STRING
  1770. bus=STRING
  1771. phy_address=NUM
  1772. [mac=]XX:XX:XX:XX:XX:XX
  1773. -c FILE Configuration file (default: /etc/mactab)
  1774. -s Log to syslog
  1775. =item B<nanddump>
  1776. nanddump [-no] [--bb padbad|skipbad] [-s ADDR] [-l LEN] [-f FILE] MTD_DEVICE
  1777. Dump MTD_DEVICE
  1778. -n Read without ecc
  1779. -o Dump oob data
  1780. -s ADDR Start address
  1781. -l LEN Length
  1782. -f FILE Dump to file ('-' for stdout)
  1783. --bb METHOD
  1784. skipbad: skip bad blocks
  1785. padbad: substitute bad blocks by 0xff (default)
  1786. =item B<nandwrite>
  1787. nandwrite [-np] [-s ADDR] MTD_DEVICE [FILE]
  1788. Write to MTD_DEVICE
  1789. -n Write without ecc
  1790. -p Pad to page size
  1791. -s ADDR Start address
  1792. =item B<nbd-client>
  1793. nbd-client HOST PORT BLOCKDEV
  1794. Connect to HOST and provide a network block device on BLOCKDEV
  1795. =item B<nc>
  1796. nc [OPTIONS] HOST PORT - connect
  1797. nc [OPTIONS] -l -p PORT [HOST] [PORT] - listen
  1798. -e PROG Run PROG after connect (must be last)
  1799. -l Listen mode, for inbound connects
  1800. -lk With -e, provides persistent server
  1801. -p PORT Local port
  1802. -s ADDR Local address
  1803. -w SEC Timeout for connects and final net reads
  1804. -i SEC Delay interval for lines sent
  1805. -n Don't do DNS resolution
  1806. -u UDP mode
  1807. -v Verbose
  1808. -o FILE Hex dump traffic
  1809. -z Zero-I/O mode (scanning)
  1810. =item B<netstat>
  1811. netstat [-ral] [-tuwx] [-enWp]
  1812. Display networking information
  1813. -r Routing table
  1814. -a All sockets
  1815. -l Listening sockets
  1816. Else: connected sockets
  1817. -t TCP sockets
  1818. -u UDP sockets
  1819. -w Raw sockets
  1820. -x Unix sockets
  1821. Else: all socket types
  1822. -e Other/more information
  1823. -n Don't resolve names
  1824. -W Wide display
  1825. -p Show PID/program name for sockets
  1826. =item B<nice>
  1827. nice [-n ADJUST] [PROG ARGS]
  1828. Change scheduling priority, run PROG
  1829. -n ADJUST Adjust priority by ADJUST
  1830. =item B<nl>
  1831. nl [OPTIONS] [FILE]...
  1832. Write FILEs to standard output with line numbers added
  1833. -b STYLE Which lines to number - a: all, t: nonempty, n: none
  1834. -i N Line number increment
  1835. -s STRING Use STRING as line number separator
  1836. -v N Start from N
  1837. -w N Width of line numbers
  1838. =item B<nmeter>
  1839. nmeter [-d MSEC] FORMAT_STRING
  1840. Monitor system in real time
  1841. -d MSEC Milliseconds between updates, default:1000, none:-1
  1842. Format specifiers:
  1843. %Nc or %[cN] CPU. N - bar size (default 10)
  1844. (displays: S:system U:user N:niced D:iowait I:irq i:softirq)
  1845. %[nINTERFACE] Network INTERFACE
  1846. %m Allocated memory
  1847. %[mf] Free memory
  1848. %[mt] Total memory
  1849. %s Allocated swap
  1850. %f Number of used file descriptors
  1851. %Ni Total/specific IRQ rate
  1852. %x Context switch rate
  1853. %p Forks
  1854. %[pn] # of processes
  1855. %b Block io
  1856. %Nt Time (with N decimal points)
  1857. %r Print <cr> instead of <lf> at EOL
  1858. =item B<nohup>
  1859. nohup PROG ARGS
  1860. Run PROG immune to hangups, with output to a non-tty
  1861. =item B<nproc>
  1862. nproc
  1863. Print number of CPUs
  1864. =item B<nsenter>
  1865. nsenter [OPTIONS] [PROG [ARGS]]
  1866. -t PID Target process to get namespaces from
  1867. -m[FILE] Enter mount namespace
  1868. -u[FILE] Enter UTS namespace (hostname etc)
  1869. -i[FILE] Enter System V IPC namespace
  1870. -n[FILE] Enter network namespace
  1871. -p[FILE] Enter pid namespace
  1872. -U[FILE] Enter user namespace
  1873. -S UID Set uid in entered namespace
  1874. -G GID Set gid in entered namespace
  1875. --preserve-credentials Don't touch uids or gids
  1876. -r[DIR] Set root directory
  1877. -w[DIR] Set working directory
  1878. -F Don't fork before exec'ing PROG
  1879. =item B<nslookup>
  1880. nslookup [HOST] [SERVER]
  1881. Query the nameserver for the IP address of the given HOST
  1882. optionally using a specified DNS server
  1883. =item B<ntpd>
  1884. ntpd [-dnqNwl -I IFACE] [-S PROG] [-p PEER]...
  1885. NTP client/server
  1886. -d Verbose (may be repeated)
  1887. -n Do not daemonize
  1888. -q Quit after clock is set
  1889. -N Run at high priority
  1890. -w Do not set time (only query peers), implies -n
  1891. -S PROG Run PROG after stepping time, stratum change, and every 11 mins
  1892. -p PEER Obtain time from PEER (may be repeated)
  1893. If -p is not given, 'server HOST' lines
  1894. from /etc/ntp.conf are used
  1895. -l Also run as server on port 123
  1896. -I IFACE Bind server to IFACE, implies -l
  1897. =item B<nuke>
  1898. nuke DIR...
  1899. Remove DIRs
  1900. =item B<od>
  1901. od [-abcdfhilovxs] [-t TYPE] [-A RADIX] [-N SIZE] [-j SKIP] [-S MINSTR] [-w WIDTH] [FILE]...
  1902. Print FILEs (or stdin) unambiguously, as octal bytes by default
  1903. =item B<openvt>
  1904. openvt [-c N] [-sw] [PROG ARGS]
  1905. Start PROG on a new virtual terminal
  1906. -c N Use specified VT
  1907. -s Switch to the VT
  1908. -w Wait for PROG to exit
  1909. =item B<partprobe>
  1910. partprobe DEVICE...
  1911. Ask kernel to rescan partition table
  1912. =item B<passwd>
  1913. passwd [OPTIONS] [USER]
  1914. Change USER's password (default: current user)
  1915. -a ALG des,md5,sha256/512 (default des)
  1916. -d Set password to ''
  1917. -l Lock (disable) account
  1918. -u Unlock (enable) account
  1919. =item B<paste>
  1920. paste [OPTIONS] [FILE]...
  1921. Paste lines from each input file, separated with tab
  1922. -d LIST Use delimiters from LIST, not tab
  1923. -s Serial: one file at a time
  1924. =item B<patch>
  1925. patch [OPTIONS] [ORIGFILE [PATCHFILE]]
  1926. -p,--strip N Strip N leading components from file names
  1927. -i,--input DIFF Read DIFF instead of stdin
  1928. -R,--reverse Reverse patch
  1929. -N,--forward Ignore already applied patches
  1930. -E,--remove-empty-files Remove output files if they become empty
  1931. =item B<pgrep>
  1932. pgrep [-flanovx] [-s SID|-P PPID|PATTERN]
  1933. Display process(es) selected by regex PATTERN
  1934. -l Show command name too
  1935. -a Show command line too
  1936. -f Match against entire command line
  1937. -n Show the newest process only
  1938. -o Show the oldest process only
  1939. -v Negate the match
  1940. -x Match whole name (not substring)
  1941. -s Match session ID (0 for current)
  1942. -P Match parent process ID
  1943. =item B<pidof>
  1944. pidof [OPTIONS] [NAME]...
  1945. List PIDs of all processes with names that match NAMEs
  1946. -s Show only one PID
  1947. -o PID Omit given pid
  1948. Use %PPID to omit pid of pidof's parent
  1949. =item B<ping>
  1950. ping [OPTIONS] HOST
  1951. Send ICMP ECHO_REQUEST packets to network hosts
  1952. -4,-6 Force IP or IPv6 name resolution
  1953. -c CNT Send only CNT pings
  1954. -s SIZE Send SIZE data bytes in packets (default 56)
  1955. -t TTL Set TTL
  1956. -I IFACE/IP Source interface or IP address
  1957. -W SEC Seconds to wait for the first response (default 10)
  1958. (after all -c CNT packets are sent)
  1959. -w SEC Seconds until ping exits (default:infinite)
  1960. (can exit earlier with -c CNT)
  1961. -q Quiet, only display output at start
  1962. and when finished
  1963. -p HEXBYTE Pattern to use for payload
  1964. =item B<ping6>
  1965. ping6 [OPTIONS] HOST
  1966. Send ICMP ECHO_REQUEST packets to network hosts
  1967. -c CNT Send only CNT pings
  1968. -s SIZE Send SIZE data bytes in packets (default 56)
  1969. -I IFACE/IP Source interface or IP address
  1970. -q Quiet, only display output at start
  1971. and when finished
  1972. -p HEXBYTE Pattern to use for payload
  1973. =item B<pivot_root>
  1974. pivot_root NEW_ROOT PUT_OLD
  1975. Move the current root file system to PUT_OLD and make NEW_ROOT
  1976. the new root file system
  1977. =item B<pkill>
  1978. pkill [-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]
  1979. Send a signal to process(es) selected by regex PATTERN
  1980. -l List all signals
  1981. -f Match against entire command line
  1982. -n Signal the newest process only
  1983. -o Signal the oldest process only
  1984. -v Negate the match
  1985. -x Match whole name (not substring)
  1986. -s Match session ID (0 for current)
  1987. -P Match parent process ID
  1988. =item B<pmap>
  1989. pmap [-xq] PID...
  1990. Display process memory usage
  1991. -x Show details
  1992. -q Quiet
  1993. =item B<popmaildir>
  1994. popmaildir [OPTIONS] MAILDIR [CONN_HELPER ARGS]
  1995. Fetch content of remote mailbox to local maildir
  1996. -s Skip authorization
  1997. -T Get messages with TOP instead of RETR
  1998. -k Keep retrieved messages on the server
  1999. -t SEC Network timeout
  2000. -F "PROG ARGS" Filter program (may be repeated)
  2001. -M "PROG ARGS" Delivery program
  2002. Fetch from plain POP3 server:
  2003. popmaildir -k DIR nc pop3.server.com 110 <user_and_pass.txt
  2004. Fetch from SSLed POP3 server and delete fetched emails:
  2005. popmaildir DIR -- openssl s_client -quiet -connect pop3.server.com:995 <user_and_pass.txt
  2006. =item B<poweroff>
  2007. poweroff [-d DELAY] [-n] [-f]
  2008. Halt and shut off power
  2009. -d SEC Delay interval
  2010. -n Do not sync
  2011. -f Force (don't go through init)
  2012. =item B<powertop>
  2013. powertop
  2014. Analyze power consumption on Intel-based laptops
  2015. =item B<printenv>
  2016. printenv [VARIABLE]...
  2017. Print environment VARIABLEs.
  2018. If no VARIABLE specified, print all.
  2019. =item B<printf>
  2020. printf FORMAT [ARG]...
  2021. Format and print ARG(s) according to FORMAT (a-la C printf)
  2022. =item B<ps>
  2023. ps [-o COL1,COL2=HEADER] [-T]
  2024. Show list of processes
  2025. -o COL1,COL2=HEADER Select columns for display
  2026. -T Show threads
  2027. =item B<pscan>
  2028. pscan [-cb] [-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST
  2029. Scan a host, print all open ports
  2030. -c Show closed ports too
  2031. -b Show blocked ports too
  2032. -p Scan from this port (default 1)
  2033. -P Scan up to this port (default 1024)
  2034. -t Timeout (default 5000 ms)
  2035. -T Minimum rtt (default 5 ms, increase for congested hosts)
  2036. =item B<pstree>
  2037. pstree [-p] [PID|USER]
  2038. Display process tree, optionally start from USER or PID
  2039. -p Show pids
  2040. =item B<pwd>
  2041. pwd
  2042. Print the full filename of the current working directory
  2043. =item B<pwdx>
  2044. pwdx PID...
  2045. Show current directory for PIDs
  2046. =item B<raidautorun>
  2047. raidautorun DEVICE
  2048. Tell the kernel to automatically search and start RAID arrays
  2049. =item B<rdate>
  2050. rdate [-s/-p] HOST
  2051. Set and print time from HOST using RFC 868
  2052. -s Only set system time
  2053. -p Only print time
  2054. =item B<rdev>
  2055. rdev
  2056. Print the device node associated with the filesystem mounted at '/'
  2057. =item B<readahead>
  2058. readahead [FILE]...
  2059. Preload FILEs to RAM
  2060. =item B<readlink>
  2061. readlink [-fnv] FILE
  2062. Display the value of a symlink
  2063. -f Canonicalize by following all symlinks
  2064. -n Don't add newline
  2065. -v Verbose
  2066. =item B<readprofile>
  2067. readprofile [OPTIONS]
  2068. -m mapfile (Default: /boot/System.map)
  2069. -p profile (Default: /proc/profile)
  2070. -M NUM Set the profiling multiplier to NUM
  2071. -i Print only info about the sampling step
  2072. -v Verbose
  2073. -a Print all symbols, even if count is 0
  2074. -b Print individual histogram-bin counts
  2075. -s Print individual counters within functions
  2076. -r Reset all the counters (root only)
  2077. -n Disable byte order auto-detection
  2078. =item B<realpath>
  2079. realpath FILE...
  2080. Return the absolute pathnames of given FILE
  2081. =item B<reboot>
  2082. reboot [-d DELAY] [-n] [-f]
  2083. Reboot the system
  2084. -d SEC Delay interval
  2085. -n Do not sync
  2086. -f Force (don't go through init)
  2087. =item B<reformime>
  2088. reformime [OPTIONS]
  2089. Parse MIME-encoded message on stdin
  2090. -x PREFIX Extract content of MIME sections to files
  2091. -X PROG ARGS Filter content of MIME sections through PROG
  2092. Must be the last option
  2093. Other options are silently ignored
  2094. =item B<remove-shell>
  2095. remove-shell SHELL...
  2096. Remove SHELLs from /etc/shells
  2097. =item B<renice>
  2098. renice [-n] PRIORITY [[-p | -g | -u] ID...]...
  2099. Change scheduling priority of a running process
  2100. -n Add PRIORITY to current nice value
  2101. Without -n, nice value is set to PRIORITY
  2102. -p Process ids (default)
  2103. -g Process group ids
  2104. -u Process user names
  2105. =item B<reset>
  2106. reset
  2107. Reset the screen
  2108. =item B<resize>
  2109. resize
  2110. Resize the screen
  2111. =item B<resume>
  2112. resume BLOCKDEV [OFFSET]
  2113. Restore system state from 'suspend-to-disk' data in BLOCKDEV
  2114. =item B<rev>
  2115. rev [FILE]...
  2116. Reverse lines of FILE
  2117. =item B<rm>
  2118. rm [-irf] FILE...
  2119. Remove (unlink) FILEs
  2120. -i Always prompt before removing
  2121. -f Never prompt
  2122. -R,-r Recurse
  2123. =item B<rmdir>
  2124. rmdir [OPTIONS] DIRECTORY...
  2125. Remove DIRECTORY if it is empty
  2126. -p Include parents
  2127. --ignore-fail-on-non-empty
  2128. =item B<rmmod>
  2129. rmmod MODULE...
  2130. Unload kernel modules
  2131. =item B<route>
  2132. route [{add|del|delete}]
  2133. Edit kernel routing tables
  2134. -n Don't resolve names
  2135. -e Display other/more information
  2136. -A inet{6} Select address family
  2137. =item B<rpm>
  2138. rpm -i PACKAGE.rpm; rpm -qp[ildc] PACKAGE.rpm
  2139. Manipulate RPM packages
  2140. Commands:
  2141. -i Install package
  2142. -qp Query package
  2143. -qpi Show information
  2144. -qpl List contents
  2145. -qpd List documents
  2146. -qpc List config files
  2147. =item B<rpm2cpio>
  2148. rpm2cpio PACKAGE.rpm
  2149. Output a cpio archive of the rpm file
  2150. =item B<rtcwake>
  2151. rtcwake [-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]
  2152. Enter a system sleep state until specified wakeup time
  2153. -a,--auto Read clock mode from adjtime
  2154. -l,--local Clock is set to local time
  2155. -u,--utc Clock is set to UTC time
  2156. -d,--device DEV Specify the RTC device
  2157. -m,--mode MODE Set sleep state (default: standby)
  2158. -s,--seconds SEC Set timeout in SEC seconds from now
  2159. -t,--time TIME Set timeout to TIME seconds from epoch
  2160. =item B<run-init>
  2161. run-init [-d CAP,CAP...] [-n] [-c CONSOLE_DEV] NEW_ROOT NEW_INIT [ARGS]
  2162. Free initramfs and switch to another root fs:
  2163. chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
  2164. execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
  2165. -c DEV Reopen stdio to DEV after switch
  2166. -d CAPS Drop capabilities
  2167. -n Dry run
  2168. =item B<run-parts>
  2169. run-parts [-a ARG]... [-u UMASK] [--reverse] [--test] [--exit-on-error] [--list] DIRECTORY
  2170. Run a bunch of scripts in DIRECTORY
  2171. -a ARG Pass ARG as argument to scripts
  2172. -u UMASK Set UMASK before running scripts
  2173. --reverse Reverse execution order
  2174. --test Dry run
  2175. --exit-on-error Exit if a script exits with non-zero
  2176. --list Print names of matching files even if they are not executable
  2177. =item B<runlevel>
  2178. runlevel [FILE]
  2179. Find the current and previous system runlevel
  2180. If no utmp FILE exists or if no runlevel record can be found,
  2181. print "unknown"
  2182. =item B<runsv>
  2183. runsv DIR
  2184. Start and monitor a service and optionally an appendant log service
  2185. =item B<runsvdir>
  2186. runsvdir [-P] [-s SCRIPT] DIR
  2187. Start a runsv process for each subdirectory. If it exits, restart it.
  2188. -P Put each runsv in a new session
  2189. -s SCRIPT Run SCRIPT <signo> after signal is processed
  2190. =item B<rx>
  2191. rx FILE
  2192. Receive a file using the xmodem protocol
  2193. =item B<script>
  2194. script [-afq] [-t[FILE]] [-c PROG] [OUTFILE]
  2195. Default OUTFILE is 'typescript'
  2196. -a Append output
  2197. -c PROG Run PROG, not shell
  2198. -q Quiet
  2199. -t[FILE] Send timing to stderr or FILE
  2200. =item B<scriptreplay>
  2201. scriptreplay TIMINGFILE [TYPESCRIPT [DIVISOR]]
  2202. Play back typescripts, using timing information
  2203. =item B<sed>
  2204. sed [-i[SFX]] [-nrE] [-f FILE]... [-e CMD]... [FILE]...
  2205. or: sed [-i[SFX]] [-nrE] CMD [FILE]...
  2206. -e CMD Add CMD to sed commands to be executed
  2207. -f FILE Add FILE contents to sed commands to be executed
  2208. -i[SFX] Edit files in-place (otherwise sends to stdout)
  2209. Optionally back files up, appending SFX
  2210. -n Suppress automatic printing of pattern space
  2211. -r,-E Use extended regex syntax
  2212. If no -e or -f, the first non-option argument is the sed command string.
  2213. Remaining arguments are input files (stdin if none).
  2214. =item B<sendmail>
  2215. sendmail [-tv] [-f SENDER] [-amLOGIN 4<user_pass.txt | -auUSER -apPASS]
  2216. [-w SECS] [-H 'PROG ARGS' | -S HOST] [RECIPIENT_EMAIL]...
  2217. Read email from stdin and send it
  2218. Standard options:
  2219. -t Read additional recipients from message body
  2220. -f SENDER For use in MAIL FROM:<sender>. Can be empty string
  2221. Default: -auUSER, or username of current UID
  2222. -o OPTIONS Various options. -oi implied, others are ignored
  2223. -i -oi synonym, implied and ignored
  2224. Busybox specific options:
  2225. -v Verbose
  2226. -w SECS Network timeout
  2227. -H 'PROG ARGS' Run connection helper. Examples:
  2228. openssl s_client -quiet -tls1 -starttls smtp -connect smtp.gmail.com:25
  2229. openssl s_client -quiet -tls1 -connect smtp.gmail.com:465
  2230. $SMTP_ANTISPAM_DELAY: seconds to wait after helper connect
  2231. -S HOST[:PORT] Server (default $SMTPHOST or 127.0.0.1)
  2232. -amLOGIN Log in using AUTH LOGIN (-amCRAM-MD5 not supported)
  2233. -auUSER Username for AUTH
  2234. -apPASS Password for AUTH
  2235. If no -a options are given, authentication is not done.
  2236. If -amLOGIN is given but no -au/-ap, user/password is read from fd #4.
  2237. Other options are silently ignored; -oi is implied.
  2238. Use makemime to create emails with attachments.
  2239. =item B<seq>
  2240. seq [-w] [-s SEP] [FIRST [INC]] LAST
  2241. Print numbers from FIRST to LAST, in steps of INC.
  2242. FIRST, INC default to 1.
  2243. -w Pad to last with leading zeros
  2244. -s SEP String separator
  2245. =item B<setarch>
  2246. setarch PERSONALITY [-R] PROG ARGS
  2247. PERSONALITY may be:
  2248. linux32 Set 32bit uname emulation
  2249. linux64 Set 64bit uname emulation
  2250. -R Disable address space randomization
  2251. =item B<setconsole>
  2252. setconsole [-r] [DEVICE]
  2253. Make writes to /dev/console appear on DEVICE (default: /dev/tty).
  2254. Does not redirect kernel log output or reads from /dev/console.
  2255. -r Reset: writes to /dev/console go to kernel log tty(s)
  2256. =item B<setfattr>
  2257. setfattr [-h] -n|-x ATTR [-v VALUE] FILE...
  2258. Set extended attributes
  2259. -h Do not follow symlinks
  2260. -x ATTR Remove attribute ATTR
  2261. -n ATTR Set attribute ATTR to VALUE
  2262. -v VALUE (default: empty)
  2263. =item B<setfont>
  2264. setfont FONT [-m MAPFILE] [-C TTY]
  2265. Load a console font
  2266. -m MAPFILE Load console screen map
  2267. -C TTY Affect TTY instead of /dev/tty
  2268. =item B<setkeycodes>
  2269. setkeycodes { SCANCODE KEYCODE }...
  2270. Modify kernel's scancode-to-keycode map,
  2271. allowing unusual keyboards to generate usable keycodes.
  2272. SCANCODE is either xx or e0xx (hexadecimal), KEYCODE is decimal.
  2273. =item B<setlogcons>
  2274. setlogcons [N]
  2275. Pin kernel output to VT console N. Default:0 (do not pin)
  2276. =item B<setpriv>
  2277. setpriv [OPTIONS] PROG [ARGS]
  2278. Run PROG with different privilege settings
  2279. -d,--dump Show current capabilities
  2280. --nnp,--no-new-privs Ignore setuid/setgid bits and file capabilities
  2281. --inh-caps CAP,CAP Set inheritable capabilities
  2282. --ambient-caps CAP,CAP Set ambient capabilities
  2283. =item B<setserial>
  2284. setserial [-abGvz] { DEVICE [PARAMETER [ARG]]... | -g DEVICE... }
  2285. Print or set serial port parameters
  2286. -a Print all
  2287. -b Print summary
  2288. -G Print as setserial PARAMETERs
  2289. -v Verbose
  2290. -z Zero out serial flags before setting
  2291. -g All args are device names
  2292. PARAMETERs: (* = takes ARG, ^ = can be turned off by preceding ^)
  2293. *port, *irq, *divisor, *uart, *baud_base, *close_delay, *closing_wait,
  2294. ^fourport, ^auto_irq, ^skip_test, ^sak, ^session_lockout, ^pgrp_lockout,
  2295. ^callout_nohup, ^split_termios, ^hup_notify, ^low_latency, autoconfig,
  2296. spd_normal, spd_hi, spd_vhi, spd_shi, spd_warp, spd_cust
  2297. ARG for uart:
  2298. unknown, 8250, 16450, 16550, 16550A, Cirrus, 16650, 16650V2, 16750,
  2299. 16950, 16954, 16654, 16850, RSA, NS16550A, XSCALE, RM9000, OCTEON, AR7,
  2300. U6_16550A
  2301. =item B<setsid>
  2302. setsid [-c] PROG ARGS
  2303. Run PROG in a new session. PROG will have no controlling terminal
  2304. and will not be affected by keyboard signals (^C etc).
  2305. -c Set controlling terminal to stdin
  2306. =item B<setuidgid>
  2307. setuidgid USER PROG ARGS
  2308. Set uid and gid to USER's uid and gid, drop supplementary group ids,
  2309. run PROG
  2310. =item B<sh>
  2311. sh [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]]
  2312. Unix shell interpreter
  2313. =item B<sha1sum>
  2314. sha1sum [-c[sw]] [FILE]...
  2315. Print or check SHA1 checksums
  2316. -c Check sums against list in FILEs
  2317. -s Don't output anything, status code shows success
  2318. -w Warn about improperly formatted checksum lines
  2319. =item B<sha256sum>
  2320. sha256sum [-c[sw]] [FILE]...
  2321. Print or check SHA256 checksums
  2322. -c Check sums against list in FILEs
  2323. -s Don't output anything, status code shows success
  2324. -w Warn about improperly formatted checksum lines
  2325. =item B<sha3sum>
  2326. sha3sum [-c[sw]] [-a BITS] [FILE]...
  2327. Print or check SHA3 checksums
  2328. -c Check sums against list in FILEs
  2329. -s Don't output anything, status code shows success
  2330. -w Warn about improperly formatted checksum lines
  2331. -a BITS 224 (default), 256, 384, 512
  2332. =item B<sha512sum>
  2333. sha512sum [-c[sw]] [FILE]...
  2334. Print or check SHA512 checksums
  2335. -c Check sums against list in FILEs
  2336. -s Don't output anything, status code shows success
  2337. -w Warn about improperly formatted checksum lines
  2338. =item B<showkey>
  2339. showkey [-a | -k | -s]
  2340. Show keys pressed
  2341. -a Display decimal/octal/hex values of the keys
  2342. -k Display interpreted keycodes (default)
  2343. -s Display raw scan-codes
  2344. =item B<shred>
  2345. shred FILE...
  2346. Overwrite/delete FILEs
  2347. -f Chmod to ensure writability
  2348. -n N Overwrite N times (default 3)
  2349. -z Final overwrite with zeros
  2350. -u Remove file
  2351. =item B<shuf>
  2352. shuf [-e|-i L-H] [-n NUM] [-o FILE] [-z] [FILE|ARG...]
  2353. Randomly permute lines
  2354. -e Treat ARGs as lines
  2355. -i L-H Treat numbers L-H as lines
  2356. -n NUM Output at most NUM lines
  2357. -o FILE Write to FILE, not standard output
  2358. -z End lines with zero byte, not newline
  2359. =item B<slattach>
  2360. slattach [-ehmLF] [-c SCRIPT] [-s BAUD] [-p PROTOCOL] SERIAL_DEVICE
  2361. Configure serial line as SLIP network interface
  2362. -p PROT Protocol: slip, cslip (default), slip6, clisp6, adaptive
  2363. -s BAUD Line speed
  2364. -e Exit after initialization
  2365. -h Exit if carrier is lost (else never exits)
  2366. -c PROG Run PROG on carrier loss
  2367. -m Do NOT set raw 8bit mode
  2368. -L Enable 3-wire operation
  2369. -F Disable RTS/CTS flow control
  2370. =item B<sleep>
  2371. sleep [N]...
  2372. Pause for a time equal to the total of the args given, where each arg can
  2373. have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays
  2374. =item B<smemcap>
  2375. smemcap >SMEMDATA.TAR
  2376. Collect memory usage data in /proc and write it to stdout
  2377. =item B<softlimit>
  2378. softlimit [-a BYTES] [-m BYTES] [-d BYTES] [-s BYTES] [-l BYTES]
  2379. [-f BYTES] [-c BYTES] [-r BYTES] [-o N] [-p N] [-t N]
  2380. PROG ARGS
  2381. Set soft resource limits, then run PROG
  2382. -a BYTES Limit total size of all segments
  2383. -m BYTES Same as -d BYTES -s BYTES -l BYTES -a BYTES
  2384. -d BYTES Limit data segment
  2385. -s BYTES Limit stack segment
  2386. -l BYTES Limit locked memory size
  2387. -o N Limit number of open files per process
  2388. -p N Limit number of processes per uid
  2389. Options controlling file sizes:
  2390. -f BYTES Limit output file sizes
  2391. -c BYTES Limit core file size
  2392. Efficiency opts:
  2393. -r BYTES Limit resident set size
  2394. -t N Limit CPU time, process receives
  2395. a SIGXCPU after N seconds
  2396. =item B<sort>
  2397. sort [-nrugMcszbdfiokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...
  2398. Sort lines of text
  2399. -o FILE Output to FILE
  2400. -c Check whether input is sorted
  2401. -b Ignore leading blanks
  2402. -f Ignore case
  2403. -i Ignore unprintable characters
  2404. -d Dictionary order (blank or alphanumeric only)
  2405. -g General numerical sort
  2406. -M Sort month
  2407. -n Sort numbers
  2408. -t CHAR Field separator
  2409. -k N[,M] Sort by Nth field
  2410. -r Reverse sort order
  2411. -s Stable (don't sort ties alphabetically)
  2412. -u Suppress duplicate lines
  2413. -z Lines are terminated by NUL, not newline
  2414. =item B<split>
  2415. split [OPTIONS] [INPUT [PREFIX]]
  2416. -b N[k|m] Split by N (kilo|mega)bytes
  2417. -l N Split by N lines
  2418. -a N Use N letters as suffix
  2419. =item B<ssl_client>
  2420. ssl_client -s FD [-r FD] [-n SNI]
  2421. =item B<start-stop-daemon>
  2422. start-stop-daemon [OPTIONS] [-S|-K] ... [-- ARGS...]
  2423. Search for matching processes, and then
  2424. -K: stop all matching processes
  2425. -S: start a process unless a matching process is found
  2426. Process matching:
  2427. -u USERNAME|UID Match only this user's processes
  2428. -n NAME Match processes with NAME
  2429. in comm field in /proc/PID/stat
  2430. -x EXECUTABLE Match processes with this command
  2431. command in /proc/PID/cmdline
  2432. -p FILE Match a process with PID from FILE
  2433. All specified conditions must match
  2434. -S only:
  2435. -x EXECUTABLE Program to run
  2436. -a NAME Zeroth argument
  2437. -b Background
  2438. -N N Change nice level
  2439. -c USER[:[GRP]] Change user/group
  2440. -m Write PID to pidfile specified by -p
  2441. -K only:
  2442. -s SIG Signal to send
  2443. -t Match only, exit with 0 if found
  2444. Other:
  2445. -o Exit with status 0 if nothing is done
  2446. -v Verbose
  2447. -q Quiet
  2448. =item B<stat>
  2449. stat [OPTIONS] FILE...
  2450. Display file (default) or filesystem status
  2451. -c FMT Use the specified format
  2452. -f Display filesystem status
  2453. -L Follow links
  2454. -t Terse display
  2455. FMT sequences for files:
  2456. %a Access rights in octal
  2457. %A Access rights in human readable form
  2458. %b Number of blocks allocated (see %B)
  2459. %B Size in bytes of each block reported by %b
  2460. %d Device number in decimal
  2461. %D Device number in hex
  2462. %f Raw mode in hex
  2463. %F File type
  2464. %g Group ID
  2465. %G Group name
  2466. %h Number of hard links
  2467. %i Inode number
  2468. %n File name
  2469. %N File name, with -> TARGET if symlink
  2470. %o I/O block size
  2471. %s Total size in bytes
  2472. %t Major device type in hex
  2473. %T Minor device type in hex
  2474. %u User ID
  2475. %U User name
  2476. %x Time of last access
  2477. %X Time of last access as seconds since Epoch
  2478. %y Time of last modification
  2479. %Y Time of last modification as seconds since Epoch
  2480. %z Time of last change
  2481. %Z Time of last change as seconds since Epoch
  2482. FMT sequences for file systems:
  2483. %a Free blocks available to non-superuser
  2484. %b Total data blocks
  2485. %c Total file nodes
  2486. %d Free file nodes
  2487. %f Free blocks
  2488. %i File System ID in hex
  2489. %l Maximum length of filenames
  2490. %n File name
  2491. %s Block size (for faster transfer)
  2492. %S Fundamental block size (for block counts)
  2493. %t Type in hex
  2494. %T Type in human readable form
  2495. =item B<strings>
  2496. strings [-fo] [-t o/d/x] [-n LEN] [FILE]...
  2497. Display printable strings in a binary file
  2498. -f Precede strings with filenames
  2499. -o Precede strings with octal offsets
  2500. -t o/d/x Precede strings with offsets in base 8/10/16
  2501. -n LEN At least LEN characters form a string (default 4)
  2502. =item B<stty>
  2503. stty [-a|g] [-F DEVICE] [SETTING]...
  2504. Without arguments, prints baud rate, line discipline,
  2505. and deviations from stty sane
  2506. -F DEVICE Open device instead of stdin
  2507. -a Print all current settings in human-readable form
  2508. -g Print in stty-readable form
  2509. [SETTING] See manpage
  2510. =item B<su>
  2511. su [-lmp] [-] [-s SH] [USER [SCRIPT ARGS / -c 'CMD' ARG0 ARGS]]
  2512. Run shell under USER (by default, root)
  2513. -,-l Clear environment, go to home dir, run shell as login shell
  2514. -p,-m Do not set new $HOME, $SHELL, $USER, $LOGNAME
  2515. -c CMD Command to pass to 'sh -c'
  2516. -s SH Shell to use instead of user's default
  2517. =item B<sulogin>
  2518. sulogin [-t N] [TTY]
  2519. Single user login
  2520. -t N Timeout
  2521. =item B<sum>
  2522. sum [-rs] [FILE]...
  2523. Checksum and count the blocks in a file
  2524. -r Use BSD sum algorithm (1K blocks)
  2525. -s Use System V sum algorithm (512byte blocks)
  2526. =item B<sv>
  2527. sv [-v] [-w SEC] CMD SERVICE_DIR...
  2528. Control services monitored by runsv supervisor.
  2529. Commands (only first character is enough):
  2530. status: query service status
  2531. up: if service isn't running, start it. If service stops, restart it
  2532. once: like 'up', but if service stops, don't restart it
  2533. down: send TERM and CONT signals. If ./run exits, start ./finish
  2534. if it exists. After it stops, don't restart service
  2535. exit: send TERM and CONT signals to service and log service. If they exit,
  2536. runsv exits too
  2537. pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send
  2538. STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service
  2539. =item B<svc>
  2540. svc [-udopchaitkx] SERVICE_DIR...
  2541. Control services monitored by runsv supervisor
  2542. -u If service is not running, start it; restart if it stops
  2543. -d If service is running, send TERM+CONT signals; do not restart it
  2544. -o Once: if service is not running, start it; do not restart it
  2545. -pchaitk Send STOP, CONT, HUP, ALRM, INT, TERM, KILL signal to service
  2546. -x Exit: runsv will exit as soon as the service is down
  2547. =item B<svlogd>
  2548. svlogd [-tttv] [-r C] [-R CHARS] [-l MATCHLEN] [-b BUFLEN] DIR...
  2549. Read log data from stdin and write to rotated log files in DIRs
  2550. -r C Replace non-printable characters with C
  2551. -R CHARS Also replace CHARS with C (default _)
  2552. -t Timestamp with @tai64n
  2553. -tt Timestamp with yyyy-mm-dd_hh:mm:ss.sssss
  2554. -ttt Timestamp with yyyy-mm-ddThh:mm:ss.sssss
  2555. -v Verbose
  2556. DIR/config file modifies behavior:
  2557. sSIZE - when to rotate logs (default 1000000, 0 disables)
  2558. nNUM - number of files to retain
  2559. !PROG - process rotated log with PROG
  2560. +,-PATTERN - (de)select line for logging
  2561. E,ePATTERN - (de)select line for stderr
  2562. =item B<swapoff>
  2563. swapoff [-a] [DEVICE]
  2564. Stop swapping on DEVICE
  2565. -a Stop swapping on all swap devices
  2566. =item B<swapon>
  2567. swapon [-a] [-e] [-d[POL]] [-p PRI] [DEVICE]
  2568. Start swapping on DEVICE
  2569. -a Start swapping on all swap devices
  2570. -d[POL] Discard blocks at swapon (POL=once),
  2571. as freed (POL=pages), or both (POL omitted)
  2572. -e Silently skip devices that do not exist
  2573. -p PRI Set swap device priority
  2574. =item B<switch_root>
  2575. switch_root [-c CONSOLE_DEV] NEW_ROOT NEW_INIT [ARGS]
  2576. Free initramfs and switch to another root fs:
  2577. chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
  2578. execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
  2579. -c DEV Reopen stdio to DEV after switch
  2580. =item B<sync>
  2581. sync [-df] [FILE]...
  2582. Write all buffered blocks (in FILEs) to disk
  2583. -d Avoid syncing metadata
  2584. -f Sync filesystems underlying FILEs
  2585. =item B<sysctl>
  2586. sysctl -p [-enq] [FILE...] / [-enqaw] [KEY[=VALUE]]...
  2587. Show/set kernel parameters
  2588. -p Set values from FILEs (default /etc/sysctl.conf)
  2589. -e Don't warn about unknown keys
  2590. -n Don't show key names
  2591. -q Quiet
  2592. -a Show all values
  2593. -w Set values
  2594. =item B<syslogd>
  2595. syslogd [OPTIONS]
  2596. System logging utility
  2597. -n Run in foreground
  2598. -R HOST[:PORT] Log to HOST:PORT (default PORT:514)
  2599. -L Log locally and via network (default is network only if -R)
  2600. -C[size_kb] Log to shared mem buffer (use logread to read it)
  2601. -K Log to kernel printk buffer (use dmesg to read it)
  2602. -O FILE Log to FILE (default: /var/log/messages, stdout if -)
  2603. -s SIZE Max size (KB) before rotation (default 200KB, 0=off)
  2604. -b N N rotated logs to keep (default 1, max 99, 0=purge)
  2605. -l N Log only messages more urgent than prio N (1-8)
  2606. -S Smaller output
  2607. -D Drop duplicates
  2608. -f FILE Use FILE as config (default:/etc/syslog.conf)
  2609. =item B<tac>
  2610. tac [FILE]...
  2611. Concatenate FILEs and print them in reverse
  2612. =item B<tail>
  2613. tail [OPTIONS] [FILE]...
  2614. Print last 10 lines of each FILE (or stdin) to stdout.
  2615. With more than one FILE, precede each with a filename header.
  2616. -f Print data as file grows
  2617. -c [+]N[kbm] Print last N bytes
  2618. -n N[kbm] Print last N lines
  2619. -n +N[kbm] Start on Nth line and print the rest
  2620. -q Never print headers
  2621. -s SECONDS Wait SECONDS between reads with -f
  2622. -v Always print headers
  2623. -F Same as -f, but keep retrying
  2624. N may be suffixed by k (x1024), b (x512), or m (x1024^2).
  2625. =item B<tar>
  2626. tar c|x|t [-zJjahmvO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [--exclude PATTERN]... [FILE]...
  2627. Create, extract, or list files from a tar file
  2628. Operation:
  2629. c Create
  2630. x Extract
  2631. t List
  2632. -f FILE Name of TARFILE ('-' for stdin/out)
  2633. -C DIR Change to DIR before operation
  2634. -v Verbose
  2635. -z (De)compress using gzip
  2636. -J (De)compress using xz
  2637. -j (De)compress using bzip2
  2638. -a (De)compress using lzma
  2639. -O Extract to stdout
  2640. -h Follow symlinks
  2641. -m Don't restore mtime
  2642. -T FILE File with names to include
  2643. -X FILE File with glob patterns to exclude
  2644. --exclude PATTERN Glob pattern to exclude
  2645. =item B<taskset>
  2646. taskset [-p] [HEXMASK] PID | PROG ARGS
  2647. Set or get CPU affinity
  2648. -p Operate on an existing PID
  2649. =item B<tcpsvd>
  2650. tcpsvd [-hEv] [-c N] [-C N[:MSG]] [-b N] [-u USER] [-l NAME] IP PORT PROG
  2651. Create TCP socket, bind to IP:PORT and listen for incoming connections.
  2652. Run PROG for each connection.
  2653. IP PORT IP:PORT to listen on
  2654. PROG ARGS Program to run
  2655. -u USER[:GRP] Change to user/group after bind
  2656. -c N Up to N connections simultaneously (default 30)
  2657. -b N Allow backlog of approximately N TCP SYNs (default 20)
  2658. -C N[:MSG] Allow only up to N connections from the same IP:
  2659. new connections from this IP address are closed
  2660. immediately, MSG is written to the peer before close
  2661. -E Don't set up environment
  2662. -h Look up peer's hostname
  2663. -l NAME Local hostname (else look up local hostname in DNS)
  2664. -v Verbose
  2665. Environment if no -E:
  2666. PROTO='TCP'
  2667. TCPREMOTEADDR='ip:port' ('[ip]:port' for IPv6)
  2668. TCPLOCALADDR='ip:port'
  2669. TCPORIGDSTADDR='ip:port' of destination before firewall
  2670. Useful for REDIRECTed-to-local connections:
  2671. iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 8080
  2672. TCPCONCURRENCY=num_of_connects_from_this_ip
  2673. If -h:
  2674. TCPLOCALHOST='hostname' (-l NAME is used if specified)
  2675. TCPREMOTEHOST='hostname'
  2676. =item B<tee>
  2677. tee [-ai] [FILE]...
  2678. Copy stdin to each FILE, and also to stdout
  2679. -a Append to the given FILEs, don't overwrite
  2680. -i Ignore interrupt signals (SIGINT)
  2681. =item B<telnet>
  2682. telnet [-a] [-l USER] HOST [PORT]
  2683. Connect to telnet server
  2684. -a Automatic login with $USER variable
  2685. -l USER Automatic login as USER
  2686. =item B<telnetd>
  2687. telnetd [OPTIONS]
  2688. Handle incoming telnet connections
  2689. -l LOGIN Exec LOGIN on connect
  2690. -f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue
  2691. -K Close connection as soon as login exits
  2692. (normally wait until all programs close slave pty)
  2693. -p PORT Port to listen on
  2694. -b ADDR[:PORT] Address to bind to
  2695. -F Run in foreground
  2696. -i Inetd mode
  2697. -w SEC Inetd 'wait' mode, linger time SEC
  2698. -S Log to syslog (implied by -i or without -F and -w)
  2699. =item B<tftp>
  2700. tftp [OPTIONS] HOST [PORT]
  2701. Transfer a file from/to tftp server
  2702. -l FILE Local FILE
  2703. -r FILE Remote FILE
  2704. -g Get file
  2705. -p Put file
  2706. -b SIZE Transfer blocks of SIZE octets
  2707. =item B<tftpd>
  2708. tftpd [-cr] [-u USER] [DIR]
  2709. Transfer a file on tftp client's request
  2710. tftpd should be used as an inetd service.
  2711. tftpd's line for inetd.conf:
  2712. 69 dgram udp nowait root tftpd tftpd -l /files/to/serve
  2713. It also can be ran from udpsvd:
  2714. udpsvd -vE 0.0.0.0 69 tftpd /files/to/serve
  2715. -r Prohibit upload
  2716. -c Allow file creation via upload
  2717. -u Access files as USER
  2718. -l Log to syslog (inetd mode requires this)
  2719. =item B<time>
  2720. time [-vpa] [-o FILE] PROG ARGS
  2721. Run PROG, display resource usage when it exits
  2722. -v Verbose
  2723. -p POSIX output format
  2724. -f FMT Custom format
  2725. -o FILE Write result to FILE
  2726. -a Append (else overwrite)
  2727. =item B<timeout>
  2728. timeout [-t SECS] [-s SIG] PROG ARGS
  2729. Runs PROG. Sends SIG to it if it is not gone in SECS seconds.
  2730. Defaults: SECS: 10, SIG: TERM.
  2731. =item B<top>
  2732. top [-b] [-nCOUNT] [-dSECONDS] [-m]
  2733. Provide a view of process activity in real time.
  2734. Read the status of all processes from /proc each SECONDS
  2735. and display a screenful of them.
  2736. Keys:
  2737. N/M/P/T: show CPU usage, sort by pid/mem/cpu/time
  2738. S: show memory
  2739. R: reverse sort
  2740. H: toggle threads, 1: toggle SMP
  2741. Q,^C: exit
  2742. Options:
  2743. -b Batch mode
  2744. -n N Exit after N iterations
  2745. -d N Delay between updates
  2746. -m Same as 's' key
  2747. =item B<touch>
  2748. touch [-c] [-d DATE] [-t DATE] [-r FILE] FILE...
  2749. Update the last-modified date on the given FILE[s]
  2750. -c Don't create files
  2751. -h Don't follow links
  2752. -d DT Date/time to use
  2753. -t DT Date/time to use
  2754. -r FILE Use FILE's date/time
  2755. =item B<tr>
  2756. tr [-cds] STRING1 [STRING2]
  2757. Translate, squeeze, or delete characters from stdin, writing to stdout
  2758. -c Take complement of STRING1
  2759. -d Delete input characters coded STRING1
  2760. -s Squeeze multiple output characters of STRING2 into one character
  2761. =item B<traceroute>
  2762. traceroute [-46FIlnrv] [-f 1ST_TTL] [-m MAXTTL] [-q PROBES] [-p PORT]
  2763. [-t TOS] [-w WAIT_SEC] [-s SRC_IP] [-i IFACE]
  2764. [-z PAUSE_MSEC] HOST [BYTES]
  2765. Trace the route to HOST
  2766. -4,-6 Force IP or IPv6 name resolution
  2767. -F Set don't fragment bit
  2768. -I Use ICMP ECHO instead of UDP datagrams
  2769. -l Display TTL value of the returned packet
  2770. -n Print numeric addresses
  2771. -r Bypass routing tables, send directly to HOST
  2772. -v Verbose
  2773. -f N First number of hops (default 1)
  2774. -m N Max number of hops
  2775. -q N Number of probes per hop (default 3)
  2776. -p N Base UDP port number used in probes
  2777. (default 33434)
  2778. -s IP Source address
  2779. -i IFACE Source interface
  2780. -t N Type-of-service in probe packets (default 0)
  2781. -w SEC Time to wait for a response (default 3)
  2782. -g IP Loose source route gateway (8 max)
  2783. =item B<traceroute6>
  2784. traceroute6 [-nrv] [-m MAXTTL] [-q PROBES] [-p PORT]
  2785. [-t TOS] [-w WAIT_SEC] [-s SRC_IP] [-i IFACE]
  2786. HOST [BYTES]
  2787. Trace the route to HOST
  2788. -n Print numeric addresses
  2789. -r Bypass routing tables, send directly to HOST
  2790. -v Verbose
  2791. -m N Max number of hops
  2792. -q N Number of probes per hop (default 3)
  2793. -p N Base UDP port number used in probes
  2794. (default 33434)
  2795. -s IP Source address
  2796. -i IFACE Source interface
  2797. -t N Type-of-service in probe packets (default 0)
  2798. -w SEC Time wait for a response (default 3)
  2799. =item B<truncate>
  2800. truncate [-c] -s SIZE FILE...
  2801. Truncate FILEs to the given size
  2802. -c Do not create files
  2803. -s SIZE Truncate to SIZE
  2804. =item B<tty>
  2805. tty
  2806. Print file name of stdin's terminal
  2807. -s Print nothing, only return exit status
  2808. =item B<ttysize>
  2809. ttysize [w] [h]
  2810. Print dimensions of stdin tty, or 80x24
  2811. =item B<tunctl>
  2812. tunctl [-f device] ([-t name] | -d name) [-u owner] [-g group] [-b]
  2813. Create or delete tun interfaces
  2814. -f name tun device (/dev/net/tun)
  2815. -t name Create iface 'name'
  2816. -d name Delete iface 'name'
  2817. -u owner Set iface owner
  2818. -g group Set iface group
  2819. -b Brief output
  2820. =item B<ubiattach>
  2821. ubiattach -m MTD_NUM [-d UBI_NUM] [-O VID_HDR_OFF] UBI_CTRL_DEV
  2822. Attach MTD device to UBI
  2823. -m MTD_NUM MTD device number to attach
  2824. -d UBI_NUM UBI device number to assign
  2825. -O VID_HDR_OFF VID header offset
  2826. =item B<ubidetach>
  2827. ubidetach -d UBI_NUM UBI_CTRL_DEV
  2828. Detach MTD device from UBI
  2829. -d UBI_NUM UBI device number
  2830. =item B<ubimkvol>
  2831. ubimkvol -N NAME [-s SIZE | -m] UBI_DEVICE
  2832. Create UBI volume
  2833. -a ALIGNMENT Volume alignment (default 1)
  2834. -m Set volume size to maximum available
  2835. -n VOLID Volume ID. If not specified,
  2836. assigned automatically
  2837. -N NAME Volume name
  2838. -s SIZE Size in bytes
  2839. -t TYPE Volume type (static|dynamic)
  2840. =item B<ubirename>
  2841. ubirename UBI_DEVICE OLD_VOLNAME NEW_VOLNAME [OLD2 NEW2]...
  2842. Rename UBI volumes on UBI_DEVICE
  2843. =item B<ubirmvol>
  2844. ubirmvol -n VOLID / -N VOLNAME UBI_DEVICE
  2845. Remove UBI volume
  2846. -n VOLID Volume ID
  2847. -N VOLNAME Volume name
  2848. =item B<ubirsvol>
  2849. ubirsvol -n VOLID -s SIZE UBI_DEVICE
  2850. Resize UBI volume
  2851. -n VOLID Volume ID
  2852. -s SIZE Size in bytes
  2853. =item B<ubiupdatevol>
  2854. ubiupdatevol -t UBI_DEVICE | [-s SIZE] UBI_DEVICE IMG_FILE
  2855. Update UBI volume
  2856. -t Truncate to zero size
  2857. -s SIZE Size in bytes to resize to
  2858. =item B<udhcpc>
  2859. udhcpc [-fbqvRB] [-a[MSEC]] [-t N] [-T SEC] [-A SEC/-n]
  2860. [-i IFACE] [-s PROG] [-p PIDFILE]
  2861. [-oC] [-r IP] [-V VENDOR] [-F NAME] [-x OPT:VAL]... [-O OPT]...
  2862. -i IFACE Interface to use (default eth0)
  2863. -s PROG Run PROG at DHCP events (default /usr/share/udhcpc/default.script)
  2864. -p FILE Create pidfile
  2865. -B Request broadcast replies
  2866. -t N Send up to N discover packets (default 3)
  2867. -T SEC Pause between packets (default 3)
  2868. -A SEC Wait if lease is not obtained (default 20)
  2869. -n Exit if lease is not obtained
  2870. -q Exit after obtaining lease
  2871. -R Release IP on exit
  2872. -f Run in foreground
  2873. -b Background if lease is not obtained
  2874. -S Log to syslog too
  2875. -a[MSEC] Validate offered address with ARP ping
  2876. -r IP Request this IP address
  2877. -o Don't request any options (unless -O is given)
  2878. -O OPT Request option OPT from server (cumulative)
  2879. -x OPT:VAL Include option OPT in sent packets (cumulative)
  2880. Examples of string, numeric, and hex byte opts:
  2881. -x hostname:bbox - option 12
  2882. -x lease:3600 - option 51 (lease time)
  2883. -x 0x3d:0100BEEFC0FFEE - option 61 (client id)
  2884. -F NAME Ask server to update DNS mapping for NAME
  2885. -V VENDOR Vendor identifier (default 'udhcp VERSION')
  2886. -C Don't send MAC as client identifier
  2887. -v Verbose
  2888. Signals:
  2889. USR1 Renew lease
  2890. USR2 Release lease
  2891. =item B<udhcpd>
  2892. udhcpd [-fS] [-I ADDR] [CONFFILE]
  2893. DHCP server
  2894. -f Run in foreground
  2895. -S Log to syslog too
  2896. -I ADDR Local address
  2897. -a MSEC Timeout for ARP ping (default 2000)
  2898. =item B<udpsvd>
  2899. udpsvd [-hEv] [-c N] [-u USER] [-l NAME] IP PORT PROG
  2900. Create UDP socket, bind to IP:PORT and wait for incoming packets.
  2901. Run PROG for each packet, redirecting all further packets with same
  2902. peer ip:port to it.
  2903. IP PORT IP:PORT to listen on
  2904. PROG ARGS Program to run
  2905. -u USER[:GRP] Change to user/group after bind
  2906. -c N Up to N connections simultaneously (default 30)
  2907. -E Don't set up environment
  2908. -h Look up peer's hostname
  2909. -l NAME Local hostname (else look up local hostname in DNS)
  2910. -v Verbose
  2911. Environment if no -E:
  2912. PROTO='UDP'
  2913. UDPREMOTEADDR='ip:port' ('[ip]:port' for IPv6)
  2914. UDPLOCALADDR='ip:port'
  2915. If -h:
  2916. UDPLOCALHOST='hostname' (-l NAME is used if specified)
  2917. UDPREMOTEHOST='hostname'
  2918. =item B<uevent>
  2919. uevent [PROG [ARGS]]
  2920. uevent runs PROG for every netlink notification.
  2921. PROG's environment contains data passed from the kernel.
  2922. Typical usage (daemon for dynamic device node creation):
  2923. # uevent mdev & mdev -s
  2924. =item B<umount>
  2925. umount [OPTIONS] FILESYSTEM|DIRECTORY
  2926. Unmount file systems
  2927. -a Unmount all file systems
  2928. -r Try to remount devices as read-only if mount is busy
  2929. -l Lazy umount (detach filesystem)
  2930. -f Force umount (i.e., unreachable NFS server)
  2931. -d Free loop device if it has been used
  2932. =item B<uname>
  2933. uname [-amnrspvio]
  2934. Print system information
  2935. -a Print all
  2936. -m The machine (hardware) type
  2937. -n Hostname
  2938. -r Kernel release
  2939. -s Kernel name (default)
  2940. -p Processor type
  2941. -v Kernel version
  2942. -i The hardware platform
  2943. -o OS name
  2944. =item B<unexpand>
  2945. unexpand [-fa][-t N] [FILE]...
  2946. Convert spaces to tabs, writing to stdout
  2947. -a Convert all blanks
  2948. -f Convert only leading blanks
  2949. -t N Tabstops every N chars
  2950. =item B<uniq>
  2951. uniq [-cdu][-f,s,w N] [INPUT [OUTPUT]]
  2952. Discard duplicate lines
  2953. -c Prefix lines by the number of occurrences
  2954. -d Only print duplicate lines
  2955. -u Only print unique lines
  2956. -i Ignore case
  2957. -f N Skip first N fields
  2958. -s N Skip first N chars (after any skipped fields)
  2959. -w N Compare N characters in line
  2960. =item B<unix2dos>
  2961. unix2dos [-ud] [FILE]
  2962. Convert FILE in-place from Unix to DOS format.
  2963. When no file is given, use stdin/stdout.
  2964. -u dos2unix
  2965. -d unix2dos
  2966. =item B<unlink>
  2967. unlink FILE
  2968. Delete FILE by calling unlink()
  2969. =item B<unlzma>
  2970. unlzma [-cfk] [FILE]...
  2971. Decompress FILE (or stdin)
  2972. -c Write to stdout
  2973. -f Force
  2974. -k Keep input files
  2975. =item B<unshare>
  2976. unshare [OPTIONS] [PROG [ARGS]]
  2977. -m,--mount[=FILE] Unshare mount namespace
  2978. -u,--uts[=FILE] Unshare UTS namespace (hostname etc.)
  2979. -i,--ipc[=FILE] Unshare System V IPC namespace
  2980. -n,--net[=FILE] Unshare network namespace
  2981. -p,--pid[=FILE] Unshare PID namespace
  2982. -U,--user[=FILE] Unshare user namespace
  2983. -f,--fork Fork before execing PROG
  2984. -r,--map-root-user Map current user to root (implies -U)
  2985. --mount-proc[=DIR] Mount /proc filesystem first (implies -m)
  2986. --propagation slave|shared|private|unchanged
  2987. Modify mount propagation in mount namespace
  2988. --setgroups allow|deny Control the setgroups syscall in user namespaces
  2989. =item B<unxz>
  2990. unxz [-cfk] [FILE]...
  2991. Decompress FILE (or stdin)
  2992. -c Write to stdout
  2993. -f Force
  2994. -k Keep input files
  2995. =item B<unzip>
  2996. unzip [-lnojpq] FILE[.zip] [FILE]... [-x FILE...] [-d DIR]
  2997. Extract FILEs from ZIP archive
  2998. -l List contents (with -q for short form)
  2999. -n Never overwrite files (default: ask)
  3000. -o Overwrite
  3001. -j Do not restore paths
  3002. -p Print to stdout
  3003. -q Quiet
  3004. -x FILE Exclude FILEs
  3005. -d DIR Extract into DIR
  3006. =item B<uptime>
  3007. uptime
  3008. Display the time since the last boot
  3009. =item B<users>
  3010. users
  3011. Print the users currently logged on
  3012. =item B<usleep>
  3013. usleep N
  3014. Pause for N microseconds
  3015. =item B<uudecode>
  3016. uudecode [-o OUTFILE] [INFILE]
  3017. Uudecode a file
  3018. Finds OUTFILE in uuencoded source unless -o is given
  3019. =item B<uuencode>
  3020. uuencode [-m] [FILE] STORED_FILENAME
  3021. Uuencode FILE (or stdin) to stdout
  3022. -m Use base64 encoding per RFC1521
  3023. =item B<vconfig>
  3024. vconfig COMMAND [OPTIONS]
  3025. Create and remove virtual ethernet devices
  3026. add IFACE VLAN_ID
  3027. rem VLAN_NAME
  3028. set_flag IFACE 0|1 VLAN_QOS
  3029. set_egress_map VLAN_NAME SKB_PRIO VLAN_QOS
  3030. set_ingress_map VLAN_NAME SKB_PRIO VLAN_QOS
  3031. set_name_type NAME_TYPE
  3032. =item B<vi>
  3033. vi [OPTIONS] [FILE]...
  3034. Edit FILE
  3035. -c CMD Initial command to run ($EXINIT also available)
  3036. -R Read-only
  3037. -H List available features
  3038. =item B<vlock>
  3039. vlock [-a]
  3040. Lock a virtual terminal. A password is required to unlock.
  3041. -a Lock all VTs
  3042. =item B<volname>
  3043. volname [DEVICE]
  3044. Show CD volume name of the DEVICE (default /dev/cdrom)
  3045. =item B<w>
  3046. w
  3047. Show who is logged on
  3048. =item B<wall>
  3049. wall [FILE]
  3050. Write content of FILE or stdin to all logged-in users
  3051. =item B<watch>
  3052. watch [-n SEC] [-t] PROG ARGS
  3053. Run PROG periodically
  3054. -n Loop period in seconds (default 2)
  3055. -t Don't print header
  3056. =item B<watchdog>
  3057. watchdog [-t N[ms]] [-T N[ms]] [-F] DEV
  3058. Periodically write to watchdog device DEV
  3059. -T N Reboot after N seconds if not reset (default 60)
  3060. -t N Reset every N seconds (default 30)
  3061. -F Run in foreground
  3062. Use 500ms to specify period in milliseconds
  3063. =item B<wc>
  3064. wc [-cmlwL] [FILE]...
  3065. Count lines, words, and bytes for each FILE (or stdin)
  3066. -c Count bytes
  3067. -m Count characters
  3068. -l Count newlines
  3069. -w Count words
  3070. -L Print longest line length
  3071. =item B<wget>
  3072. wget [-c|--continue] [--spider] [-q|--quiet] [-O|--output-document FILE]
  3073. [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
  3074. [-S|--server-response] [-U|--user-agent AGENT] [-T SEC] URL...
  3075. Retrieve files via HTTP or FTP
  3076. --spider Only check URL existence: $? is 0 if exists
  3077. -c Continue retrieval of aborted transfer
  3078. -q Quiet
  3079. -P DIR Save to DIR (default .)
  3080. -S Show server response
  3081. -T SEC Network read timeout is SEC seconds
  3082. -O FILE Save to FILE ('-' for stdout)
  3083. -U STR Use STR for User-Agent header
  3084. -Y on/off Use proxy
  3085. =item B<which>
  3086. which [COMMAND]...
  3087. Locate a COMMAND
  3088. =item B<who>
  3089. who [-a]
  3090. Show who is logged on
  3091. -a Show all
  3092. -H Print column headers
  3093. =item B<whoami>
  3094. whoami
  3095. Print the user name associated with the current effective user id
  3096. =item B<whois>
  3097. whois [-i] [-h SERVER] [-p PORT] NAME...
  3098. Query WHOIS info about NAME
  3099. -i Show redirect results too
  3100. -h,-p Server to query
  3101. =item B<xargs>
  3102. xargs [OPTIONS] [PROG ARGS]
  3103. Run PROG on every item given by stdin
  3104. -p Ask user whether to run each command
  3105. -r Don't run command if input is empty
  3106. -0 Input is separated by NUL characters
  3107. -a FILE Read from FILE instead of stdin
  3108. -t Print the command on stderr before execution
  3109. -e[STR] STR stops input processing
  3110. -n N Pass no more than N args to PROG
  3111. -s N Pass command line of no more than N bytes
  3112. -I STR Replace STR within PROG ARGS with input line
  3113. -P N Run up to N PROGs in parallel
  3114. -x Exit if size is exceeded
  3115. =item B<xxd>
  3116. xxd [OPTIONS] [FILE]
  3117. Hex dump FILE (or stdin)
  3118. -g N Bytes per group
  3119. -c N Bytes per line
  3120. -p Show only hex bytes, assumes -c30
  3121. -l LENGTH Show only first LENGTH bytes
  3122. -s OFFSET Skip OFFSET bytes
  3123. =item B<xz>
  3124. xz -d [-cfk] [FILE]...
  3125. Decompress FILE (or stdin)
  3126. -d Decompress
  3127. -c Write to stdout
  3128. -f Force
  3129. -k Keep input files
  3130. =item B<xzcat>
  3131. xzcat [FILE]...
  3132. Decompress to stdout
  3133. =item B<yes>
  3134. yes [STRING]
  3135. Repeatedly output a line with STRING, or 'y'
  3136. =item B<zcat>
  3137. zcat [FILE]...
  3138. Decompress to stdout
  3139. =item B<zcip>
  3140. zcip [OPTIONS] IFACE SCRIPT
  3141. Manage a ZeroConf IPv4 link-local address
  3142. -f Run in foreground
  3143. -q Quit after obtaining address
  3144. -r 169.254.x.x Request this address first
  3145. -l x.x.0.0 Use this range instead of 169.254
  3146. -v Verbose
  3147. $LOGGING=none Suppress logging
  3148. $LOGGING=syslog Log to syslog
  3149. With no -q, runs continuously monitoring for ARP conflicts,
  3150. exits only on I/O errors (link down etc)
  3151. =back
  3152. =head1 LIBC NSS
  3153. GNU Libc (glibc) uses the Name Service Switch (NSS) to configure the behavior
  3154. of the C library for the local environment, and to configure how it reads
  3155. system data, such as passwords and group information. This is implemented
  3156. using an /etc/nsswitch.conf configuration file, and using one or more of the
  3157. /lib/libnss_* libraries. BusyBox tries to avoid using any libc calls that make
  3158. use of NSS. Some applets however, such as login and su, will use libc functions
  3159. that require NSS.
  3160. If you enable CONFIG_USE_BB_PWD_GRP, BusyBox will use internal functions to
  3161. directly access the /etc/passwd, /etc/group, and /etc/shadow files without
  3162. using NSS. This may allow you to run your system without the need for
  3163. installing any of the NSS configuration files and libraries.
  3164. When used with glibc, the BusyBox 'networking' applets will similarly require
  3165. that you install at least some of the glibc NSS stuff (in particular,
  3166. /etc/nsswitch.conf, /lib/libnss_dns*, /lib/libnss_files*, and /lib/libresolv*).
  3167. Shameless Plug: As an alternative, one could use a C library such as uClibc. In
  3168. addition to making your system significantly smaller, uClibc does not require the
  3169. use of any NSS support files or libraries.
  3170. =head1 MAINTAINER
  3171. Denis Vlasenko <vda.linux@googlemail.com>
  3172. =head1 AUTHORS
  3173. The following people have contributed code to BusyBox whether they know it or
  3174. not. If you have written code included in BusyBox, you should probably be
  3175. listed here so you can obtain your bit of eternal glory. If you should be
  3176. listed here, or the description of what you have done needs more detail, or is
  3177. incorrect, please send in an update.
  3178. =for html <br>
  3179. Emanuele Aina <emanuele.aina@tiscali.it>
  3180. run-parts
  3181. =for html <br>
  3182. Erik Andersen <andersen@codepoet.org>
  3183. Tons of new stuff, major rewrite of most of the
  3184. core apps, tons of new apps as noted in header files.
  3185. Lots of tedious effort writing these boring docs that
  3186. nobody is going to actually read.
  3187. =for html <br>
  3188. Laurence Anderson <l.d.anderson@warwick.ac.uk>
  3189. rpm2cpio, unzip, get_header_cpio, read_gz interface, rpm
  3190. =for html <br>
  3191. Jeff Angielski <jeff@theptrgroup.com>
  3192. ftpput, ftpget
  3193. =for html <br>
  3194. Edward Betts <edward@debian.org>
  3195. expr, hostid, logname, whoami
  3196. =for html <br>
  3197. John Beppu <beppu@codepoet.org>
  3198. du, nslookup, sort
  3199. =for html <br>
  3200. Brian Candler <B.Candler@pobox.com>
  3201. tiny-ls(ls)
  3202. =for html <br>
  3203. Randolph Chung <tausq@debian.org>
  3204. fbset, ping, hostname
  3205. =for html <br>
  3206. Dave Cinege <dcinege@psychosis.com>
  3207. more(v2), makedevs, dutmp, modularization, auto links file,
  3208. various fixes, Linux Router Project maintenance
  3209. =for html <br>
  3210. Jordan Crouse <jordan@cosmicpenguin.net>
  3211. ipcalc
  3212. =for html <br>
  3213. Magnus Damm <damm@opensource.se>
  3214. tftp client insmod powerpc support
  3215. =for html <br>
  3216. Larry Doolittle <ldoolitt@recycle.lbl.gov>
  3217. pristine source directory compilation, lots of patches and fixes.
  3218. =for html <br>
  3219. Glenn Engel <glenne@engel.org>
  3220. httpd
  3221. =for html <br>
  3222. Gennady Feldman <gfeldman@gena01.com>
  3223. Sysklogd (single threaded syslogd, IPC Circular buffer support,
  3224. logread), various fixes.
  3225. =for html <br>
  3226. Karl M. Hegbloom <karlheg@debian.org>
  3227. cp_mv.c, the test suite, various fixes to utility.c, &c.
  3228. =for html <br>
  3229. Daniel Jacobowitz <dan@debian.org>
  3230. mktemp.c
  3231. =for html <br>
  3232. Matt Kraai <kraai@alumni.cmu.edu>
  3233. documentation, bugfixes, test suite
  3234. =for html <br>
  3235. Stephan Linz <linz@li-pro.net>
  3236. ipcalc, Red Hat equivalence
  3237. =for html <br>
  3238. John Lombardo <john@deltanet.com>
  3239. tr
  3240. =for html <br>
  3241. Glenn McGrath <bug1@iinet.net.au>
  3242. Common unarchiving code and unarchiving applets, ifupdown, ftpgetput,
  3243. nameif, sed, patch, fold, install, uudecode.
  3244. Various bugfixes, review and apply numerous patches.
  3245. =for html <br>
  3246. Manuel Novoa III <mjn3@codepoet.org>
  3247. cat, head, mkfifo, mknod, rmdir, sleep, tee, tty, uniq, usleep, wc, yes,
  3248. mesg, vconfig, make_directory, parse_mode, dirname, mode_string,
  3249. get_last_path_component, simplify_path, and a number trivial libbb routines
  3250. also bug fixes, partial rewrites, and size optimizations in
  3251. ash, basename, cal, cmp, cp, df, du, echo, env, ln, logname, md5sum, mkdir,
  3252. mv, realpath, rm, sort, tail, touch, uname, watch, arith, human_readable,
  3253. interface, dutmp, ifconfig, route
  3254. =for html <br>
  3255. Vladimir Oleynik <dzo@simtreas.ru>
  3256. cmdedit; xargs(current), httpd(current);
  3257. ports: ash, crond, fdisk, inetd, stty, traceroute, top;
  3258. locale, various fixes
  3259. and irreconcilable critic of everything not perfect.
  3260. =for html <br>
  3261. Bruce Perens <bruce@pixar.com>
  3262. Original author of BusyBox in 1995, 1996. Some of his code can
  3263. still be found hiding here and there...
  3264. =for html <br>
  3265. Tim Riker <Tim@Rikers.org>
  3266. bug fixes, member of fan club
  3267. =for html <br>
  3268. Kent Robotti <robotti@metconnect.com>
  3269. reset, tons and tons of bug reports and patches.
  3270. =for html <br>
  3271. Chip Rosenthal <chip@unicom.com>, <crosenth@covad.com>
  3272. wget - Contributed by permission of Covad Communications
  3273. =for html <br>
  3274. Pavel Roskin <proski@gnu.org>
  3275. Lots of bugs fixes and patches.
  3276. =for html <br>
  3277. Gyepi Sam <gyepi@praxis-sw.com>
  3278. Remote logging feature for syslogd
  3279. =for html <br>
  3280. Linus Torvalds <torvalds@transmeta.com>
  3281. mkswap, fsck.minix, mkfs.minix
  3282. =for html <br>
  3283. Mark Whitley <markw@codepoet.org>
  3284. grep, sed, cut, xargs(previous),
  3285. style-guide, new-applet-HOWTO, bug fixes, etc.
  3286. =for html <br>
  3287. Charles P. Wright <cpwright@villagenet.com>
  3288. gzip, mini-netcat(nc)
  3289. =for html <br>
  3290. Enrique Zanardi <ezanardi@ull.es>
  3291. tarcat (since removed), loadkmap, various fixes, Debian maintenance
  3292. =for html <br>
  3293. Tito Ragusa <farmatito@tiscali.it>
  3294. devfsd and size optimizations in strings, openvt and deallocvt.
  3295. =for html <br>
  3296. Paul Fox <pgf@foxharp.boston.ma.us>
  3297. vi editing mode for ash, various other patches/fixes
  3298. =for html <br>
  3299. Roberto A. Foglietta <me@roberto.foglietta.name>
  3300. port: dnsd
  3301. =for html <br>
  3302. Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  3303. misc
  3304. =for html <br>
  3305. Mike Frysinger <vapier@gentoo.org>
  3306. initial e2fsprogs, printenv, setarch, sum, misc
  3307. =for html <br>
  3308. Jie Zhang <jie.zhang@analog.com>
  3309. fixed two bugs in msh and hush (exitcode of killed processes)
  3310. =cut