busybox.1 162 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195
  1. .\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .nr rF 0
  58. .if \n(.g .if rF .nr rF 1
  59. .if (\n(rF:(\n(.g==0)) \{\
  60. . if \nF \{\
  61. . de IX
  62. . tm Index:\\$1\t\\n%\t"\\$2"
  63. ..
  64. . if !\nF==2 \{\
  65. . nr % 0
  66. . nr F 2
  67. . \}
  68. . \}
  69. .\}
  70. .rr rF
  71. .\"
  72. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  73. .\" Fear. Run. Save yourself. No user-serviceable parts.
  74. . \" fudge factors for nroff and troff
  75. .if n \{\
  76. . ds #H 0
  77. . ds #V .8m
  78. . ds #F .3m
  79. . ds #[ \f1
  80. . ds #] \fP
  81. .\}
  82. .if t \{\
  83. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  84. . ds #V .6m
  85. . ds #F 0
  86. . ds #[ \&
  87. . ds #] \&
  88. .\}
  89. . \" simple accents for nroff and troff
  90. .if n \{\
  91. . ds ' \&
  92. . ds ` \&
  93. . ds ^ \&
  94. . ds , \&
  95. . ds ~ ~
  96. . ds /
  97. .\}
  98. .if t \{\
  99. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  100. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  101. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  102. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  103. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  104. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  105. .\}
  106. . \" troff and (daisy-wheel) nroff accents
  107. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  108. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  109. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  110. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  111. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  112. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  113. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  114. .ds ae a\h'-(\w'a'u*4/10)'e
  115. .ds Ae A\h'-(\w'A'u*4/10)'E
  116. . \" corrections for vroff
  117. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  118. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  119. . \" for low resolution devices (crt and lpr)
  120. .if \n(.H>23 .if \n(.V>19 \
  121. \{\
  122. . ds : e
  123. . ds 8 ss
  124. . ds o a
  125. . ds d- d\h'-1'\(ga
  126. . ds D- D\h'-1'\(hy
  127. . ds th \o'bp'
  128. . ds Th \o'LP'
  129. . ds ae ae
  130. . ds Ae AE
  131. .\}
  132. .rm #[ #] #H #V #F C
  133. .\" ========================================================================
  134. .\"
  135. .IX Title "BUSYBOX 1"
  136. .TH BUSYBOX 1 "2022-11-22" "version 1.28.1" "busybox"
  137. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  138. .\" way too many mistakes in technical documents.
  139. .if n .ad l
  140. .nh
  141. .SH "NAME"
  142. BusyBox \- The Swiss Army Knife of Embedded Linux
  143. .SH "SYNTAX"
  144. .IX Header "SYNTAX"
  145. .Vb 1
  146. \& busybox <applet> [arguments...] # or
  147. \&
  148. \& <applet> [arguments...] # if symlinked
  149. .Ve
  150. .SH "DESCRIPTION"
  151. .IX Header "DESCRIPTION"
  152. BusyBox combines tiny versions of many common \s-1UNIX\s0 utilities into a single
  153. small executable. It provides minimalist replacements for most of the utilities
  154. you usually find in \s-1GNU\s0 coreutils, util-linux, etc. The utilities in BusyBox
  155. generally have fewer options than their full-featured \s-1GNU\s0 cousins; however, the
  156. options that are included provide the expected functionality and behave very
  157. much like their \s-1GNU\s0 counterparts.
  158. .PP
  159. BusyBox has been written with size-optimization and limited resources in mind.
  160. It is also extremely modular so you can easily include or exclude commands (or
  161. features) at compile time. This makes it easy to customize your embedded
  162. systems. To create a working system, just add /dev, /etc, and a Linux kernel.
  163. BusyBox provides a fairly complete \s-1POSIX\s0 environment for any small or embedded
  164. system.
  165. .PP
  166. BusyBox is extremely configurable. This allows you to include only the
  167. components you need, thereby reducing binary size. Run 'make config' or 'make
  168. menuconfig' to select the functionality that you wish to enable. Then run
  169. \&'make' to compile BusyBox using your configuration.
  170. .PP
  171. After the compile has finished, you should use 'make install' to install
  172. BusyBox. This will install the 'bin/busybox' binary, in the target directory
  173. specified by \s-1CONFIG_PREFIX. CONFIG_PREFIX\s0 can be set when configuring BusyBox,
  174. or you can specify an alternative location at install time (i.e., with a
  175. command line like 'make CONFIG_PREFIX=/tmp/foo install'). If you enabled
  176. any applet installation scheme (either as symlinks or hardlinks), these will
  177. also be installed in the location pointed to by \s-1CONFIG_PREFIX.\s0
  178. .SH "USAGE"
  179. .IX Header "USAGE"
  180. BusyBox is a multi-call binary. A multi-call binary is an executable program
  181. that performs the same job as more than one utility program. That means there
  182. is just a single BusyBox binary, but that single binary acts like a large
  183. number of utilities. This allows BusyBox to be smaller since all the built-in
  184. utility programs (we call them applets) can share code for many common
  185. operations.
  186. .PP
  187. You can also invoke BusyBox by issuing a command as an argument on the
  188. command line. For example, entering
  189. .PP
  190. .Vb 1
  191. \& /bin/busybox ls
  192. .Ve
  193. .PP
  194. will also cause BusyBox to behave as 'ls'.
  195. .PP
  196. Of course, adding '/bin/busybox' into every command would be painful. So most
  197. people will invoke BusyBox using links to the BusyBox binary.
  198. .PP
  199. For example, entering
  200. .PP
  201. .Vb 2
  202. \& ln \-s /bin/busybox ls
  203. \& ./ls
  204. .Ve
  205. .PP
  206. will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled
  207. into BusyBox). Generally speaking, you should never need to make all these
  208. links yourself, as the BusyBox build system will do this for you when you run
  209. the 'make install' command.
  210. .PP
  211. If you invoke BusyBox with no arguments, it will provide you with a list of the
  212. applets that have been compiled into your BusyBox binary.
  213. .SH "COMMON OPTIONS"
  214. .IX Header "COMMON OPTIONS"
  215. Most BusyBox applets support the \fB\-\-help\fR argument to provide a terse runtime
  216. description of their behavior. If the \s-1CONFIG_FEATURE_VERBOSE_USAGE\s0 option has
  217. been enabled, more detailed usage information will also be available.
  218. .SH "COMMANDS"
  219. .IX Header "COMMANDS"
  220. Currently available applets include:
  221. .PP
  222. .Vb 10
  223. \& [, [[, acpid, add\-shell, addgroup, adduser, adjtimex, arch, arp,
  224. \& arping, ash, awk, base64, basename, beep, blkdiscard, blkid,
  225. \& blockdev, bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, chat,
  226. \& chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt,
  227. \& cksum, clear, cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw,
  228. \& cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod,
  229. \& devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname,
  230. \& dos2unix, dpkg, dpkg\-deb, du, dumpkmap, dumpleases, echo, ed, egrep,
  231. \& eject, env, envdir, envuidgid, ether\-wake, expand, expr, factor,
  232. \& fakeidentd, fallocate, false, fatattr, fbset, fbsplash, fdflush,
  233. \& fdformat, fdisk, fgconsole, fgrep, find, findfs, flock, fold, free,
  234. \& freeramdisk, fsck, fsck.minix, fsfreeze, fstrim, fsync, ftpd,
  235. \& ftpget, ftpput, fuser, getopt, getty, grep, groups, gunzip, gzip,
  236. \& halt, hd, hdparm, head, hexdump, hexedit, hostid, hostname, httpd,
  237. \& hush, hwclock, i2cdetect, i2cdump, i2cget, i2cset, id, ifconfig,
  238. \& ifdown, ifenslave, ifplugd, ifup, inetd, init, insmod, install,
  239. \& ionice, iostat, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, ipneigh,
  240. \& iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd,
  241. \& last, less, link, linux32, linux64, linuxrc, ln, loadfont, loadkmap,
  242. \& logger, login, logname, logread, losetup, lpd, lpq, lpr, ls, lsattr,
  243. \& lsmod, lsof, lspci, lsscsi, lsusb, lzcat, lzma, lzop, makedevs,
  244. \& makemime, man, md5sum, mdev, mesg, microcom, mkdir, mkdosfs, mke2fs,
  245. \& mkfifo, mkfs.ext2, mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap,
  246. \& mktemp, modinfo, modprobe, more, mount, mountpoint, mpstat, mt, mv,
  247. \& nameif, nanddump, nandwrite, nbd\-client, nc, netstat, nice, nl,
  248. \& nmeter, nohup, nproc, nsenter, nslookup, ntpd, nuke, od, openvt,
  249. \& partprobe, passwd, paste, patch, pgrep, pidof, ping, ping6,
  250. \& pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff,
  251. \& powertop, printenv, printf, ps, pscan, pstree, pwd, pwdx,
  252. \& raidautorun, rdate, rdev, readahead, readlink, readprofile,
  253. \& realpath, reboot, reformime, remove\-shell, renice, reset, resize,
  254. \& resume, rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake,
  255. \& run\-init, run\-parts, runlevel, runsv, runsvdir, rx, script,
  256. \& scriptreplay, sed, sendmail, seq, setarch, setconsole, setfattr,
  257. \& setfont, setkeycodes, setlogcons, setpriv, setserial, setsid,
  258. \& setuidgid, sh, sha1sum, sha256sum, sha3sum, sha512sum, showkey,
  259. \& shred, shuf, slattach, sleep, smemcap, softlimit, sort, split,
  260. \& ssl_client, start\-stop\-daemon, stat, strings, stty, su, sulogin,
  261. \& sum, sv, svc, svlogd, swapoff, swapon, switch_root, sync, sysctl,
  262. \& syslogd, tac, tail, tar, taskset, tcpsvd, tee, telnet, telnetd,
  263. \& test, tftp, tftpd, time, timeout, top, touch, tr, traceroute,
  264. \& traceroute6, true, truncate, tty, ttysize, tunctl, ubiattach,
  265. \& ubidetach, ubimkvol, ubirename, ubirmvol, ubirsvol, ubiupdatevol,
  266. \& udhcpc, udhcpd, udpsvd, uevent, umount, uname, unexpand, uniq,
  267. \& unix2dos, unlink, unlzma, unshare, unxz, unzip, uptime, users,
  268. \& usleep, uudecode, uuencode, vconfig, vi, vlock, volname, w, wall,
  269. \& watch, watchdog, wc, wget, which, who, whoami, whois, xargs, xxd,
  270. \& xz, xzcat, yes, zcat, zcip
  271. .Ve
  272. .SH "COMMAND DESCRIPTIONS"
  273. .IX Header "COMMAND DESCRIPTIONS"
  274. .IP "\fBacpid\fR" 4
  275. .IX Item "acpid"
  276. acpid [\-df] [\-c \s-1CONFDIR\s0] [\-l \s-1LOGFILE\s0] [\-a \s-1ACTIONFILE\s0] [\-M \s-1MAPFILE\s0] [\-e \s-1PROC_EVENT_FILE\s0] [\-p \s-1PIDFILE\s0]
  277. .Sp
  278. Listen to \s-1ACPI\s0 events and spawn specific helpers on event arrival
  279. .Sp
  280. .Vb 8
  281. \& \-d Log to stderr, not log file (implies \-f)
  282. \& \-f Run in foreground
  283. \& \-c DIR Config directory [/etc/acpi]
  284. \& \-e FILE /proc event file [/proc/acpi/event]
  285. \& \-l FILE Log file [/var/log/acpid.log]
  286. \& \-p FILE Pid file [/var/run/acpid.pid]
  287. \& \-a FILE Action file [/etc/acpid.conf]
  288. \& \-M FILE Map file [/etc/acpi.map]
  289. .Ve
  290. .Sp
  291. Accept and ignore compatibility options \-g \-m \-s \-S \-v
  292. .IP "\fBadd-shell\fR" 4
  293. .IX Item "add-shell"
  294. add-shell \s-1SHELL...\s0
  295. .Sp
  296. Add SHELLs to /etc/shells
  297. .IP "\fBaddgroup\fR" 4
  298. .IX Item "addgroup"
  299. addgroup [\-g \s-1GID\s0] [\-S] [\s-1USER\s0] \s-1GROUP\s0
  300. .Sp
  301. Add a group or add a user to a group
  302. .Sp
  303. .Vb 2
  304. \& \-g GID Group id
  305. \& \-S Create a system group
  306. .Ve
  307. .IP "\fBadduser\fR" 4
  308. .IX Item "adduser"
  309. adduser [\s-1OPTIONS\s0] \s-1USER\s0 [\s-1GROUP\s0]
  310. .Sp
  311. Create new user, or add \s-1USER\s0 to \s-1GROUP\s0
  312. .Sp
  313. .Vb 9
  314. \& \-h DIR Home directory
  315. \& \-g GECOS GECOS field
  316. \& \-s SHELL Login shell
  317. \& \-G GRP Group
  318. \& \-S Create a system user
  319. \& \-D Don\*(Aqt assign a password
  320. \& \-H Don\*(Aqt create home directory
  321. \& \-u UID User id
  322. \& \-k SKEL Skeleton directory (/etc/skel)
  323. .Ve
  324. .IP "\fBadjtimex\fR" 4
  325. .IX Item "adjtimex"
  326. adjtimex [\-q] [\-o \s-1OFF\s0] [\-f \s-1FREQ\s0] [\-p \s-1TCONST\s0] [\-t \s-1TICK\s0]
  327. .Sp
  328. Read or set kernel time variables. See \fBadjtimex\fR\|(2)
  329. .Sp
  330. .Vb 6
  331. \& \-q Quiet
  332. \& \-o OFF Time offset, microseconds
  333. \& \-f FREQ Frequency adjust, integer kernel units (65536 is 1ppm)
  334. \& \-t TICK Microseconds per tick, usually 10000
  335. \& (positive \-t or \-f values make clock run faster)
  336. \& \-p TCONST
  337. .Ve
  338. .IP "\fBarch\fR" 4
  339. .IX Item "arch"
  340. arch
  341. .Sp
  342. Print system architecture
  343. .IP "\fBarp\fR" 4
  344. .IX Item "arp"
  345. arp
  346. [\-vn] [\-H \s-1HWTYPE\s0] [\-i \s-1IF\s0] \-a [\s-1HOSTNAME\s0]
  347. [\-v] [\-i \s-1IF\s0] \-d \s-1HOSTNAME\s0 [pub]
  348. [\-v] [\-H \s-1HWTYPE\s0] [\-i \s-1IF\s0] \-s \s-1HOSTNAME HWADDR\s0 [temp]
  349. [\-v] [\-H \s-1HWTYPE\s0] [\-i \s-1IF\s0] \-s \s-1HOSTNAME HWADDR\s0 [netmask \s-1MASK\s0] pub
  350. [\-v] [\-H \s-1HWTYPE\s0] [\-i \s-1IF\s0] \-Ds \s-1HOSTNAME IFACE\s0 [netmask \s-1MASK\s0] pub
  351. .Sp
  352. Manipulate \s-1ARP\s0 cache
  353. .Sp
  354. .Vb 9
  355. \& \-a Display (all) hosts
  356. \& \-d Delete ARP entry
  357. \& \-s Set new entry
  358. \& \-v Verbose
  359. \& \-n Don\*(Aqt resolve names
  360. \& \-i IF Network interface
  361. \& \-D Read HWADDR from IFACE
  362. \& \-A,\-p AF Protocol family
  363. \& \-H HWTYPE Hardware address type
  364. .Ve
  365. .IP "\fBarping\fR" 4
  366. .IX Item "arping"
  367. arping [\-fqbDUA] [\-c \s-1CNT\s0] [\-w \s-1TIMEOUT\s0] [\-I \s-1IFACE\s0] [\-s \s-1SRC_IP\s0] \s-1DST_IP\s0
  368. .Sp
  369. Send \s-1ARP\s0 requests/replies
  370. .Sp
  371. .Vb 11
  372. \& \-f Quit on first ARP reply
  373. \& \-q Quiet
  374. \& \-b Keep broadcasting, don\*(Aqt go unicast
  375. \& \-D Exit with 1 if DST_IP replies
  376. \& \-U Unsolicited ARP mode, update your neighbors
  377. \& \-A ARP answer mode, update your neighbors
  378. \& \-c N Stop after sending N ARP requests
  379. \& \-w TIMEOUT Seconds to wait for ARP reply
  380. \& \-I IFACE Interface to use (default eth0)
  381. \& \-s SRC_IP Sender IP address
  382. \& DST_IP Target IP address
  383. .Ve
  384. .IP "\fBash\fR" 4
  385. .IX Item "ash"
  386. ash [\-/+OPTIONS] [\-/+o \s-1OPT\s0]... [\-c '\s-1SCRIPT\s0' [\s-1ARG0\s0 [\s-1ARGS\s0]] / \s-1FILE\s0 [\s-1ARGS\s0]]
  387. .Sp
  388. Unix shell interpreter
  389. .IP "\fBawk\fR" 4
  390. .IX Item "awk"
  391. awk [\s-1OPTIONS\s0] [\s-1AWK_PROGRAM\s0] [\s-1FILE\s0]...
  392. .Sp
  393. .Vb 4
  394. \& \-v VAR=VAL Set variable
  395. \& \-F SEP Use SEP as field separator
  396. \& \-f FILE Read program from FILE
  397. \& \-e AWK_PROGRAM
  398. .Ve
  399. .IP "\fBbase64\fR" 4
  400. .IX Item "base64"
  401. base64 [\-d] [\s-1FILE\s0]
  402. .Sp
  403. Base64 encode or decode \s-1FILE\s0 to standard output
  404. \-d Decode data
  405. .IP "\fBbasename\fR" 4
  406. .IX Item "basename"
  407. basename \s-1FILE\s0 [\s-1SUFFIX\s0]
  408. .Sp
  409. Strip directory path and .SUFFIX from \s-1FILE\s0
  410. .IP "\fBbeep\fR" 4
  411. .IX Item "beep"
  412. beep \-f \s-1FREQ\s0 \-l \s-1LEN\s0 \-d \s-1DELAY\s0 \-r \s-1COUNT\s0 \-n
  413. .Sp
  414. .Vb 5
  415. \& \-f Frequency in Hz
  416. \& \-l Length in ms
  417. \& \-d Delay in ms
  418. \& \-r Repetitions
  419. \& \-n Start new tone
  420. .Ve
  421. .IP "\fBblkdiscard\fR" 4
  422. .IX Item "blkdiscard"
  423. blkdiscard [\-o \s-1OFS\s0] [\-l \s-1LEN\s0] [\-s] \s-1DEVICE\s0
  424. .Sp
  425. Discard sectors on \s-1DEVICE\s0
  426. .Sp
  427. .Vb 3
  428. \& \-o OFS Byte offset into device
  429. \& \-l LEN Number of bytes to discard
  430. \& \-s Perform a secure discard
  431. .Ve
  432. .IP "\fBblkid\fR" 4
  433. .IX Item "blkid"
  434. blkid [\s-1BLOCKDEV\s0]...
  435. .Sp
  436. Print UUIDs of all filesystems
  437. .IP "\fBblockdev\fR" 4
  438. .IX Item "blockdev"
  439. blockdev \s-1OPTION BLOCKDEV\s0
  440. .Sp
  441. .Vb 10
  442. \& \-\-setro Set ro
  443. \& \-\-setrw Set rw
  444. \& \-\-getro Get ro
  445. \& \-\-getss Get sector size
  446. \& \-\-getbsz Get block size
  447. \& \-\-setbsz BYTES Set block size
  448. \& \-\-getsz Get device size in 512\-byte sectors
  449. \& \-\-getsize64 Get device size in bytes
  450. \& \-\-flushbufs Flush buffers
  451. \& \-\-rereadpt Reread partition table
  452. .Ve
  453. .IP "\fBbootchartd\fR" 4
  454. .IX Item "bootchartd"
  455. bootchartd start [\s-1PROG ARGS\s0]|stop|init
  456. .Sp
  457. Create /var/log/bootchart.tgz with boot chart data
  458. .Sp
  459. start: start background logging; with \s-1PROG,\s0 run \s-1PROG,\s0 then kill logging with \s-1USR1\s0
  460. stop: send \s-1USR1\s0 to all bootchartd processes
  461. init: start background logging; stop when getty/xdm is seen (for init scripts)
  462. Under \s-1PID 1:\s0 as init, then exec \f(CW$bootchart_init\fR, /init, /sbin/init
  463. .IP "\fBbrctl\fR" 4
  464. .IX Item "brctl"
  465. brctl \s-1COMMAND\s0 [\s-1BRIDGE\s0 [\s-1INTERFACE\s0]]
  466. .Sp
  467. Manage ethernet bridges
  468. .Sp
  469. Commands:
  470. .Sp
  471. .Vb 10
  472. \& show Show a list of bridges
  473. \& addbr BRIDGE Create BRIDGE
  474. \& delbr BRIDGE Delete BRIDGE
  475. \& addif BRIDGE IFACE Add IFACE to BRIDGE
  476. \& delif BRIDGE IFACE Delete IFACE from BRIDGE
  477. \& setageing BRIDGE TIME Set ageing time
  478. \& setfd BRIDGE TIME Set bridge forward delay
  479. \& sethello BRIDGE TIME Set hello time
  480. \& setmaxage BRIDGE TIME Set max message age
  481. \& setpathcost BRIDGE COST Set path cost
  482. \& setportprio BRIDGE PRIO Set port priority
  483. \& setbridgeprio BRIDGE PRIO Set bridge priority
  484. \& stp BRIDGE [1/yes/on|0/no/off] STP on/off
  485. .Ve
  486. .IP "\fBbunzip2\fR" 4
  487. .IX Item "bunzip2"
  488. bunzip2 [\-cfk] [\s-1FILE\s0]...
  489. .Sp
  490. Decompress FILEs (or stdin)
  491. .Sp
  492. .Vb 3
  493. \& \-c Write to stdout
  494. \& \-f Force
  495. \& \-k Keep input files
  496. .Ve
  497. .IP "\fBbzcat\fR" 4
  498. .IX Item "bzcat"
  499. bzcat [\s-1FILE\s0]...
  500. .Sp
  501. Decompress to stdout
  502. .IP "\fBbzip2\fR" 4
  503. .IX Item "bzip2"
  504. bzip2 [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  505. .Sp
  506. Compress FILEs (or stdin) with bzip2 algorithm
  507. .Sp
  508. .Vb 6
  509. \& \-1..9 Compression level
  510. \& \-d Decompress
  511. \& \-t Test file integrity
  512. \& \-c Write to stdout
  513. \& \-f Force
  514. \& \-k Keep input files
  515. .Ve
  516. .IP "\fBcal\fR" 4
  517. .IX Item "cal"
  518. cal [\-jy] [[\s-1MONTH\s0] \s-1YEAR\s0]
  519. .Sp
  520. Display a calendar
  521. .Sp
  522. .Vb 2
  523. \& \-j Use julian dates
  524. \& \-y Display the entire year
  525. .Ve
  526. .IP "\fBcat\fR" 4
  527. .IX Item "cat"
  528. cat [\-nbvteA] [\s-1FILE\s0]...
  529. .Sp
  530. Print FILEs to stdout
  531. .Sp
  532. .Vb 6
  533. \& \-n Number output lines
  534. \& \-b Number nonempty lines
  535. \& \-v Show nonprinting characters as ^x or M\-x
  536. \& \-t ...and tabs as ^I
  537. \& \-e ...and end lines with $
  538. \& \-A Same as \-vte
  539. .Ve
  540. .IP "\fBchat\fR" 4
  541. .IX Item "chat"
  542. chat \s-1EXPECT\s0 [\s-1SEND\s0 [\s-1EXPECT\s0 [\s-1SEND...\s0]]]
  543. .Sp
  544. Useful for interacting with a modem connected to stdin/stdout.
  545. A script consists of \*(L"expect-send\*(R" argument pairs.
  546. Example:
  547. .Sp
  548. chat '' \s-1ATZ OK ATD123456 CONNECT\s0 '' ogin: pppuser word: ppppass '~'
  549. .IP "\fBchattr\fR" 4
  550. .IX Item "chattr"
  551. chattr [\-R] [\-v \s-1VERSION\s0] [\-+=AacDdijsStTu] \s-1FILE...\s0
  552. .Sp
  553. Change ext2 file attributes
  554. .Sp
  555. .Vb 3
  556. \& \-R Recurse
  557. \& \-v VER Set version/generation number
  558. \&Modifiers:
  559. \&
  560. \& \-,+,= Remove/add/set attributes
  561. \&Attributes:
  562. \&
  563. \& A Don\*(Aqt track atime
  564. \& a Append mode only
  565. \& c Enable compress
  566. \& D Write dir contents synchronously
  567. \& d Don\*(Aqt backup with dump
  568. \& i Cannot be modified (immutable)
  569. \& j Write all data to journal first
  570. \& s Zero disk storage when deleted
  571. \& S Write synchronously
  572. \& t Disable tail\-merging of partial blocks with other files
  573. \& u Allow file to be undeleted
  574. .Ve
  575. .IP "\fBchgrp\fR" 4
  576. .IX Item "chgrp"
  577. chgrp [\-RhLHPcvf]... \s-1GROUP FILE...\s0
  578. .Sp
  579. Change the group membership of each \s-1FILE\s0 to \s-1GROUP\s0
  580. .Sp
  581. .Vb 8
  582. \& \-R Recurse
  583. \& \-h Affect symlinks instead of symlink targets
  584. \& \-L Traverse all symlinks to directories
  585. \& \-H Traverse symlinks on command line only
  586. \& \-P Don\*(Aqt traverse symlinks (default)
  587. \& \-c List changed files
  588. \& \-v Verbose
  589. \& \-f Hide errors
  590. .Ve
  591. .IP "\fBchmod\fR" 4
  592. .IX Item "chmod"
  593. chmod [\-Rcvf] MODE[,MODE]... \s-1FILE...\s0
  594. .Sp
  595. Each \s-1MODE\s0 is one or more of the letters ugoa, one of the
  596. symbols +\-= and one or more of the letters rwxst
  597. .Sp
  598. .Vb 4
  599. \& \-R Recurse
  600. \& \-c List changed files
  601. \& \-v List all files
  602. \& \-f Hide errors
  603. .Ve
  604. .IP "\fBchown\fR" 4
  605. .IX Item "chown"
  606. chown [\-RhLHPcvf]... USER[:[\s-1GRP\s0]] \s-1FILE...\s0
  607. .Sp
  608. Change the owner and/or group of each \s-1FILE\s0 to \s-1USER\s0 and/or \s-1GRP\s0
  609. .Sp
  610. .Vb 8
  611. \& \-R Recurse
  612. \& \-h Affect symlinks instead of symlink targets
  613. \& \-L Traverse all symlinks to directories
  614. \& \-H Traverse symlinks on command line only
  615. \& \-P Don\*(Aqt traverse symlinks (default)
  616. \& \-c List changed files
  617. \& \-v List all files
  618. \& \-f Hide errors
  619. .Ve
  620. .IP "\fBchpasswd\fR" 4
  621. .IX Item "chpasswd"
  622. chpasswd [\-\-md5|\-\-encrypted|\-\-crypt\-method]
  623. .Sp
  624. Read user:password from stdin and update /etc/passwd
  625. .Sp
  626. .Vb 3
  627. \& \-e,\-\-encrypted Supplied passwords are in encrypted form
  628. \& \-m,\-\-md5 Eencrypt using md5, not des
  629. \& \-c,\-\-crypt\-method ALG des,md5,sha256/512 (default des)
  630. .Ve
  631. .IP "\fBchpst\fR" 4
  632. .IX Item "chpst"
  633. chpst [\-vP012] [\-u USER[:GRP]] [\-U USER[:GRP]] [\-e \s-1DIR\s0]
  634. [\-/ \s-1DIR\s0] [\-n \s-1NICE\s0] [\-m \s-1BYTES\s0] [\-d \s-1BYTES\s0] [\-o N]
  635. [\-p N] [\-f \s-1BYTES\s0] [\-c \s-1BYTES\s0] \s-1PROG ARGS\s0
  636. .Sp
  637. Change the process state, run \s-1PROG\s0
  638. .Sp
  639. .Vb 10
  640. \& \-u USER[:GRP] Set uid and gid
  641. \& \-U USER[:GRP] Set $UID and $GID in environment
  642. \& \-e DIR Set environment variables as specified by files
  643. \& in DIR: file=1st_line_of_file
  644. \& \-/ DIR Chroot to DIR
  645. \& \-n NICE Add NICE to nice value
  646. \& \-m BYTES Same as \-d BYTES \-s BYTES \-l BYTES
  647. \& \-d BYTES Limit data segment
  648. \& \-o N Limit number of open files per process
  649. \& \-p N Limit number of processes per uid
  650. \& \-f BYTES Limit output file sizes
  651. \& \-c BYTES Limit core file size
  652. \& \-v Verbose
  653. \& \-P Create new process group
  654. \& \-0 Close stdin
  655. \& \-1 Close stdout
  656. \& \-2 Close stderr
  657. .Ve
  658. .IP "\fBchroot\fR" 4
  659. .IX Item "chroot"
  660. chroot \s-1NEWROOT\s0 [\s-1PROG ARGS\s0]
  661. .Sp
  662. Run \s-1PROG\s0 with root directory set to \s-1NEWROOT\s0
  663. .IP "\fBchrt\fR" 4
  664. .IX Item "chrt"
  665. chrt [\-prfom] [\s-1PRIO\s0] [\s-1PID\s0 | \s-1PROG ARGS\s0]
  666. .Sp
  667. Change scheduling priority and class for a process
  668. .Sp
  669. .Vb 5
  670. \& \-p Operate on PID
  671. \& \-r Set SCHED_RR class
  672. \& \-f Set SCHED_FIFO class
  673. \& \-o Set SCHED_OTHER class
  674. \& \-m Show min/max priorities
  675. .Ve
  676. .IP "\fBchvt\fR" 4
  677. .IX Item "chvt"
  678. chvt N
  679. .Sp
  680. Change the foreground virtual terminal to /dev/ttyN
  681. .IP "\fBcksum\fR" 4
  682. .IX Item "cksum"
  683. cksum \s-1FILE...\s0
  684. .Sp
  685. Calculate the \s-1CRC32\s0 checksums of FILEs
  686. .IP "\fBclear\fR" 4
  687. .IX Item "clear"
  688. clear
  689. .Sp
  690. Clear screen
  691. .IP "\fBcmp\fR" 4
  692. .IX Item "cmp"
  693. cmp [\-l] [\-s] \s-1FILE1\s0 [\s-1FILE2\s0 [\s-1SKIP1\s0 [\s-1SKIP2\s0]]]
  694. .Sp
  695. Compare \s-1FILE1\s0 with \s-1FILE2\s0 (or stdin)
  696. .Sp
  697. .Vb 3
  698. \& \-l Write the byte numbers (decimal) and values (octal)
  699. \& for all differing bytes
  700. \& \-s Quiet
  701. .Ve
  702. .IP "\fBcomm\fR" 4
  703. .IX Item "comm"
  704. comm [\-123] \s-1FILE1 FILE2\s0
  705. .Sp
  706. Compare \s-1FILE1\s0 with \s-1FILE2\s0
  707. .Sp
  708. .Vb 3
  709. \& \-1 Suppress lines unique to FILE1
  710. \& \-2 Suppress lines unique to FILE2
  711. \& \-3 Suppress lines common to both files
  712. .Ve
  713. .IP "\fBconspy\fR" 4
  714. .IX Item "conspy"
  715. conspy [\-vcsndfFQ] [\-x \s-1COL\s0] [\-y \s-1LINE\s0] [\s-1CONSOLE_NO\s0]
  716. .Sp
  717. A text-mode \s-1VNC\s0 like program for Linux virtual consoles.
  718. To exit, quickly press \s-1ESC 3\s0 times.
  719. .Sp
  720. .Vb 10
  721. \& \-v Don\*(Aqt send keystrokes to the console
  722. \& \-c Create missing /dev/{tty,vcsa}N
  723. \& \-s Open a SHELL session
  724. \& \-n Black & white
  725. \& \-d Dump console to stdout
  726. \& \-f Follow cursor
  727. \& \-F Assume console is on a framebuffer device
  728. \& \-Q Disable exit on ESC\-ESC\-ESC
  729. \& \-x COL Starting column
  730. \& \-y LINE Starting line
  731. .Ve
  732. .IP "\fBcp\fR" 4
  733. .IX Item "cp"
  734. cp [\s-1OPTIONS\s0] \s-1SOURCE... DEST\s0
  735. .Sp
  736. Copy \s-1SOURCE\s0(s) to \s-1DEST\s0
  737. .Sp
  738. .Vb 11
  739. \& \-a Same as \-dpR
  740. \& \-R,\-r Recurse
  741. \& \-d,\-P Preserve symlinks (default if \-R)
  742. \& \-L Follow all symlinks
  743. \& \-H Follow symlinks on command line
  744. \& \-p Preserve file attributes if possible
  745. \& \-f Overwrite
  746. \& \-i Prompt before overwrite
  747. \& \-l,\-s Create (sym)links
  748. \& \-T Treat DEST as a normal file
  749. \& \-u Copy only newer files
  750. .Ve
  751. .IP "\fBcpio\fR" 4
  752. .IX Item "cpio"
  753. cpio [\-dmvu] [\-F \s-1FILE\s0] [\-R USER[:GRP]] [\-H newc] [\-tio] [\-p \s-1DIR\s0] [\s-1EXTR_FILE\s0]...
  754. .Sp
  755. Extract (\-i) or list (\-t) files from a cpio archive, or
  756. take file list from stdin and create an archive (\-o) or copy files (\-p)
  757. .Sp
  758. Main operation mode:
  759. .Sp
  760. .Vb 5
  761. \& \-t List
  762. \& \-i Extract EXTR_FILEs (or all)
  763. \& \-o Create (requires \-H newc)
  764. \& \-p DIR Copy files to DIR
  765. \&Options:
  766. \&
  767. \& \-d Make leading directories
  768. \& \-m Preserve mtime
  769. \& \-v Verbose
  770. \& \-u Overwrite
  771. \& \-F FILE Input (\-t,\-i,\-p) or output (\-o) file
  772. \& \-R USER[:GRP] Set owner of created files
  773. \& \-H newc Archive format
  774. .Ve
  775. .IP "\fBcrond\fR" 4
  776. .IX Item "crond"
  777. crond \-fbS \-l N \-d N \-L \s-1LOGFILE\s0 \-c \s-1DIR\s0
  778. .Sp
  779. .Vb 7
  780. \& \-f Foreground
  781. \& \-b Background (default)
  782. \& \-S Log to syslog (default)
  783. \& \-l N Set log level. Most verbose 0, default 8
  784. \& \-d N Set log level, log to stderr
  785. \& \-L FILE Log to FILE
  786. \& \-c DIR Cron dir. Default:/var/spool/cron/crontabs
  787. .Ve
  788. .IP "\fBcrontab\fR" 4
  789. .IX Item "crontab"
  790. crontab [\-c \s-1DIR\s0] [\-u \s-1USER\s0] [\-ler]|[\s-1FILE\s0]
  791. .Sp
  792. .Vb 6
  793. \& \-c Crontab directory
  794. \& \-u User
  795. \& \-l List crontab
  796. \& \-e Edit crontab
  797. \& \-r Delete crontab
  798. \& FILE Replace crontab by FILE (\*(Aq\-\*(Aq: stdin)
  799. .Ve
  800. .IP "\fBcryptpw\fR" 4
  801. .IX Item "cryptpw"
  802. cryptpw [\s-1OPTIONS\s0] [\s-1PASSWORD\s0] [\s-1SALT\s0]
  803. .Sp
  804. Print \fBcrypt\fR\|(3) hashed \s-1PASSWORD\s0
  805. .Sp
  806. .Vb 3
  807. \& \-P,\-\-password\-fd N Read password from fd N
  808. \& \-m,\-\-method TYPE des,md5,sha256/512 (default des)
  809. \& \-S,\-\-salt SALT
  810. .Ve
  811. .IP "\fBcttyhack\fR" 4
  812. .IX Item "cttyhack"
  813. cttyhack [\s-1PROG ARGS\s0]
  814. .Sp
  815. Give \s-1PROG\s0 a controlling tty if possible.
  816. Example for /etc/inittab (for busybox init):
  817. ::respawn:/bin/cttyhack /bin/sh
  818. Giving controlling tty to shell running with \s-1PID 1:\s0
  819. $ exec cttyhack sh
  820. Starting interactive shell from boot shell script:
  821. .Sp
  822. .Vb 1
  823. \& setsid cttyhack sh
  824. .Ve
  825. .IP "\fBcut\fR" 4
  826. .IX Item "cut"
  827. cut [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  828. .Sp
  829. Print selected fields from each input \s-1FILE\s0 to stdout
  830. .Sp
  831. .Vb 6
  832. \& \-b LIST Output only bytes from LIST
  833. \& \-c LIST Output only characters from LIST
  834. \& \-d CHAR Use CHAR instead of tab as the field delimiter
  835. \& \-s Output only the lines containing delimiter
  836. \& \-f N Print only these fields
  837. \& \-n Ignored
  838. .Ve
  839. .IP "\fBdate\fR" 4
  840. .IX Item "date"
  841. date [\s-1OPTIONS\s0] [+FMT] [\s-1TIME\s0]
  842. .Sp
  843. Display time (using +FMT), or set time
  844. .Sp
  845. .Vb 10
  846. \& [\-s,\-\-set] TIME Set time to TIME
  847. \& \-u,\-\-utc Work in UTC (don\*(Aqt convert to local time)
  848. \& \-R,\-\-rfc\-2822 Output RFC\-2822 compliant date string
  849. \& \-I[SPEC] Output ISO\-8601 compliant date string
  850. \& SPEC=\*(Aqdate\*(Aq (default) for date only,
  851. \& \*(Aqhours\*(Aq, \*(Aqminutes\*(Aq, or \*(Aqseconds\*(Aq for date and
  852. \& time to the indicated precision
  853. \& \-r,\-\-reference FILE Display last modification time of FILE
  854. \& \-d,\-\-date TIME Display TIME, not \*(Aqnow\*(Aq
  855. \& \-D FMT Use FMT for \-d TIME conversion
  856. .Ve
  857. .Sp
  858. Recognized \s-1TIME\s0 formats:
  859. .Sp
  860. .Vb 5
  861. \& hh:mm[:ss]
  862. \& [YYYY.]MM.DD\-hh:mm[:ss]
  863. \& YYYY\-MM\-DD hh:mm[:ss]
  864. \& [[[[[YY]YY]MM]DD]hh]mm[.ss]
  865. \& \*(Aqdate TIME\*(Aq form accepts MMDDhhmm[[YY]YY][.ss] instead
  866. .Ve
  867. .IP "\fBdc\fR" 4
  868. .IX Item "dc"
  869. dc \s-1EXPRESSION...\s0
  870. .Sp
  871. Tiny \s-1RPN\s0 calculator. Operations:
  872. +, add, \-, sub, *, mul, /, div, %, mod, **, exp, and, or, not, xor,
  873. p \- print top of the stack (without popping),
  874. f \- print entire stack,
  875. o \- pop the value and set output radix (must be 10, 16, 8 or 2).
  876. Examples: 'dc 2 2 add p' \-> 4, 'dc 8 8 mul 2 2 + / p' \-> 16
  877. .IP "\fBdd\fR" 4
  878. .IX Item "dd"
  879. dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N]
  880. [seek=N] [conv=notrunc|noerror|sync|fsync] [iflag=skip_bytes]
  881. .Sp
  882. Copy a file with converting and formatting
  883. .Sp
  884. .Vb 10
  885. \& if=FILE Read from FILE instead of stdin
  886. \& of=FILE Write to FILE instead of stdout
  887. \& bs=N Read and write N bytes at a time
  888. \& ibs=N Read N bytes at a time
  889. \& obs=N Write N bytes at a time
  890. \& count=N Copy only N input blocks
  891. \& skip=N Skip N input blocks
  892. \& seek=N Skip N output blocks
  893. \& conv=notrunc Don\*(Aqt truncate output file
  894. \& conv=noerror Continue after read errors
  895. \& conv=sync Pad blocks with zeros
  896. \& conv=fsync Physically write data out before finishing
  897. \& conv=swab Swap every pair of bytes
  898. \& iflag=skip_bytes skip=N is in bytes
  899. \& status=noxfer Suppress rate output
  900. \& status=none Suppress all output
  901. .Ve
  902. .Sp
  903. N may be suffixed by c (1), w (2), b (512), kB (1000), k (1024), \s-1MB, M, GB, G\s0
  904. .IP "\fBdeallocvt\fR" 4
  905. .IX Item "deallocvt"
  906. deallocvt [N]
  907. .Sp
  908. Deallocate unused virtual terminal /dev/ttyN
  909. .IP "\fBdelgroup\fR" 4
  910. .IX Item "delgroup"
  911. delgroup [\s-1USER\s0] \s-1GROUP\s0
  912. .Sp
  913. Delete group \s-1GROUP\s0 from the system or user \s-1USER\s0 from group \s-1GROUP\s0
  914. .IP "\fBdeluser\fR" 4
  915. .IX Item "deluser"
  916. deluser [\-\-remove\-home] \s-1USER\s0
  917. .Sp
  918. Delete \s-1USER\s0 from the system
  919. .IP "\fBdepmod\fR" 4
  920. .IX Item "depmod"
  921. depmod [\-n]
  922. .Sp
  923. Generate modules.dep.bb
  924. .Sp
  925. .Vb 1
  926. \& \-n Dry run: print file to stdout
  927. .Ve
  928. .IP "\fBdevmem\fR" 4
  929. .IX Item "devmem"
  930. devmem \s-1ADDRESS\s0 [\s-1WIDTH\s0 [\s-1VALUE\s0]]
  931. .Sp
  932. Read/write from physical address
  933. .Sp
  934. .Vb 3
  935. \& ADDRESS Address to act upon
  936. \& WIDTH Width (8/16/...)
  937. \& VALUE Data to be written
  938. .Ve
  939. .IP "\fBdf\fR" 4
  940. .IX Item "df"
  941. df [\-PkmhTai] [\-B \s-1SIZE\s0] [\s-1FILESYSTEM\s0]...
  942. .Sp
  943. Print filesystem usage statistics
  944. .Sp
  945. .Vb 8
  946. \& \-P POSIX output format
  947. \& \-k 1024\-byte blocks (default)
  948. \& \-m 1M\-byte blocks
  949. \& \-h Human readable (e.g. 1K 243M 2G)
  950. \& \-T Print filesystem type
  951. \& \-a Show all filesystems
  952. \& \-i Inodes
  953. \& \-B SIZE Blocksize
  954. .Ve
  955. .IP "\fBdhcprelay\fR" 4
  956. .IX Item "dhcprelay"
  957. dhcprelay CLIENT_IFACE[,CLIENT_IFACE2]... \s-1SERVER_IFACE\s0 [\s-1SERVER_IP\s0]
  958. .Sp
  959. Relay \s-1DHCP\s0 requests between clients and server
  960. .IP "\fBdiff\fR" 4
  961. .IX Item "diff"
  962. diff [\-abBdiNqrTstw] [\-L \s-1LABEL\s0] [\-S \s-1FILE\s0] [\-U \s-1LINES\s0] \s-1FILE1 FILE2\s0
  963. .Sp
  964. Compare files line by line and output the differences between them.
  965. This implementation supports unified diffs only.
  966. .Sp
  967. .Vb 10
  968. \& \-a Treat all files as text
  969. \& \-b Ignore changes in the amount of whitespace
  970. \& \-B Ignore changes whose lines are all blank
  971. \& \-d Try hard to find a smaller set of changes
  972. \& \-i Ignore case differences
  973. \& \-L Use LABEL instead of the filename in the unified header
  974. \& \-N Treat absent files as empty
  975. \& \-q Output only whether files differ
  976. \& \-r Recurse
  977. \& \-S Start with FILE when comparing directories
  978. \& \-T Make tabs line up by prefixing a tab when necessary
  979. \& \-s Report when two files are the same
  980. \& \-t Expand tabs to spaces in output
  981. \& \-U Output LINES lines of context
  982. \& \-w Ignore all whitespace
  983. .Ve
  984. .IP "\fBdirname\fR" 4
  985. .IX Item "dirname"
  986. dirname \s-1FILENAME\s0
  987. .Sp
  988. Strip non-directory suffix from \s-1FILENAME\s0
  989. .IP "\fBdmesg\fR" 4
  990. .IX Item "dmesg"
  991. dmesg [\-c] [\-n \s-1LEVEL\s0] [\-s \s-1SIZE\s0]
  992. .Sp
  993. Print or control the kernel ring buffer
  994. .Sp
  995. .Vb 4
  996. \& \-c Clear ring buffer after printing
  997. \& \-n LEVEL Set console logging level
  998. \& \-s SIZE Buffer size
  999. \& \-r Print raw message buffer
  1000. .Ve
  1001. .IP "\fBdnsd\fR" 4
  1002. .IX Item "dnsd"
  1003. dnsd [\-dvs] [\-c \s-1CONFFILE\s0] [\-t \s-1TTL_SEC\s0] [\-p \s-1PORT\s0] [\-i \s-1ADDR\s0]
  1004. .Sp
  1005. Small static \s-1DNS\s0 server daemon
  1006. .Sp
  1007. .Vb 10
  1008. \& \-c FILE Config file
  1009. \& \-t SEC TTL
  1010. \& \-p PORT Listen on PORT
  1011. \& \-i ADDR Listen on ADDR
  1012. \& \-d Daemonize
  1013. \& \-v Verbose
  1014. \& \-s Send successful replies only. Use this if you want
  1015. \& to use /etc/resolv.conf with two nameserver lines:
  1016. \& nameserver DNSD_SERVER
  1017. \& nameserver NORMAL_DNS_SERVER
  1018. .Ve
  1019. .IP "\fBdos2unix\fR" 4
  1020. .IX Item "dos2unix"
  1021. dos2unix [\-ud] [\s-1FILE\s0]
  1022. .Sp
  1023. Convert \s-1FILE\s0 in-place from \s-1DOS\s0 to Unix format.
  1024. When no file is given, use stdin/stdout.
  1025. .Sp
  1026. .Vb 2
  1027. \& \-u dos2unix
  1028. \& \-d unix2dos
  1029. .Ve
  1030. .IP "\fBdpkg\fR" 4
  1031. .IX Item "dpkg"
  1032. dpkg [\-ilCPru] [\-F \s-1OPT\s0] \s-1PACKAGE\s0
  1033. .Sp
  1034. Install, remove and manage Debian packages
  1035. .Sp
  1036. .Vb 9
  1037. \& \-i,\-\-install Install the package
  1038. \& \-l,\-\-list List of installed packages
  1039. \& \-\-configure Configure an unpackaged package
  1040. \& \-P,\-\-purge Purge all files of a package
  1041. \& \-r,\-\-remove Remove all but the configuration files for a package
  1042. \& \-\-unpack Unpack a package, but don\*(Aqt configure it
  1043. \& \-\-force\-depends Ignore dependency problems
  1044. \& \-\-force\-confnew Overwrite existing config files when installing
  1045. \& \-\-force\-confold Keep old config files when installing
  1046. .Ve
  1047. .IP "\fBdpkg-deb\fR" 4
  1048. .IX Item "dpkg-deb"
  1049. dpkg-deb [\-cefxX] \s-1FILE\s0 [\s-1DIR\s0]
  1050. .Sp
  1051. Perform actions on Debian packages (.deb)
  1052. .Sp
  1053. .Vb 5
  1054. \& \-c List files
  1055. \& \-f Print control fields
  1056. \& \-e Extract control files to DIR (default: ./DEBIAN)
  1057. \& \-x Extract files to DIR (no default)
  1058. \& \-X Verbose \-x
  1059. .Ve
  1060. .IP "\fBdu\fR" 4
  1061. .IX Item "du"
  1062. du [\-aHLdclsxhmk] [\s-1FILE\s0]...
  1063. .Sp
  1064. Summarize disk space used for each \s-1FILE\s0 and/or directory
  1065. .Sp
  1066. .Vb 11
  1067. \& \-a Show file sizes too
  1068. \& \-L Follow all symlinks
  1069. \& \-H Follow symlinks on command line
  1070. \& \-d N Limit output to directories (and files with \-a) of depth < N
  1071. \& \-c Show grand total
  1072. \& \-l Count sizes many times if hard linked
  1073. \& \-s Display only a total for each argument
  1074. \& \-x Skip directories on different filesystems
  1075. \& \-h Sizes in human readable format (e.g., 1K 243M 2G)
  1076. \& \-m Sizes in megabytes
  1077. \& \-k Sizes in kilobytes (default)
  1078. .Ve
  1079. .IP "\fBdumpkmap\fR" 4
  1080. .IX Item "dumpkmap"
  1081. dumpkmap > keymap
  1082. .Sp
  1083. Print a binary keyboard translation table to stdout
  1084. .IP "\fBdumpleases\fR" 4
  1085. .IX Item "dumpleases"
  1086. dumpleases [\-r|\-a] [\-d] [\-f \s-1LEASEFILE\s0]
  1087. .Sp
  1088. Display \s-1DHCP\s0 leases granted by udhcpd
  1089. .Sp
  1090. .Vb 4
  1091. \& \-f,\-\-file FILE Lease file
  1092. \& \-r,\-\-remaining Show remaining time
  1093. \& \-a,\-\-absolute Show expiration time
  1094. \& \-d,\-\-decimal Show time in seconds
  1095. .Ve
  1096. .IP "\fBecho\fR" 4
  1097. .IX Item "echo"
  1098. echo [\-neE] [\s-1ARG\s0]...
  1099. .Sp
  1100. Print the specified ARGs to stdout
  1101. .Sp
  1102. .Vb 3
  1103. \& \-n Suppress trailing newline
  1104. \& \-e Interpret backslash escapes (i.e., \et=tab)
  1105. \& \-E Don\*(Aqt interpret backslash escapes (default)
  1106. .Ve
  1107. .IP "\fBed\fR" 4
  1108. .IX Item "ed"
  1109. ed [\s-1FILE\s0]
  1110. .IP "\fBeject\fR" 4
  1111. .IX Item "eject"
  1112. eject [\-t] [\-T] [\s-1DEVICE\s0]
  1113. .Sp
  1114. Eject \s-1DEVICE\s0 or default /dev/cdrom
  1115. .Sp
  1116. .Vb 3
  1117. \& \-s SCSI device
  1118. \& \-t Close tray
  1119. \& \-T Open/close tray (toggle)
  1120. .Ve
  1121. .IP "\fBenv\fR" 4
  1122. .IX Item "env"
  1123. env [\-iu] [\-] [name=value]... [\s-1PROG ARGS\s0]
  1124. .Sp
  1125. Print the current environment or run \s-1PROG\s0 after setting up
  1126. the specified environment
  1127. .Sp
  1128. .Vb 2
  1129. \& \-, \-i Start with an empty environment
  1130. \& \-u Remove variable from the environment
  1131. .Ve
  1132. .IP "\fBenvdir\fR" 4
  1133. .IX Item "envdir"
  1134. envdir \s-1DIR PROG ARGS\s0
  1135. .Sp
  1136. Set various environment variables as specified by files
  1137. in the directory \s-1DIR,\s0 run \s-1PROG\s0
  1138. .IP "\fBenvuidgid\fR" 4
  1139. .IX Item "envuidgid"
  1140. envuidgid \s-1USER PROG ARGS\s0
  1141. .Sp
  1142. Set \f(CW$UID\fR to \s-1USER\s0's uid and \f(CW$GID\fR to \s-1USER\s0's gid, run \s-1PROG\s0
  1143. .IP "\fBether-wake\fR" 4
  1144. .IX Item "ether-wake"
  1145. ether-wake [\-b] [\-i \s-1IFACE\s0] [\-p aa:bb:cc:dd[:ee:ff]/a.b.c.d] \s-1MAC\s0
  1146. .Sp
  1147. Send a magic packet to wake up sleeping machines.
  1148. \&\s-1MAC\s0 must be a station address (00:11:22:33:44:55) or
  1149. a hostname with a known 'ethers' entry.
  1150. .Sp
  1151. .Vb 3
  1152. \& \-b Broadcast the packet
  1153. \& \-i IFACE Interface to use (default eth0)
  1154. \& \-p PASSWORD Append four or six byte PASSWORD to the packet
  1155. .Ve
  1156. .IP "\fBexpand\fR" 4
  1157. .IX Item "expand"
  1158. expand [\-i] [\-t N] [\s-1FILE\s0]...
  1159. .Sp
  1160. Convert tabs to spaces, writing to stdout
  1161. .Sp
  1162. .Vb 2
  1163. \& \-i Don\*(Aqt convert tabs after non blanks
  1164. \& \-t Tabstops every N chars
  1165. .Ve
  1166. .IP "\fBexpr\fR" 4
  1167. .IX Item "expr"
  1168. expr \s-1EXPRESSION\s0
  1169. .Sp
  1170. Print the value of \s-1EXPRESSION\s0 to stdout
  1171. .Sp
  1172. \&\s-1EXPRESSION\s0 may be:
  1173. .Sp
  1174. .Vb 10
  1175. \& ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2
  1176. \& ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0
  1177. \& ARG1 < ARG2 1 if ARG1 is less than ARG2, else 0. Similarly:
  1178. \& ARG1 <= ARG2
  1179. \& ARG1 = ARG2
  1180. \& ARG1 != ARG2
  1181. \& ARG1 >= ARG2
  1182. \& ARG1 > ARG2
  1183. \& ARG1 + ARG2 Sum of ARG1 and ARG2. Similarly:
  1184. \& ARG1 \- ARG2
  1185. \& ARG1 * ARG2
  1186. \& ARG1 / ARG2
  1187. \& ARG1 % ARG2
  1188. \& STRING : REGEXP Anchored pattern match of REGEXP in STRING
  1189. \& match STRING REGEXP Same as STRING : REGEXP
  1190. \& substr STRING POS LENGTH Substring of STRING, POS counted from 1
  1191. \& index STRING CHARS Index in STRING where any CHARS is found, or 0
  1192. \& length STRING Length of STRING
  1193. \& quote TOKEN Interpret TOKEN as a string, even if
  1194. \& it is a keyword like \*(Aqmatch\*(Aq or an
  1195. \& operator like \*(Aq/\*(Aq
  1196. \& (EXPRESSION) Value of EXPRESSION
  1197. .Ve
  1198. .Sp
  1199. Beware that many operators need to be escaped or quoted for shells.
  1200. Comparisons are arithmetic if both ARGs are numbers, else
  1201. lexicographical. Pattern matches return the string matched between
  1202. \&\e( and \e) or null; if \e( and \e) are not used, they return the number
  1203. of characters matched or 0.
  1204. .IP "\fBfactor\fR" 4
  1205. .IX Item "factor"
  1206. factor [\s-1NUMBER\s0]...
  1207. .Sp
  1208. Print prime factors
  1209. .IP "\fBfakeidentd\fR" 4
  1210. .IX Item "fakeidentd"
  1211. fakeidentd [\-fiw] [\-b \s-1ADDR\s0] [\s-1STRING\s0]
  1212. .Sp
  1213. Provide fake ident (auth) service
  1214. .Sp
  1215. .Vb 5
  1216. \& \-f Run in foreground
  1217. \& \-i Inetd mode
  1218. \& \-w Inetd \*(Aqwait\*(Aq mode
  1219. \& \-b ADDR Bind to specified address
  1220. \& STRING Ident answer string (default: nobody)
  1221. .Ve
  1222. .IP "\fBfallocate\fR" 4
  1223. .IX Item "fallocate"
  1224. fallocate [\-o \s-1OFS\s0] \-l \s-1LEN FILE\s0
  1225. .Sp
  1226. Preallocate space for \s-1FILE\s0
  1227. .Sp
  1228. .Vb 2
  1229. \& \-o OFS Offset of range
  1230. \& \-l LEN Length of range
  1231. .Ve
  1232. .IP "\fBfatattr\fR" 4
  1233. .IX Item "fatattr"
  1234. fatattr [\-+rhsvda] \s-1FILE...\s0
  1235. .Sp
  1236. Change file attributes on \s-1FAT\s0 filesystem
  1237. .Sp
  1238. .Vb 8
  1239. \& \- Clear attributes
  1240. \& + Set attributes
  1241. \& r Read only
  1242. \& h Hidden
  1243. \& s System
  1244. \& v Volume label
  1245. \& d Directory
  1246. \& a Archive
  1247. .Ve
  1248. .IP "\fBfbset\fR" 4
  1249. .IX Item "fbset"
  1250. fbset [\s-1OPTIONS\s0] [\s-1MODE\s0]
  1251. .Sp
  1252. Show and modify frame buffer settings
  1253. .IP "\fBfbsplash\fR" 4
  1254. .IX Item "fbsplash"
  1255. fbsplash \-s \s-1IMGFILE\s0 [\-c] [\-d \s-1DEV\s0] [\-i \s-1INIFILE\s0] [\-f \s-1CMD\s0]
  1256. .Sp
  1257. .Vb 8
  1258. \& \-s Image
  1259. \& \-c Hide cursor
  1260. \& \-d Framebuffer device (default /dev/fb0)
  1261. \& \-i Config file (var=value):
  1262. \& BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT
  1263. \& BAR_R,BAR_G,BAR_B
  1264. \& \-f Control pipe (else exit after drawing image)
  1265. \& commands: \*(AqNN\*(Aq (% for progress bar) or \*(Aqexit\*(Aq
  1266. .Ve
  1267. .IP "\fBfdflush\fR" 4
  1268. .IX Item "fdflush"
  1269. fdflush \s-1DEVICE\s0
  1270. .Sp
  1271. Force floppy disk drive to detect disk change
  1272. .IP "\fBfdformat\fR" 4
  1273. .IX Item "fdformat"
  1274. fdformat [\-n] \s-1DEVICE\s0
  1275. .Sp
  1276. Format floppy disk
  1277. .Sp
  1278. .Vb 1
  1279. \& \-n Don\*(Aqt verify after format
  1280. .Ve
  1281. .IP "\fBfdisk\fR" 4
  1282. .IX Item "fdisk"
  1283. fdisk [\-ul] [\-C \s-1CYLINDERS\s0] [\-H \s-1HEADS\s0] [\-S \s-1SECTORS\s0] [\-b \s-1SSZ\s0] \s-1DISK\s0
  1284. .Sp
  1285. Change partition table
  1286. .Sp
  1287. .Vb 6
  1288. \& \-u Start and End are in sectors (instead of cylinders)
  1289. \& \-l Show partition table for each DISK, then exit
  1290. \& \-b 2048 (for certain MO disks) use 2048\-byte sectors
  1291. \& \-C CYLINDERS Set number of cylinders/heads/sectors
  1292. \& \-H HEADS Typically 255
  1293. \& \-S SECTORS Typically 63
  1294. .Ve
  1295. .IP "\fBfgconsole\fR" 4
  1296. .IX Item "fgconsole"
  1297. fgconsole
  1298. .Sp
  1299. Get active console
  1300. .IP "\fBfind\fR" 4
  1301. .IX Item "find"
  1302. find [\-HL] [\s-1PATH\s0]... [\s-1OPTIONS\s0] [\s-1ACTIONS\s0]
  1303. .Sp
  1304. Search for files and perform actions on them.
  1305. First failed action stops processing of current file.
  1306. Defaults: \s-1PATH\s0 is current directory, action is '\-print'
  1307. .Sp
  1308. .Vb 7
  1309. \& \-L,\-follow Follow symlinks
  1310. \& \-H ...on command line only
  1311. \& \-xdev Don\*(Aqt descend directories on other filesystems
  1312. \& \-maxdepth N Descend at most N levels. \-maxdepth 0 applies
  1313. \& actions to command line arguments only
  1314. \& \-mindepth N Don\*(Aqt act on first N levels
  1315. \& \-depth Act on directory *after* traversing it
  1316. .Ve
  1317. .Sp
  1318. Actions:
  1319. .Sp
  1320. .Vb 10
  1321. \& ( ACTIONS ) Group actions for \-o / \-a
  1322. \& ! ACT Invert ACT\*(Aqs success/failure
  1323. \& ACT1 [\-a] ACT2 If ACT1 fails, stop, else do ACT2
  1324. \& ACT1 \-o ACT2 If ACT1 succeeds, stop, else do ACT2
  1325. \& Note: \-a has higher priority than \-o
  1326. \& \-name PATTERN Match file name (w/o directory name) to PATTERN
  1327. \& \-iname PATTERN Case insensitive \-name
  1328. \& \-path PATTERN Match path to PATTERN
  1329. \& \-ipath PATTERN Case insensitive \-path
  1330. \& \-regex PATTERN Match path to regex PATTERN
  1331. \& \-type X File type is X (one of: f,d,l,b,c,...)
  1332. \& \-perm MASK At least one mask bit (+MASK), all bits (\-MASK),
  1333. \& or exactly MASK bits are set in file\*(Aqs mode
  1334. \& \-mtime DAYS mtime is greater than (+N), less than (\-N),
  1335. \& or exactly N days in the past
  1336. \& \-mmin MINS mtime is greater than (+N), less than (\-N),
  1337. \& or exactly N minutes in the past
  1338. \& \-newer FILE mtime is more recent than FILE\*(Aqs
  1339. \& \-inum N File has inode number N
  1340. \& \-user NAME/ID File is owned by given user
  1341. \& \-group NAME/ID File is owned by given group
  1342. \& \-size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.))
  1343. \& +/\-N: file size is bigger/smaller than N
  1344. \& \-links N Number of links is greater than (+N), less than (\-N),
  1345. \& or exactly N
  1346. \& \-prune If current file is directory, don\*(Aqt descend into it
  1347. \&If none of the following actions is specified, \-print is assumed
  1348. \& \-print Print file name
  1349. \& \-print0 Print file name, NUL terminated
  1350. \& \-exec CMD ARG ; Run CMD with all instances of {} replaced by
  1351. \& file name. Fails if CMD exits with nonzero
  1352. \& \-exec CMD ARG + Run CMD with {} replaced by list of file names
  1353. \& \-delete Delete current file/directory. Turns on \-depth option
  1354. .Ve
  1355. .IP "\fBfindfs\fR" 4
  1356. .IX Item "findfs"
  1357. findfs LABEL=label or UUID=uuid
  1358. .Sp
  1359. Find a filesystem device based on a label or \s-1UUID\s0
  1360. .IP "\fBflock\fR" 4
  1361. .IX Item "flock"
  1362. flock [\-sxun] FD|{\s-1FILE\s0 [\-c] \s-1PROG ARGS\s0}
  1363. .Sp
  1364. [Un]lock file descriptor, or lock \s-1FILE,\s0 run \s-1PROG\s0
  1365. .Sp
  1366. .Vb 4
  1367. \& \-s Shared lock
  1368. \& \-x Exclusive lock (default)
  1369. \& \-u Unlock FD
  1370. \& \-n Fail rather than wait
  1371. .Ve
  1372. .IP "\fBfold\fR" 4
  1373. .IX Item "fold"
  1374. fold [\-bs] [\-w \s-1WIDTH\s0] [\s-1FILE\s0]...
  1375. .Sp
  1376. Wrap input lines in each \s-1FILE\s0 (or stdin), writing to stdout
  1377. .Sp
  1378. .Vb 3
  1379. \& \-b Count bytes rather than columns
  1380. \& \-s Break at spaces
  1381. \& \-w Use WIDTH columns instead of 80
  1382. .Ve
  1383. .IP "\fBfree\fR" 4
  1384. .IX Item "free"
  1385. free [\-b/k/m/g]
  1386. .Sp
  1387. Display the amount of free and used system memory
  1388. .IP "\fBfreeramdisk\fR" 4
  1389. .IX Item "freeramdisk"
  1390. freeramdisk \s-1DEVICE\s0
  1391. .Sp
  1392. Free all memory used by the specified ramdisk
  1393. .IP "\fBfsck\fR" 4
  1394. .IX Item "fsck"
  1395. fsck [\-ANPRTV] [\-t \s-1FSTYPE\s0] [\s-1FS_OPTS\s0] [\s-1BLOCKDEV\s0]...
  1396. .Sp
  1397. Check and repair filesystems
  1398. .Sp
  1399. .Vb 7
  1400. \& \-A Walk /etc/fstab and check all filesystems
  1401. \& \-N Don\*(Aqt execute, just show what would be done
  1402. \& \-P With \-A, check filesystems in parallel
  1403. \& \-R With \-A, skip the root filesystem
  1404. \& \-T Don\*(Aqt show title on startup
  1405. \& \-V Verbose
  1406. \& \-t TYPE List of filesystem types to check
  1407. .Ve
  1408. .IP "\fBfsck.minix\fR" 4
  1409. .IX Item "fsck.minix"
  1410. fsck.minix [\-larvsmf] \s-1BLOCKDEV\s0
  1411. .Sp
  1412. Check \s-1MINIX\s0 filesystem
  1413. .Sp
  1414. .Vb 7
  1415. \& \-l List all filenames
  1416. \& \-r Perform interactive repairs
  1417. \& \-a Perform automatic repairs
  1418. \& \-v Verbose
  1419. \& \-s Output superblock information
  1420. \& \-m Show "mode not cleared" warnings
  1421. \& \-f Force file system check
  1422. .Ve
  1423. .IP "\fBfsfreeze\fR" 4
  1424. .IX Item "fsfreeze"
  1425. fsfreeze \-\-[un]freeze \s-1MOUNTPOINT\s0
  1426. .Sp
  1427. Flush and halt writes to \s-1MOUNTPOINT\s0
  1428. .IP "\fBfstrim\fR" 4
  1429. .IX Item "fstrim"
  1430. fstrim [\s-1OPTIONS\s0] \s-1MOUNTPOINT\s0
  1431. .Sp
  1432. .Vb 4
  1433. \& \-o,\-\-offset OFFSET Offset in bytes to discard from
  1434. \& \-l,\-\-length LEN Bytes to discard
  1435. \& \-m,\-\-minimum MIN Minimum extent length
  1436. \& \-v,\-\-verbose Print number of discarded bytes
  1437. .Ve
  1438. .IP "\fBfsync\fR" 4
  1439. .IX Item "fsync"
  1440. fsync [\-d] \s-1FILE...\s0
  1441. .Sp
  1442. Write files' buffered blocks to disk
  1443. .Sp
  1444. .Vb 1
  1445. \& \-d Avoid syncing metadata
  1446. .Ve
  1447. .IP "\fBftpd\fR" 4
  1448. .IX Item "ftpd"
  1449. ftpd [\-wvS] [\-a \s-1USER\s0] [\-t N] [\-T N] [\s-1DIR\s0]
  1450. .Sp
  1451. \&\s-1FTP\s0 server. Chroots to \s-1DIR,\s0 if this fails (run by non-root), cds to it.
  1452. Should be used as inetd service, inetd.conf line:
  1453. 21 stream tcp nowait root ftpd ftpd /files/to/serve
  1454. Can be run from tcpsvd:
  1455. .Sp
  1456. .Vb 1
  1457. \& tcpsvd \-vE 0.0.0.0 21 ftpd /files/to/serve
  1458. \&
  1459. \& \-w Allow upload
  1460. \& \-a USER Enable \*(Aqanonymous\*(Aq login and map it to USER
  1461. \& \-v Log errors to stderr. \-vv: verbose log
  1462. \& \-S Log errors to syslog. \-SS: verbose log
  1463. \& \-t,\-T N Idle and absolute timeout
  1464. .Ve
  1465. .IP "\fBftpget\fR" 4
  1466. .IX Item "ftpget"
  1467. ftpget [\s-1OPTIONS\s0] \s-1HOST\s0 [\s-1LOCAL_FILE\s0] \s-1REMOTE_FILE\s0
  1468. .Sp
  1469. Download a file via \s-1FTP\s0
  1470. .Sp
  1471. .Vb 5
  1472. \& \-c Continue previous transfer
  1473. \& \-v Verbose
  1474. \& \-u USER Username
  1475. \& \-p PASS Password
  1476. \& \-P NUM Port
  1477. .Ve
  1478. .IP "\fBftpput\fR" 4
  1479. .IX Item "ftpput"
  1480. ftpput [\s-1OPTIONS\s0] \s-1HOST\s0 [\s-1REMOTE_FILE\s0] \s-1LOCAL_FILE\s0
  1481. .Sp
  1482. Upload a file to a \s-1FTP\s0 server
  1483. .Sp
  1484. .Vb 4
  1485. \& \-v Verbose
  1486. \& \-u USER Username
  1487. \& \-p PASS Password
  1488. \& \-P NUM Port number
  1489. .Ve
  1490. .IP "\fBfuser\fR" 4
  1491. .IX Item "fuser"
  1492. fuser [\s-1OPTIONS\s0] \s-1FILE\s0 or \s-1PORT/PROTO\s0
  1493. .Sp
  1494. Find processes which use FILEs or PORTs
  1495. .Sp
  1496. .Vb 5
  1497. \& \-m Find processes which use same fs as FILEs
  1498. \& \-4,\-6 Search only IPv4/IPv6 space
  1499. \& \-s Don\*(Aqt display PIDs
  1500. \& \-k Kill found processes
  1501. \& \-SIGNAL Signal to send (default: KILL)
  1502. .Ve
  1503. .IP "\fBgetopt\fR" 4
  1504. .IX Item "getopt"
  1505. getopt [\s-1OPTIONS\s0] [\-\-] \s-1OPTSTRING PARAMS\s0
  1506. .Sp
  1507. .Vb 9
  1508. \& \-a Allow long options starting with single \-
  1509. \& \-l LOPT[,...] Long options to recognize
  1510. \& \-n PROGNAME The name under which errors are reported
  1511. \& \-o OPTSTRING Short options to recognize
  1512. \& \-q No error messages on unrecognized options
  1513. \& \-Q No normal output
  1514. \& \-s SHELL Set shell quoting conventions
  1515. \& \-T Version test (exits with 4)
  1516. \& \-u Don\*(Aqt quote output
  1517. .Ve
  1518. .Sp
  1519. Example:
  1520. .Sp
  1521. O=`getopt \-l bb: \*(-- ab:c:: \*(L"$@\*(R"` || exit 1
  1522. eval set \*(-- \*(L"$O\*(R"
  1523. while true; do
  1524. case \*(L"$1\*(R" in
  1525. \-a) echo A; shift;;
  1526. \-b|\-\-bb) echo \*(L"B:'$2'\*(R"; shift 2;;
  1527. \-c) case \*(L"$2\*(R" in
  1528. "\*(L") echo C; shift 2;;
  1529. *) echo \*(R"C:'$2'"; shift 2;;
  1530. esac;;
  1531. \-\-) shift; break;;
  1532. *) echo Error; exit 1;;
  1533. esac
  1534. done
  1535. .IP "\fBgetty\fR" 4
  1536. .IX Item "getty"
  1537. getty [\s-1OPTIONS\s0] BAUD_RATE[,BAUD_RATE]... \s-1TTY\s0 [\s-1TERMTYPE\s0]
  1538. .Sp
  1539. Open \s-1TTY,\s0 prompt for login name, then invoke /bin/login
  1540. .Sp
  1541. .Vb 11
  1542. \& \-h Enable hardware RTS/CTS flow control
  1543. \& \-L Set CLOCAL (ignore Carrier Detect state)
  1544. \& \-m Get baud rate from modem\*(Aqs CONNECT status message
  1545. \& \-n Don\*(Aqt prompt for login name
  1546. \& \-w Wait for CR or LF before sending /etc/issue
  1547. \& \-i Don\*(Aqt display /etc/issue
  1548. \& \-f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue
  1549. \& \-l LOGIN Invoke LOGIN instead of /bin/login
  1550. \& \-t SEC Terminate after SEC if no login name is read
  1551. \& \-I INITSTR Send INITSTR before anything else
  1552. \& \-H HOST Log HOST into the utmp file as the hostname
  1553. .Ve
  1554. .Sp
  1555. \&\s-1BAUD_RATE\s0 of 0 leaves it unchanged
  1556. .IP "\fBgrep\fR" 4
  1557. .IX Item "grep"
  1558. grep [\-HhnlLoqvsriwFE] [\-m N] [\-A/B/C N] PATTERN/\-e \s-1PATTERN..\s0./\-f \s-1FILE\s0 [\s-1FILE\s0]...
  1559. .Sp
  1560. Search for \s-1PATTERN\s0 in FILEs (or stdin)
  1561. .Sp
  1562. .Vb 10
  1563. \& \-H Add \*(Aqfilename:\*(Aq prefix
  1564. \& \-h Do not add \*(Aqfilename:\*(Aq prefix
  1565. \& \-n Add \*(Aqline_no:\*(Aq prefix
  1566. \& \-l Show only names of files that match
  1567. \& \-L Show only names of files that don\*(Aqt match
  1568. \& \-c Show only count of matching lines
  1569. \& \-o Show only the matching part of line
  1570. \& \-q Quiet. Return 0 if PATTERN is found, 1 otherwise
  1571. \& \-v Select non\-matching lines
  1572. \& \-s Suppress open and read errors
  1573. \& \-r Recurse
  1574. \& \-i Ignore case
  1575. \& \-w Match whole words only
  1576. \& \-x Match whole lines only
  1577. \& \-F PATTERN is a literal (not regexp)
  1578. \& \-E PATTERN is an extended regexp
  1579. \& \-m N Match up to N times per file
  1580. \& \-A N Print N lines of trailing context
  1581. \& \-B N Print N lines of leading context
  1582. \& \-C N Same as \*(Aq\-A N \-B N\*(Aq
  1583. \& \-e PTRN Pattern to match
  1584. \& \-f FILE Read pattern from file
  1585. .Ve
  1586. .IP "\fBgroups\fR" 4
  1587. .IX Item "groups"
  1588. groups [\s-1USER\s0]
  1589. .Sp
  1590. Print the group memberships of \s-1USER\s0 or for the current process
  1591. .IP "\fBgunzip\fR" 4
  1592. .IX Item "gunzip"
  1593. gunzip [\-cfkt] [\s-1FILE\s0]...
  1594. .Sp
  1595. Decompress FILEs (or stdin)
  1596. .Sp
  1597. .Vb 4
  1598. \& \-c Write to stdout
  1599. \& \-f Force
  1600. \& \-k Keep input files
  1601. \& \-t Test file integrity
  1602. .Ve
  1603. .IP "\fBgzip\fR" 4
  1604. .IX Item "gzip"
  1605. gzip [\-cfkdt] [\s-1FILE\s0]...
  1606. .Sp
  1607. Compress FILEs (or stdin)
  1608. .Sp
  1609. .Vb 5
  1610. \& \-d Decompress
  1611. \& \-t Test file integrity
  1612. \& \-c Write to stdout
  1613. \& \-f Force
  1614. \& \-k Keep input files
  1615. .Ve
  1616. .IP "\fBhalt\fR" 4
  1617. .IX Item "halt"
  1618. halt [\-d \s-1DELAY\s0] [\-n] [\-f] [\-w]
  1619. .Sp
  1620. Halt the system
  1621. .Sp
  1622. .Vb 4
  1623. \& \-d SEC Delay interval
  1624. \& \-n Do not sync
  1625. \& \-f Force (don\*(Aqt go through init)
  1626. \& \-w Only write a wtmp record
  1627. .Ve
  1628. .IP "\fBhd\fR" 4
  1629. .IX Item "hd"
  1630. hd \s-1FILE...\s0
  1631. .Sp
  1632. hd is an alias for hexdump \-C
  1633. .IP "\fBhdparm\fR" 4
  1634. .IX Item "hdparm"
  1635. hdparm [\s-1OPTIONS\s0] [\s-1DEVICE\s0]
  1636. .Sp
  1637. .Vb 10
  1638. \& \-a Get/set fs readahead
  1639. \& \-A Set drive read\-lookahead flag (0/1)
  1640. \& \-b Get/set bus state (0 == off, 1 == on, 2 == tristate)
  1641. \& \-B Set Advanced Power Management setting (1\-255)
  1642. \& \-c Get/set IDE 32\-bit IO setting
  1643. \& \-C Check IDE power mode status
  1644. \& \-d Get/set using_dma flag
  1645. \& \-D Enable/disable drive defect\-mgmt
  1646. \& \-f Flush buffer cache for device on exit
  1647. \& \-g Display drive geometry
  1648. \& \-h Display terse usage information
  1649. \& \-i Display drive identification
  1650. \& \-I Detailed/current information directly from drive
  1651. \& \-k Get/set keep_settings_over_reset flag (0/1)
  1652. \& \-K Set drive keep_features_over_reset flag (0/1)
  1653. \& \-L Set drive doorlock (0/1) (removable harddisks only)
  1654. \& \-m Get/set multiple sector count
  1655. \& \-n Get/set ignore\-write\-errors flag (0/1)
  1656. \& \-p Set PIO mode on IDE interface chipset (0,1,2,3,4,...)
  1657. \& \-P Set drive prefetch count
  1658. \& \-Q Get/set DMA tagged\-queuing depth (if supported)
  1659. \& \-r Get/set readonly flag (DANGEROUS to set)
  1660. \& \-R Register an IDE interface (DANGEROUS)
  1661. \& \-S Set standby (spindown) timeout
  1662. \& \-t Perform device read timings
  1663. \& \-T Perform cache read timings
  1664. \& \-u Get/set unmaskirq flag (0/1)
  1665. \& \-U Unregister an IDE interface (DANGEROUS)
  1666. \& \-v Defaults; same as \-mcudkrag for IDE drives
  1667. \& \-V Display program version and exit immediately
  1668. \& \-w Perform device reset (DANGEROUS)
  1669. \& \-W Set drive write\-caching flag (0/1) (DANGEROUS)
  1670. \& \-x Tristate device for hotswap (0/1) (DANGEROUS)
  1671. \& \-X Set IDE xfer mode (DANGEROUS)
  1672. \& \-y Put IDE drive in standby mode
  1673. \& \-Y Put IDE drive to sleep
  1674. \& \-Z Disable Seagate auto\-powersaving mode
  1675. \& \-z Reread partition table
  1676. .Ve
  1677. .IP "\fBhead\fR" 4
  1678. .IX Item "head"
  1679. head [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  1680. .Sp
  1681. Print first 10 lines of each \s-1FILE\s0 (or stdin) to stdout.
  1682. With more than one \s-1FILE,\s0 precede each with a filename header.
  1683. .Sp
  1684. .Vb 5
  1685. \& \-n N[kbm] Print first N lines
  1686. \& \-n \-N[kbm] Print all except N last lines
  1687. \& \-c [\-]N[kbm] Print first N bytes
  1688. \& \-q Never print headers
  1689. \& \-v Always print headers
  1690. .Ve
  1691. .Sp
  1692. N may be suffixed by k (x1024), b (x512), or m (x1024^2).
  1693. .IP "\fBhexdump\fR" 4
  1694. .IX Item "hexdump"
  1695. hexdump [\-bcCdefnosvxR] [\s-1FILE\s0]...
  1696. .Sp
  1697. Display FILEs (or stdin) in a user specified format
  1698. .Sp
  1699. .Vb 12
  1700. \& \-b 1\-byte octal display
  1701. \& \-c 1\-byte character display
  1702. \& \-d 2\-byte decimal display
  1703. \& \-o 2\-byte octal display
  1704. \& \-x 2\-byte hex display
  1705. \& \-C hex+ASCII 16 bytes per line
  1706. \& \-v Show all (no dup folding)
  1707. \& \-e FORMAT_STR Example: \*(Aq16/1 "%02x|""\en"\*(Aq
  1708. \& \-f FORMAT_FILE
  1709. \& \-n LENGTH Show only first LENGTH bytes
  1710. \& \-s OFFSET Skip OFFSET bytes
  1711. \& \-R Reverse of \*(Aqhexdump \-Cv\*(Aq
  1712. .Ve
  1713. .IP "\fBhexedit\fR" 4
  1714. .IX Item "hexedit"
  1715. hexedit \s-1FILE\s0
  1716. .Sp
  1717. Edit \s-1FILE\s0 in hexadecimal
  1718. .IP "\fBhostid\fR" 4
  1719. .IX Item "hostid"
  1720. hostid
  1721. .Sp
  1722. Print out a unique 32\-bit identifier for the machine
  1723. .IP "\fBhostname\fR" 4
  1724. .IX Item "hostname"
  1725. hostname [\s-1OPTIONS\s0] [\s-1HOSTNAME\s0 | \-F \s-1FILE\s0]
  1726. .Sp
  1727. Get or set hostname or \s-1DNS\s0 domain name
  1728. .Sp
  1729. .Vb 5
  1730. \& \-s Short
  1731. \& \-i Addresses for the hostname
  1732. \& \-d DNS domain name
  1733. \& \-f Fully qualified domain name
  1734. \& \-F FILE Use FILE\*(Aqs content as hostname
  1735. .Ve
  1736. .IP "\fBhttpd\fR" 4
  1737. .IX Item "httpd"
  1738. httpd [\-ifv[v]] [\-c \s-1CONFFILE\s0] [\-p [\s-1IP:\s0]PORT] [\-u USER[:GRP]] [\-r \s-1REALM\s0] [\-h \s-1HOME\s0]
  1739. or httpd \-d/\-e/\-m \s-1STRING\s0
  1740. .Sp
  1741. Listen for incoming \s-1HTTP\s0 requests
  1742. .Sp
  1743. .Vb 11
  1744. \& \-i Inetd mode
  1745. \& \-f Don\*(Aqt daemonize
  1746. \& \-v[v] Verbose
  1747. \& \-p [IP:]PORT Bind to IP:PORT (default *:80)
  1748. \& \-u USER[:GRP] Set uid/gid after binding to port
  1749. \& \-r REALM Authentication Realm for Basic Authentication
  1750. \& \-h HOME Home directory (default .)
  1751. \& \-c FILE Configuration file (default {/etc,HOME}/httpd.conf)
  1752. \& \-m STRING MD5 crypt STRING
  1753. \& \-e STRING HTML encode STRING
  1754. \& \-d STRING URL decode STRING
  1755. .Ve
  1756. .IP "\fBhush\fR" 4
  1757. .IX Item "hush"
  1758. hush [\-enxl] [\-c '\s-1SCRIPT\s0' [\s-1ARG0\s0 [\s-1ARGS\s0]] / \s-1FILE\s0 [\s-1ARGS\s0]]
  1759. .Sp
  1760. Unix shell interpreter
  1761. .IP "\fBhwclock\fR" 4
  1762. .IX Item "hwclock"
  1763. hwclock [\-r|\-\-show] [\-s|\-\-hctosys] [\-w|\-\-systohc] [\-\-systz] [\-\-localtime] [\-u|\-\-utc] [\-f|\-\-rtc \s-1FILE\s0]
  1764. .Sp
  1765. Query and set hardware clock (\s-1RTC\s0)
  1766. .Sp
  1767. .Vb 8
  1768. \& \-r Show hardware clock time
  1769. \& \-s Set system time from hardware clock
  1770. \& \-w Set hardware clock from system time
  1771. \& \-\-systz Set in\-kernel timezone, correct system time
  1772. \& if hardware clock is in local time
  1773. \& \-u Assume hardware clock is kept in UTC
  1774. \& \-\-localtime Assume hardware clock is kept in local time
  1775. \& \-f FILE Use specified device (e.g. /dev/rtc2)
  1776. .Ve
  1777. .IP "\fBi2cdetect\fR" 4
  1778. .IX Item "i2cdetect"
  1779. i2cdetect \-l | \-F I2CBUS | [\-ya] [\-q|\-r] I2CBUS [\s-1FIRST LAST\s0]
  1780. .Sp
  1781. Detect I2C chips
  1782. .Sp
  1783. .Vb 7
  1784. \& \-l List installed buses
  1785. \& \-F BUS# List functionalities on this bus
  1786. \& \-y Disable interactive mode
  1787. \& \-a Force scanning of non\-regular addresses
  1788. \& \-q Use smbus quick write commands for probing (default)
  1789. \& \-r Use smbus read byte commands for probing
  1790. \& FIRST and LAST limit probing range
  1791. .Ve
  1792. .IP "\fBi2cdump\fR" 4
  1793. .IX Item "i2cdump"
  1794. i2cdump [\-fy] [\-r \s-1FIRST\-LAST\s0] \s-1BUS ADDR\s0 [\s-1MODE\s0]
  1795. .Sp
  1796. Examine I2C registers
  1797. .Sp
  1798. .Vb 3
  1799. \& I2CBUS I2C bus number
  1800. \& ADDRESS 0x03\-0x77
  1801. \&MODE is:
  1802. \&
  1803. \& b Byte (default)
  1804. \& w Word
  1805. \& W Word on even register addresses
  1806. \& i I2C block
  1807. \& s SMBus block
  1808. \& c Consecutive byte
  1809. \& Append p for SMBus PEC
  1810. \&
  1811. \& \-f Force access
  1812. \& \-y Disable interactive mode
  1813. \& \-r Limit the number of registers being accessed
  1814. .Ve
  1815. .IP "\fBi2cget\fR" 4
  1816. .IX Item "i2cget"
  1817. i2cget [\-fy] \s-1BUS\s0 CHIP-ADDRESS [\s-1DATA\-ADDRESS\s0 [\s-1MODE\s0]]
  1818. .Sp
  1819. Read from I2C/SMBus chip registers
  1820. .Sp
  1821. .Vb 3
  1822. \& I2CBUS I2C bus number
  1823. \& ADDRESS 0x03\-0x77
  1824. \&MODE is:
  1825. \&
  1826. \& b Read byte data (default)
  1827. \& w Read word data
  1828. \& c Write byte/read byte
  1829. \& Append p for SMBus PEC
  1830. \&
  1831. \& \-f Force access
  1832. \& \-y Disable interactive mode
  1833. .Ve
  1834. .IP "\fBi2cset\fR" 4
  1835. .IX Item "i2cset"
  1836. i2cset [\-fy] [\-m \s-1MASK\s0] \s-1BUS\s0 CHIP-ADDRESS DATA-ADDRESS [\s-1VALUE\s0] ... [\s-1MODE\s0]
  1837. .Sp
  1838. Set I2C registers
  1839. .Sp
  1840. .Vb 3
  1841. \& I2CBUS I2C bus number
  1842. \& ADDRESS 0x03\-0x77
  1843. \&MODE is:
  1844. \&
  1845. \& c Byte, no value
  1846. \& b Byte data (default)
  1847. \& w Word data
  1848. \& i I2C block data
  1849. \& s SMBus block data
  1850. \& Append p for SMBus PEC
  1851. \&
  1852. \& \-f Force access
  1853. \& \-y Disable interactive mode
  1854. \& \-r Read back and compare the result
  1855. \& \-m MASK Mask specifying which bits to write
  1856. .Ve
  1857. .IP "\fBid\fR" 4
  1858. .IX Item "id"
  1859. id [\s-1OPTIONS\s0] [\s-1USER\s0]
  1860. .Sp
  1861. Print information about \s-1USER\s0 or the current user
  1862. .Sp
  1863. .Vb 5
  1864. \& \-u User ID
  1865. \& \-g Group ID
  1866. \& \-G Supplementary group IDs
  1867. \& \-n Print names instead of numbers
  1868. \& \-r Print real ID instead of effective ID
  1869. .Ve
  1870. .IP "\fBifconfig\fR" 4
  1871. .IX Item "ifconfig"
  1872. ifconfig [\-a] interface [address]
  1873. .Sp
  1874. Configure a network interface
  1875. .Sp
  1876. .Vb 10
  1877. \& [add ADDRESS[/PREFIXLEN]]
  1878. \& [del ADDRESS[/PREFIXLEN]]
  1879. \& [[\-]broadcast [ADDRESS]] [[\-]pointopoint [ADDRESS]]
  1880. \& [netmask ADDRESS] [dstaddr ADDRESS]
  1881. \& [outfill NN] [keepalive NN]
  1882. \& [hw ether|infiniband ADDRESS] [metric NN] [mtu NN]
  1883. \& [[\-]trailers] [[\-]arp] [[\-]allmulti]
  1884. \& [multicast] [[\-]promisc] [txqueuelen NN] [[\-]dynamic]
  1885. \& [mem_start NN] [io_addr NN] [irq NN]
  1886. \& [up|down] ...
  1887. .Ve
  1888. .IP "\fBifdown\fR" 4
  1889. .IX Item "ifdown"
  1890. ifdown [\-anmvf] [\-i \s-1FILE\s0] \s-1IFACE...\s0
  1891. .Sp
  1892. .Vb 7
  1893. \& \-a Deconfigure all interfaces
  1894. \& \-i FILE Use FILE for interface definitions
  1895. \& \-n Print out what would happen, but don\*(Aqt do it
  1896. \& (note: doesn\*(Aqt disable mappings)
  1897. \& \-m Don\*(Aqt run any mappings
  1898. \& \-v Print out what would happen before doing it
  1899. \& \-f Force deconfiguration
  1900. .Ve
  1901. .IP "\fBifenslave\fR" 4
  1902. .IX Item "ifenslave"
  1903. ifenslave [\-cdf] \s-1MASTER_IFACE SLAVE_IFACE...\s0
  1904. .Sp
  1905. Configure network interfaces for parallel routing
  1906. .Sp
  1907. .Vb 3
  1908. \& \-c Change active slave
  1909. \& \-d Remove slave interface from bonding device
  1910. \& \-f Force, even if interface is not Ethernet
  1911. .Ve
  1912. .IP "\fBifplugd\fR" 4
  1913. .IX Item "ifplugd"
  1914. ifplugd [\s-1OPTIONS\s0]
  1915. .Sp
  1916. Network interface plug detection daemon
  1917. .Sp
  1918. .Vb 10
  1919. \& \-n Don\*(Aqt daemonize
  1920. \& \-s Don\*(Aqt log to syslog
  1921. \& \-i IFACE Interface
  1922. \& \-f/\-F Treat link detection error as link down/link up
  1923. \& (otherwise exit on error)
  1924. \& \-a Don\*(Aqt up interface at each link probe
  1925. \& \-M Monitor creation/destruction of interface
  1926. \& (otherwise it must exist)
  1927. \& \-r PROG Script to run
  1928. \& \-x ARG Extra argument for script
  1929. \& \-I Don\*(Aqt exit on nonzero exit code from script
  1930. \& \-p Don\*(Aqt run "up" script on startup
  1931. \& \-q Don\*(Aqt run "down" script on exit
  1932. \& \-l Always run script on startup
  1933. \& \-t SECS Poll time in seconds
  1934. \& \-u SECS Delay before running script after link up
  1935. \& \-d SECS Delay after link down
  1936. \& \-m MODE API mode (mii, priv, ethtool, wlan, iff, auto)
  1937. \& \-k Kill running daemon
  1938. .Ve
  1939. .IP "\fBifup\fR" 4
  1940. .IX Item "ifup"
  1941. ifup [\-anmvf] [\-i \s-1FILE\s0] \s-1IFACE...\s0
  1942. .Sp
  1943. .Vb 7
  1944. \& \-a Configure all interfaces
  1945. \& \-i FILE Use FILE instead of /etc/network/interfaces
  1946. \& \-n Print out what would happen, but don\*(Aqt do it
  1947. \& (note: doesn\*(Aqt disable mappings)
  1948. \& \-m Don\*(Aqt run any mappings
  1949. \& \-v Print out what would happen before doing it
  1950. \& \-f Force configuration
  1951. .Ve
  1952. .IP "\fBinetd\fR" 4
  1953. .IX Item "inetd"
  1954. inetd [\-fe] [\-q N] [\-R N] [\s-1CONFFILE\s0]
  1955. .Sp
  1956. Listen for network connections and launch programs
  1957. .Sp
  1958. .Vb 6
  1959. \& \-f Run in foreground
  1960. \& \-e Log to stderr
  1961. \& \-q N Socket listen queue (default 128)
  1962. \& \-R N Pause services after N connects/min
  1963. \& (default 0 \- disabled)
  1964. \& Default CONFFILE is /etc/inetd.conf
  1965. .Ve
  1966. .IP "\fBinit\fR" 4
  1967. .IX Item "init"
  1968. init
  1969. .Sp
  1970. Init is the first process started during boot. It never exits.
  1971. It (re)spawns children according to /etc/inittab.
  1972. .IP "\fBinsmod\fR" 4
  1973. .IX Item "insmod"
  1974. insmod \s-1FILE\s0 [SYMBOL=VALUE]...
  1975. .Sp
  1976. Load kernel module
  1977. .IP "\fBinstall\fR" 4
  1978. .IX Item "install"
  1979. install [\-cdDsp] [\-o \s-1USER\s0] [\-g \s-1GRP\s0] [\-m \s-1MODE\s0] [\-t \s-1DIR\s0] [\s-1SOURCE\s0]... \s-1DEST\s0
  1980. .Sp
  1981. Copy files and set attributes
  1982. .Sp
  1983. .Vb 9
  1984. \& \-c Just copy (default)
  1985. \& \-d Create directories
  1986. \& \-D Create leading target directories
  1987. \& \-s Strip symbol table
  1988. \& \-p Preserve date
  1989. \& \-o USER Set ownership
  1990. \& \-g GRP Set group ownership
  1991. \& \-m MODE Set permissions
  1992. \& \-t DIR Install to DIR
  1993. .Ve
  1994. .IP "\fBionice\fR" 4
  1995. .IX Item "ionice"
  1996. ionice [\-c 1\-3] [\-n 0\-7] [\-p \s-1PID\s0] [\s-1PROG\s0]
  1997. .Sp
  1998. Change I/O priority and class
  1999. .Sp
  2000. .Vb 2
  2001. \& \-c Class. 1:realtime 2:best\-effort 3:idle
  2002. \& \-n Priority
  2003. .Ve
  2004. .IP "\fBiostat\fR" 4
  2005. .IX Item "iostat"
  2006. iostat [\-c] [\-d] [\-t] [\-z] [\-k|\-m] [ALL|BLOCKDEV...] [\s-1INTERVAL\s0 [\s-1COUNT\s0]]
  2007. .Sp
  2008. Report \s-1CPU\s0 and I/O statistics
  2009. .Sp
  2010. .Vb 6
  2011. \& \-c Show CPU utilization
  2012. \& \-d Show device utilization
  2013. \& \-t Print current time
  2014. \& \-z Omit devices with no activity
  2015. \& \-k Use kb/s
  2016. \& \-m Use Mb/s
  2017. .Ve
  2018. .IP "\fBip\fR" 4
  2019. .IX Item "ip"
  2020. ip [\s-1OPTIONS\s0] address|route|link|tunnel|neigh|rule [\s-1COMMAND\s0]
  2021. .Sp
  2022. \&\s-1OPTIONS\s0 := \-f[amily] inet|inet6|link | \-o[neline]
  2023. \&\s-1COMMAND\s0 :=
  2024. ip addr add|del \s-1IFADDR\s0 dev \s-1IFACE\s0 | show|flush [dev \s-1IFACE\s0] [to \s-1PREFIX\s0]
  2025. ip route list|flush|add|del|change|append|replace|test \s-1ROUTE\s0
  2026. ip link set \s-1IFACE\s0 [up|down] [arp on|off] | show [\s-1IFACE\s0]
  2027. ip tunnel add|change|del|show [\s-1NAME\s0]
  2028. [mode ipip|gre|sit]
  2029. [remote \s-1ADDR\s0] [local \s-1ADDR\s0] [ttl \s-1TTL\s0]
  2030. ip neigh show|flush [to \s-1PREFIX\s0] [dev \s-1DEV\s0] [nud \s-1STATE\s0]
  2031. ip rule [list] | add|del \s-1SELECTOR ACTION\s0
  2032. .IP "\fBipaddr\fR" 4
  2033. .IX Item "ipaddr"
  2034. ipaddr add|del \s-1IFADDR\s0 dev \s-1IFACE\s0 | show|flush [dev \s-1IFACE\s0] [to \s-1PREFIX\s0]
  2035. .Sp
  2036. ipaddr add|change|replace|delete dev \s-1IFACE IFADDR\s0
  2037. \s-1IFADDR\s0 := \s-1PREFIX\s0 | \s-1ADDR\s0 peer \s-1PREFIX\s0 [broadcast ADDR|+|\-]
  2038. [anycast \s-1ADDR\s0] [label \s-1STRING\s0] [scope \s-1SCOPE\s0]
  2039. \s-1PREFIX\s0 := ADDR[/MASK]
  2040. \s-1SCOPE\s0 := [host|link|global|NUMBER]
  2041. ipaddr show|flush [dev \s-1IFACE\s0] [scope \s-1SCOPE\s0] [to \s-1PREFIX\s0] [label \s-1PATTERN\s0]
  2042. .IP "\fBipcalc\fR" 4
  2043. .IX Item "ipcalc"
  2044. ipcalc [\s-1OPTIONS\s0] ADDRESS[/PREFIX] [\s-1NETMASK\s0]
  2045. .Sp
  2046. Calculate and display network settings from \s-1IP\s0 address
  2047. .Sp
  2048. .Vb 6
  2049. \& \-b Broadcast address
  2050. \& \-n Network address
  2051. \& \-m Default netmask for IP
  2052. \& \-p Prefix for IP/NETMASK
  2053. \& \-h Resolved host name
  2054. \& \-s No error messages
  2055. .Ve
  2056. .IP "\fBipcrm\fR" 4
  2057. .IX Item "ipcrm"
  2058. ipcrm [\-MQS key] [\-mqs id]
  2059. .Sp
  2060. Upper-case options \s-1MQS\s0 remove an object by shmkey value.
  2061. Lower-case options remove an object by shmid value.
  2062. .Sp
  2063. .Vb 3
  2064. \& \-mM Remove memory segment after last detach
  2065. \& \-qQ Remove message queue
  2066. \& \-sS Remove semaphore
  2067. .Ve
  2068. .IP "\fBipcs\fR" 4
  2069. .IX Item "ipcs"
  2070. ipcs [[\-smq] \-i shmid] | [[\-asmq] [\-tcplu]]
  2071. .Sp
  2072. .Vb 2
  2073. \& \-i Show specific resource
  2074. \&Resource specification:
  2075. \&
  2076. \& \-m Shared memory segments
  2077. \& \-q Message queues
  2078. \& \-s Semaphore arrays
  2079. \& \-a All (default)
  2080. \&Output format:
  2081. \&
  2082. \& \-t Time
  2083. \& \-c Creator
  2084. \& \-p Pid
  2085. \& \-l Limits
  2086. \& \-u Summary
  2087. .Ve
  2088. .IP "\fBiplink\fR" 4
  2089. .IX Item "iplink"
  2090. iplink set \s-1IFACE\s0 [up|down] [arp on|off] | show [\s-1IFACE\s0]
  2091. .Sp
  2092. iplink set \s-1IFACE\s0 [up|down] [arp on|off] [multicast on|off] [promisc on|off]
  2093. [mtu \s-1NUM\s0] [name \s-1NAME\s0] [qlen \s-1NUM\s0] [address \s-1MAC\s0]
  2094. iplink show [\s-1IFACE\s0]
  2095. .IP "\fBipneigh\fR" 4
  2096. .IX Item "ipneigh"
  2097. ipneigh show|flush [to \s-1PREFIX\s0] [dev \s-1DEV\s0] [nud \s-1STATE\s0]
  2098. .IP "\fBiproute\fR" 4
  2099. .IX Item "iproute"
  2100. iproute list|flush|add|del|change|append|replace|test \s-1ROUTE\s0
  2101. .Sp
  2102. iproute list|flush \s-1SELECTOR\s0
  2103. \s-1SELECTOR\s0 := [root \s-1PREFIX\s0] [match \s-1PREFIX\s0] [proto \s-1RTPROTO\s0]
  2104. \s-1PREFIX\s0 := default|ADDR[/MASK]
  2105. iproute get \s-1ADDR\s0 [from \s-1ADDR\s0 iif \s-1IFACE\s0]
  2106. [oif \s-1IFACE\s0] [tos \s-1TOS\s0]
  2107. iproute add|del|change|append|replace|test \s-1ROUTE\s0
  2108. \s-1ROUTE\s0 := \s-1NODE_SPEC\s0 [\s-1INFO_SPEC\s0]
  2109. \s-1NODE_SPEC\s0 := \s-1PREFIX\s0 [table \s-1TABLE_ID\s0] [proto \s-1RTPROTO\s0] [scope \s-1SCOPE\s0] [metric \s-1METRIC\s0]
  2110. \s-1INFO_SPEC\s0 := \s-1NH OPTIONS\s0
  2111. \s-1NH\s0 := [via [inet|inet6] \s-1ADDR\s0] [dev \s-1IFACE\s0] [src \s-1ADDR\s0] [onlink]
  2112. \s-1OPTIONS\s0 := [mtu [lock] \s-1NUM\s0] [advmss [lock] \s-1NUM\s0]
  2113. .IP "\fBiprule\fR" 4
  2114. .IX Item "iprule"
  2115. iprule [list] | add|del \s-1SELECTOR ACTION\s0
  2116. .Sp
  2117. .Vb 6
  2118. \& SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK]
  2119. \& [dev IFACE] [pref NUMBER]
  2120. \& ACTION := [table TABLE_ID] [nat ADDR]
  2121. \& [prohibit|reject|unreachable]
  2122. \& [realms [SRCREALM/]DSTREALM]
  2123. \& TABLE_ID := [local|main|default|NUMBER]
  2124. .Ve
  2125. .IP "\fBiptunnel\fR" 4
  2126. .IX Item "iptunnel"
  2127. iptunnel add|change|del|show [\s-1NAME\s0]
  2128. [mode ipip|gre|sit]
  2129. [remote \s-1ADDR\s0] [local \s-1ADDR\s0] [ttl \s-1TTL\s0]
  2130. .Sp
  2131. iptunnel add|change|del|show [\s-1NAME\s0]
  2132. [mode ipip|gre|sit] [remote \s-1ADDR\s0] [local \s-1ADDR\s0]
  2133. [[i|o]seq] [[i|o]key \s-1KEY\s0] [[i|o]csum]
  2134. [ttl \s-1TTL\s0] [tos \s-1TOS\s0] [[no]pmtudisc] [dev \s-1PHYS_DEV\s0]
  2135. .IP "\fBkbd_mode\fR" 4
  2136. .IX Item "kbd_mode"
  2137. kbd_mode [\-a|k|s|u] [\-C \s-1TTY\s0]
  2138. .Sp
  2139. Report or set \s-1VT\s0 console keyboard mode
  2140. .Sp
  2141. .Vb 5
  2142. \& \-a Default (ASCII)
  2143. \& \-k Medium\-raw (keycode)
  2144. \& \-s Raw (scancode)
  2145. \& \-u Unicode (utf\-8)
  2146. \& \-C TTY Affect TTY
  2147. .Ve
  2148. .IP "\fBkill\fR" 4
  2149. .IX Item "kill"
  2150. kill [\-l] [\-SIG] \s-1PID...\s0
  2151. .Sp
  2152. Send a signal (default: \s-1TERM\s0) to given PIDs
  2153. .Sp
  2154. .Vb 1
  2155. \& \-l List all signal names and numbers
  2156. .Ve
  2157. .IP "\fBkillall\fR" 4
  2158. .IX Item "killall"
  2159. killall [\-l] [\-q] [\-SIG] \s-1PROCESS_NAME...\s0
  2160. .Sp
  2161. Send a signal (default: \s-1TERM\s0) to given processes
  2162. .Sp
  2163. .Vb 2
  2164. \& \-l List all signal names and numbers
  2165. \& \-q Don\*(Aqt complain if no processes were killed
  2166. .Ve
  2167. .IP "\fBkillall5\fR" 4
  2168. .IX Item "killall5"
  2169. killall5 [\-l] [\-SIG] [\-o \s-1PID\s0]...
  2170. .Sp
  2171. Send a signal (default: \s-1TERM\s0) to all processes outside current session
  2172. .Sp
  2173. .Vb 2
  2174. \& \-l List all signal names and numbers
  2175. \& \-o PID Don\*(Aqt signal this PID
  2176. .Ve
  2177. .IP "\fBklogd\fR" 4
  2178. .IX Item "klogd"
  2179. klogd [\-c N] [\-n]
  2180. .Sp
  2181. Kernel logger
  2182. .Sp
  2183. .Vb 2
  2184. \& \-c N Print to console messages more urgent than prio N (1\-8)
  2185. \& \-n Run in foreground
  2186. .Ve
  2187. .IP "\fBlast\fR" 4
  2188. .IX Item "last"
  2189. last [\-HW] [\-f \s-1FILE\s0]
  2190. .Sp
  2191. Show listing of the last users that logged into the system
  2192. .Sp
  2193. .Vb 2
  2194. \& \-W Display with no host column truncation
  2195. \& \-f FILE Read from FILE instead of /var/log/wtmp
  2196. .Ve
  2197. .IP "\fBless\fR" 4
  2198. .IX Item "less"
  2199. less [\-EIMmNSh~] [\s-1FILE\s0]...
  2200. .Sp
  2201. View \s-1FILE\s0 (or stdin) one screenful at a time
  2202. .Sp
  2203. .Vb 7
  2204. \& \-E Quit once the end of a file is reached
  2205. \& \-I Ignore case in all searches
  2206. \& \-M,\-m Display status line with line numbers
  2207. \& and percentage through the file
  2208. \& \-N Prefix line number to each line
  2209. \& \-S Truncate long lines
  2210. \& \-~ Suppress ~s displayed past EOF
  2211. .Ve
  2212. .IP "\fBlink\fR" 4
  2213. .IX Item "link"
  2214. link \s-1FILE LINK\s0
  2215. .Sp
  2216. Create hard \s-1LINK\s0 to \s-1FILE\s0
  2217. .IP "\fBln\fR" 4
  2218. .IX Item "ln"
  2219. ln [\s-1OPTIONS\s0] \s-1TARGET...\s0 LINK|DIR
  2220. .Sp
  2221. Create a link \s-1LINK\s0 or \s-1DIR/TARGET\s0 to the specified \s-1TARGET\s0(s)
  2222. .Sp
  2223. .Vb 7
  2224. \& \-s Make symlinks instead of hardlinks
  2225. \& \-f Remove existing destinations
  2226. \& \-n Don\*(Aqt dereference symlinks \- treat like normal file
  2227. \& \-b Make a backup of the target (if exists) before link operation
  2228. \& \-S suf Use suffix instead of ~ when making backup files
  2229. \& \-T 2nd arg must be a DIR
  2230. \& \-v Verbose
  2231. .Ve
  2232. .IP "\fBloadfont\fR" 4
  2233. .IX Item "loadfont"
  2234. loadfont < font
  2235. .Sp
  2236. Load a console font from stdin
  2237. .IP "\fBloadkmap\fR" 4
  2238. .IX Item "loadkmap"
  2239. loadkmap < keymap
  2240. .Sp
  2241. Load a binary keyboard translation table from stdin
  2242. .IP "\fBlogger\fR" 4
  2243. .IX Item "logger"
  2244. logger [\s-1OPTIONS\s0] [\s-1MESSAGE\s0]
  2245. .Sp
  2246. Write \s-1MESSAGE\s0 (or stdin) to syslog
  2247. .Sp
  2248. .Vb 3
  2249. \& \-s Log to stderr as well as the system log
  2250. \& \-t TAG Log using the specified tag (defaults to user name)
  2251. \& \-p PRIO Priority (numeric or facility.level pair)
  2252. .Ve
  2253. .IP "\fBlogin\fR" 4
  2254. .IX Item "login"
  2255. login [\-p] [\-h \s-1HOST\s0] [[\-f] \s-1USER\s0]
  2256. .Sp
  2257. Begin a new session on the system
  2258. .Sp
  2259. .Vb 3
  2260. \& \-f Don\*(Aqt authenticate (user already authenticated)
  2261. \& \-h HOST Host user came from (for network logins)
  2262. \& \-p Preserve environment
  2263. .Ve
  2264. .IP "\fBlogname\fR" 4
  2265. .IX Item "logname"
  2266. logname
  2267. .Sp
  2268. Print the name of the current user
  2269. .IP "\fBlogread\fR" 4
  2270. .IX Item "logread"
  2271. logread [\-fF]
  2272. .Sp
  2273. Show messages in syslogd's circular buffer
  2274. .Sp
  2275. .Vb 2
  2276. \& \-f Output data as log grows
  2277. \& \-F Same as \-f, but dump buffer first
  2278. .Ve
  2279. .IP "\fBlosetup\fR" 4
  2280. .IX Item "losetup"
  2281. losetup [\-r] [\-o \s-1OFS\s0] {\-f|LOOPDEV} \s-1FILE\s0 \- associate loop devices
  2282. losetup \-d \s-1LOOPDEV\s0 \- disassociate
  2283. losetup \-a \- show status
  2284. losetup \-f \- show next free loop device
  2285. .Sp
  2286. .Vb 3
  2287. \& \-o OFS Start OFS bytes into FILE
  2288. \& \-r Read\-only
  2289. \& \-f Show/use next free loop device
  2290. .Ve
  2291. .IP "\fBlpd\fR" 4
  2292. .IX Item "lpd"
  2293. lpd \s-1SPOOLDIR\s0 [\s-1HELPER\s0 [\s-1ARGS\s0]]
  2294. .Sp
  2295. \&\s-1SPOOLDIR\s0 must contain (symlinks to) device nodes or directories
  2296. with names matching print queue names. In the first case, jobs are
  2297. sent directly to the device. Otherwise each job is stored in queue
  2298. directory and \s-1HELPER\s0 program is called. Name of file to print
  2299. is passed in \f(CW$DATAFILE\fR variable.
  2300. Example:
  2301. .Sp
  2302. .Vb 1
  2303. \& tcpsvd \-E 0 515 softlimit \-m 999999 lpd /var/spool ./print
  2304. .Ve
  2305. .IP "\fBlpq\fR" 4
  2306. .IX Item "lpq"
  2307. lpq [\-P queue[@host[:port]]] [\-U \s-1USERNAME\s0] [\-d \s-1JOBID\s0]... [\-fs]
  2308. .Sp
  2309. .Vb 4
  2310. \& \-P lp service to connect to (else uses $PRINTER)
  2311. \& \-d Delete jobs
  2312. \& \-f Force any waiting job to be printed
  2313. \& \-s Short display
  2314. .Ve
  2315. .IP "\fBlpr\fR" 4
  2316. .IX Item "lpr"
  2317. lpr \-P queue[@host[:port]] \-U \s-1USERNAME\s0 \-J \s-1TITLE\s0 \-Vmh [\s-1FILE\s0]...
  2318. .Sp
  2319. .Vb 4
  2320. \& \-P lp service to connect to (else uses $PRINTER)
  2321. \& \-m Send mail on completion
  2322. \& \-h Print banner page too
  2323. \& \-V Verbose
  2324. .Ve
  2325. .IP "\fBls\fR" 4
  2326. .IX Item "ls"
  2327. ls [\-1AaCxdLHRFplinshrSXvctu] [\-w \s-1WIDTH\s0] [\s-1FILE\s0]...
  2328. .Sp
  2329. List directory contents
  2330. .Sp
  2331. .Vb 10
  2332. \& \-1 One column output
  2333. \& \-a Include entries which start with .
  2334. \& \-A Like \-a, but exclude . and ..
  2335. \& \-x List by lines
  2336. \& \-d List directory entries instead of contents
  2337. \& \-L Follow symlinks
  2338. \& \-H Follow symlinks on command line
  2339. \& \-R Recurse
  2340. \& \-p Append / to dir entries
  2341. \& \-F Append indicator (one of */=@|) to entries
  2342. \& \-l Long listing format
  2343. \& \-i List inode numbers
  2344. \& \-n List numeric UIDs and GIDs instead of names
  2345. \& \-s List allocated blocks
  2346. \& \-lc List ctime
  2347. \& \-lu List atime
  2348. \& \-\-full\-time List full date and time
  2349. \& \-h Human readable sizes (1K 243M 2G)
  2350. \& \-\-group\-directories\-first
  2351. \& \-S Sort by size
  2352. \& \-X Sort by extension
  2353. \& \-v Sort by version
  2354. \& \-t Sort by mtime
  2355. \& \-tc Sort by ctime
  2356. \& \-tu Sort by atime
  2357. \& \-r Reverse sort order
  2358. \& \-w N Format N columns wide
  2359. \& \-\-color[={always,never,auto}] Control coloring
  2360. .Ve
  2361. .IP "\fBlsattr\fR" 4
  2362. .IX Item "lsattr"
  2363. lsattr [\-Radlv] [\s-1FILE\s0]...
  2364. .Sp
  2365. List ext2 file attributes
  2366. .Sp
  2367. .Vb 5
  2368. \& \-R Recurse
  2369. \& \-a Don\*(Aqt hide entries starting with .
  2370. \& \-d List directory entries instead of contents
  2371. \& \-l List long flag names
  2372. \& \-v List version/generation number
  2373. .Ve
  2374. .IP "\fBlsmod\fR" 4
  2375. .IX Item "lsmod"
  2376. lsmod
  2377. .Sp
  2378. List loaded kernel modules
  2379. .IP "\fBlsof\fR" 4
  2380. .IX Item "lsof"
  2381. lsof
  2382. .Sp
  2383. Show all open files
  2384. .IP "\fBlspci\fR" 4
  2385. .IX Item "lspci"
  2386. lspci [\-mk]
  2387. .Sp
  2388. List all \s-1PCI\s0 devices
  2389. .Sp
  2390. .Vb 2
  2391. \& \-m Parsable output
  2392. \& \-k Show driver
  2393. .Ve
  2394. .IP "\fBlzcat\fR" 4
  2395. .IX Item "lzcat"
  2396. lzcat [\s-1FILE\s0]...
  2397. .Sp
  2398. Decompress to stdout
  2399. .IP "\fBlzma\fR" 4
  2400. .IX Item "lzma"
  2401. lzma \-d [\-cfk] [\s-1FILE\s0]...
  2402. .Sp
  2403. Decompress \s-1FILE\s0 (or stdin)
  2404. .Sp
  2405. .Vb 4
  2406. \& \-d Decompress
  2407. \& \-c Write to stdout
  2408. \& \-f Force
  2409. \& \-k Keep input files
  2410. .Ve
  2411. .IP "\fBlzop\fR" 4
  2412. .IX Item "lzop"
  2413. lzop [\-cfUvd123456789CF] [\s-1FILE\s0]...
  2414. .Sp
  2415. .Vb 8
  2416. \& \-1..9 Compression level
  2417. \& \-d Decompress
  2418. \& \-c Write to stdout
  2419. \& \-f Force
  2420. \& \-U Delete input files
  2421. \& \-v Verbose
  2422. \& \-F Don\*(Aqt store or verify checksum
  2423. \& \-C Also write checksum of compressed block
  2424. .Ve
  2425. .IP "\fBmakedevs\fR" 4
  2426. .IX Item "makedevs"
  2427. makedevs [\-d device_table] rootdir
  2428. .Sp
  2429. Create a range of special files as specified in a device table.
  2430. Device table entries take the form of:
  2431. .Sp
  2432. <name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>
  2433. Where name is the file name, type can be one of:
  2434. f Regular file
  2435. d Directory
  2436. c Character device
  2437. b Block device
  2438. p Fifo (named pipe)
  2439. uid is the user id for the target file, gid is the group id for the
  2440. target file. The rest of the entries (major, minor, etc) apply to
  2441. to device special files. A '\-' may be used for blank entries.
  2442. .IP "\fBmakemime\fR" 4
  2443. .IX Item "makemime"
  2444. makemime [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  2445. .Sp
  2446. Create multipart MIME-encoded message from FILEs
  2447. .Sp
  2448. .Vb 5
  2449. \& \-o FILE Output. Default: stdout
  2450. \& \-a HDR Add header(s). Examples:
  2451. \& "From: user@host.org", "Date: \`date \-R\`"
  2452. \& \-c CT Content type. Default: application/octet\-stream
  2453. \& \-C CS Charset. Default: us\-ascii
  2454. .Ve
  2455. .Sp
  2456. Other options are silently ignored
  2457. .IP "\fBman\fR" 4
  2458. .IX Item "man"
  2459. man [\-aw] [\s-1MANPAGE\s0]...
  2460. .Sp
  2461. Format and display manual page
  2462. .Sp
  2463. .Vb 2
  2464. \& \-a Display all pages
  2465. \& \-w Show page locations
  2466. .Ve
  2467. .Sp
  2468. \&\f(CW$COLUMNS\fR overrides output width
  2469. .IP "\fBmd5sum\fR" 4
  2470. .IX Item "md5sum"
  2471. md5sum [\-c[sw]] [\s-1FILE\s0]...
  2472. .Sp
  2473. Print or check \s-1MD5\s0 checksums
  2474. .Sp
  2475. .Vb 3
  2476. \& \-c Check sums against list in FILEs
  2477. \& \-s Don\*(Aqt output anything, status code shows success
  2478. \& \-w Warn about improperly formatted checksum lines
  2479. .Ve
  2480. .IP "\fBmdev\fR" 4
  2481. .IX Item "mdev"
  2482. mdev [\-s]
  2483. .Sp
  2484. mdev \-s is to be run during boot to scan /sys and populate /dev.
  2485. .Sp
  2486. Bare mdev is a kernel hotplug helper. To activate it:
  2487. echo /sbin/mdev >/proc/sys/kernel/hotplug
  2488. .Sp
  2489. It uses /etc/mdev.conf with lines
  2490. [\-][ENV=regex;]...DEVNAME \s-1UID:GID PERM\s0 [>|=PATH]|[!] [@|$|*PROG]
  2491. where \s-1DEVNAME\s0 is device name regex, \f(CW@major\fR,minor[\-minor2], or
  2492. environment variable regex. A common use of the latter is
  2493. to load modules for hotplugged devices:
  2494. .Sp
  2495. .Vb 1
  2496. \& $MODALIAS=.* 0:0 660 @modprobe "$MODALIAS"
  2497. .Ve
  2498. .Sp
  2499. If /dev/mdev.seq file exists, mdev will wait for its value
  2500. to match \f(CW$SEQNUM\fR variable. This prevents plug/unplug races.
  2501. To activate this feature, create empty /dev/mdev.seq at boot.
  2502. .Sp
  2503. If /dev/mdev.log file exists, debug log will be appended to it.
  2504. .IP "\fBmesg\fR" 4
  2505. .IX Item "mesg"
  2506. mesg [y|n]
  2507. .Sp
  2508. Control write access to your terminal
  2509. y Allow write access to your terminal
  2510. n Disallow write access to your terminal
  2511. .IP "\fBmicrocom\fR" 4
  2512. .IX Item "microcom"
  2513. microcom [\-d \s-1DELAY\s0] [\-t \s-1TIMEOUT\s0] [\-s \s-1SPEED\s0] [\-X] \s-1TTY\s0
  2514. .Sp
  2515. Copy bytes for stdin to \s-1TTY\s0 and from \s-1TTY\s0 to stdout
  2516. .Sp
  2517. .Vb 5
  2518. \& \-d Wait up to DELAY ms for TTY output before sending every
  2519. \& next byte to it
  2520. \& \-t Exit if both stdin and TTY are silent for TIMEOUT ms
  2521. \& \-s Set serial line to SPEED
  2522. \& \-X Disable special meaning of NUL and Ctrl\-X from stdin
  2523. .Ve
  2524. .IP "\fBmkdir\fR" 4
  2525. .IX Item "mkdir"
  2526. mkdir [\s-1OPTIONS\s0] \s-1DIRECTORY...\s0
  2527. .Sp
  2528. Create \s-1DIRECTORY\s0
  2529. .Sp
  2530. .Vb 2
  2531. \& \-m MODE Mode
  2532. \& \-p No error if exists; make parent directories as needed
  2533. .Ve
  2534. .IP "\fBmkdosfs\fR" 4
  2535. .IX Item "mkdosfs"
  2536. mkdosfs [\-v] [\-n \s-1LABEL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0]
  2537. .Sp
  2538. Make a \s-1FAT32\s0 filesystem
  2539. .Sp
  2540. .Vb 2
  2541. \& \-v Verbose
  2542. \& \-n LBL Volume label
  2543. .Ve
  2544. .IP "\fBmke2fs\fR" 4
  2545. .IX Item "mke2fs"
  2546. mke2fs [\-Fn] [\-b \s-1BLK_SIZE\s0] [\-i \s-1INODE_RATIO\s0] [\-I \s-1INODE_SIZE\s0] [\-m \s-1RESERVED_PERCENT\s0] [\-L \s-1LABEL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0]
  2547. .Sp
  2548. .Vb 7
  2549. \& \-b BLK_SIZE Block size, bytes
  2550. \& \-F Force
  2551. \& \-i RATIO Max number of files is filesystem_size / RATIO
  2552. \& \-I BYTES Inode size (min 128)
  2553. \& \-L LBL Volume label
  2554. \& \-m PERCENT Percent of blocks to reserve for admin
  2555. \& \-n Dry run
  2556. .Ve
  2557. .IP "\fBmkfifo\fR" 4
  2558. .IX Item "mkfifo"
  2559. mkfifo [\-m \s-1MODE\s0] \s-1NAME\s0
  2560. .Sp
  2561. Create named pipe
  2562. .Sp
  2563. .Vb 1
  2564. \& \-m MODE Mode (default a=rw)
  2565. .Ve
  2566. .IP "\fBmkfs.ext2\fR" 4
  2567. .IX Item "mkfs.ext2"
  2568. mkfs.ext2 [\-Fn] [\-b \s-1BLK_SIZE\s0] [\-i \s-1INODE_RATIO\s0] [\-I \s-1INODE_SIZE\s0] [\-m \s-1RESERVED_PERCENT\s0] [\-L \s-1LABEL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0]
  2569. .Sp
  2570. .Vb 7
  2571. \& \-b BLK_SIZE Block size, bytes
  2572. \& \-F Force
  2573. \& \-i RATIO Max number of files is filesystem_size / RATIO
  2574. \& \-I BYTES Inode size (min 128)
  2575. \& \-L LBL Volume label
  2576. \& \-m PERCENT Percent of blocks to reserve for admin
  2577. \& \-n Dry run
  2578. .Ve
  2579. .IP "\fBmkfs.minix\fR" 4
  2580. .IX Item "mkfs.minix"
  2581. mkfs.minix [\-c | \-l \s-1FILE\s0] [\-nXX] [\-iXX] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0]
  2582. .Sp
  2583. Make a \s-1MINIX\s0 filesystem
  2584. .Sp
  2585. .Vb 5
  2586. \& \-c Check device for bad blocks
  2587. \& \-n [14|30] Maximum length of filenames
  2588. \& \-i INODES Number of inodes for the filesystem
  2589. \& \-l FILE Read bad blocks list from FILE
  2590. \& \-v Make version 2 filesystem
  2591. .Ve
  2592. .IP "\fBmkfs.vfat\fR" 4
  2593. .IX Item "mkfs.vfat"
  2594. mkfs.vfat [\-v] [\-n \s-1LABEL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0]
  2595. .Sp
  2596. Make a \s-1FAT32\s0 filesystem
  2597. .Sp
  2598. .Vb 2
  2599. \& \-v Verbose
  2600. \& \-n LBL Volume label
  2601. .Ve
  2602. .IP "\fBmknod\fR" 4
  2603. .IX Item "mknod"
  2604. mknod [\-m \s-1MODE\s0] \s-1NAME TYPE MAJOR MINOR\s0
  2605. .Sp
  2606. Create a special file (block, character, or pipe)
  2607. .Sp
  2608. .Vb 5
  2609. \& \-m MODE Creation mode (default a=rw)
  2610. \&TYPE:
  2611. \& b Block device
  2612. \& c or u Character device
  2613. \& p Named pipe (MAJOR and MINOR are ignored)
  2614. .Ve
  2615. .IP "\fBmkpasswd\fR" 4
  2616. .IX Item "mkpasswd"
  2617. mkpasswd [\s-1OPTIONS\s0] [\s-1PASSWORD\s0] [\s-1SALT\s0]
  2618. .Sp
  2619. Print \fBcrypt\fR\|(3) hashed \s-1PASSWORD\s0
  2620. .Sp
  2621. .Vb 3
  2622. \& \-P,\-\-password\-fd N Read password from fd N
  2623. \& \-m,\-\-method TYPE des,md5,sha256/512 (default des)
  2624. \& \-S,\-\-salt SALT
  2625. .Ve
  2626. .IP "\fBmkswap\fR" 4
  2627. .IX Item "mkswap"
  2628. mkswap [\-L \s-1LBL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0]
  2629. .Sp
  2630. Prepare \s-1BLOCKDEV\s0 to be used as swap partition
  2631. .Sp
  2632. .Vb 1
  2633. \& \-L LBL Label
  2634. .Ve
  2635. .IP "\fBmktemp\fR" 4
  2636. .IX Item "mktemp"
  2637. mktemp [\-dt] [\-p \s-1DIR\s0] [\s-1TEMPLATE\s0]
  2638. .Sp
  2639. Create a temporary file with name based on \s-1TEMPLATE\s0 and print its name.
  2640. \&\s-1TEMPLATE\s0 must end with \s-1XXXXXX\s0 (e.g. [/dir/]nameXXXXXX).
  2641. Without \s-1TEMPLATE,\s0 \-t tmp.XXXXXX is assumed.
  2642. .Sp
  2643. .Vb 5
  2644. \& \-d Make directory, not file
  2645. \& \-q Fail silently on errors
  2646. \& \-t Prepend base directory name to TEMPLATE
  2647. \& \-p DIR Use DIR as a base directory (implies \-t)
  2648. \& \-u Do not create anything; print a name
  2649. .Ve
  2650. .Sp
  2651. Base directory is: \-p \s-1DIR,\s0 else \f(CW$TMPDIR\fR, else /tmp
  2652. .IP "\fBmodinfo\fR" 4
  2653. .IX Item "modinfo"
  2654. modinfo [\-adlpn0] [\-F keyword] \s-1MODULE\s0
  2655. .Sp
  2656. .Vb 6
  2657. \& \-a Shortcut for \*(Aq\-F author\*(Aq
  2658. \& \-d Shortcut for \*(Aq\-F description\*(Aq
  2659. \& \-l Shortcut for \*(Aq\-F license\*(Aq
  2660. \& \-p Shortcut for \*(Aq\-F parm\*(Aq
  2661. \& \-F keyword Keyword to look for
  2662. \& \-0 Separate output with NULs
  2663. .Ve
  2664. .IP "\fBmodprobe\fR" 4
  2665. .IX Item "modprobe"
  2666. modprobe [\-rq] \s-1MODULE\s0 [SYMBOL=VALUE]...
  2667. .Sp
  2668. .Vb 2
  2669. \& \-r Remove MODULE
  2670. \& \-q Quiet
  2671. .Ve
  2672. .IP "\fBmore\fR" 4
  2673. .IX Item "more"
  2674. more [\s-1FILE\s0]...
  2675. .Sp
  2676. View \s-1FILE\s0 (or stdin) one screenful at a time
  2677. .IP "\fBmount\fR" 4
  2678. .IX Item "mount"
  2679. mount [\s-1OPTIONS\s0] [\-o \s-1OPT\s0] \s-1DEVICE NODE\s0
  2680. .Sp
  2681. Mount a filesystem. Filesystem autodetection requires /proc.
  2682. .Sp
  2683. .Vb 10
  2684. \& \-a Mount all filesystems in fstab
  2685. \& \-f Dry run
  2686. \& \-v Verbose
  2687. \& \-r Read\-only mount
  2688. \& \-t FSTYPE[,...] Filesystem type(s)
  2689. \& \-T FILE Read FILE instead of /etc/fstab
  2690. \& \-O OPT Mount only filesystems with option OPT (\-a only)
  2691. \&\-o OPT:
  2692. \& loop Ignored (loop devices are autodetected)
  2693. \& [a]sync Writes are [a]synchronous
  2694. \& [no]atime Disable/enable updates to inode access times
  2695. \& [no]diratime Disable/enable atime updates to directories
  2696. \& [no]relatime Disable/enable atime updates relative to modification time
  2697. \& [no]dev (Dis)allow use of special device files
  2698. \& [no]exec (Dis)allow use of executable files
  2699. \& [no]suid (Dis)allow set\-user\-id\-root programs
  2700. \& [r]shared Convert [recursively] to a shared subtree
  2701. \& [r]slave Convert [recursively] to a slave subtree
  2702. \& [r]private Convert [recursively] to a private subtree
  2703. \& [un]bindable Make mount point [un]able to be bind mounted
  2704. \& [r]bind Bind a file or directory [recursively] to another location
  2705. \& move Relocate an existing mount point
  2706. \& remount Remount a mounted filesystem, changing flags
  2707. \& ro Same as \-r
  2708. .Ve
  2709. .Sp
  2710. There are filesystem-specific \-o flags.
  2711. .IP "\fBmountpoint\fR" 4
  2712. .IX Item "mountpoint"
  2713. mountpoint [\-q] <[\-dn] \s-1DIR\s0 | \-x \s-1DEVICE\s0>
  2714. .Sp
  2715. Check if the directory is a mountpoint
  2716. .Sp
  2717. .Vb 4
  2718. \& \-q Quiet
  2719. \& \-d Print major/minor device number of the filesystem
  2720. \& \-n Print device name of the filesystem
  2721. \& \-x Print major/minor device number of the blockdevice
  2722. .Ve
  2723. .IP "\fBmpstat\fR" 4
  2724. .IX Item "mpstat"
  2725. mpstat [\-A] [\-I SUM|CPU|ALL|SCPU] [\-u] [\-P num|ALL] [\s-1INTERVAL\s0 [\s-1COUNT\s0]]
  2726. .Sp
  2727. Per-processor statistics
  2728. .Sp
  2729. .Vb 4
  2730. \& \-A Same as \-I ALL \-u \-P ALL
  2731. \& \-I SUM|CPU|ALL|SCPU Report interrupt statistics
  2732. \& \-P num|ALL Processor to monitor
  2733. \& \-u Report CPU utilization
  2734. .Ve
  2735. .IP "\fBmt\fR" 4
  2736. .IX Item "mt"
  2737. mt [\-f device] opcode value
  2738. .Sp
  2739. Control magnetic tape drive operation
  2740. .Sp
  2741. Available Opcodes:
  2742. .Sp
  2743. bsf bsfm bsr bss datacompression drvbuffer eof eom erase
  2744. fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2
  2745. ras3 reset retension rewind rewoffline seek setblk setdensity
  2746. setpart tell unload unlock weof wset
  2747. .IP "\fBmv\fR" 4
  2748. .IX Item "mv"
  2749. mv [\-fin] \s-1SOURCE DEST\s0
  2750. or: mv [\-fin] \s-1SOURCE... DIRECTORY\s0
  2751. .Sp
  2752. Rename \s-1SOURCE\s0 to \s-1DEST,\s0 or move \s-1SOURCE\s0(s) to \s-1DIRECTORY\s0
  2753. .Sp
  2754. .Vb 3
  2755. \& \-f Don\*(Aqt prompt before overwriting
  2756. \& \-i Interactive, prompt before overwrite
  2757. \& \-n Don\*(Aqt overwrite an existing file
  2758. .Ve
  2759. .IP "\fBnameif\fR" 4
  2760. .IX Item "nameif"
  2761. nameif [\-s] [\-c \s-1FILE\s0] [\s-1IFNAME SELECTOR\s0]...
  2762. .Sp
  2763. Rename network interface while it in the down state.
  2764. The device matched by \s-1SELECTOR\s0 is renamed to \s-1IFACE.
  2765. SELECTOR\s0 can be a combination of:
  2766. .Sp
  2767. .Vb 4
  2768. \& driver=STRING
  2769. \& bus=STRING
  2770. \& phy_address=NUM
  2771. \& [mac=]XX:XX:XX:XX:XX:XX
  2772. \&
  2773. \& \-c FILE Configuration file (default: /etc/mactab)
  2774. \& \-s Log to syslog
  2775. .Ve
  2776. .IP "\fBnanddump\fR" 4
  2777. .IX Item "nanddump"
  2778. nanddump [\-no] [\-\-bb padbad|skipbad] [\-s \s-1ADDR\s0] [\-l \s-1LEN\s0] [\-f \s-1FILE\s0] \s-1MTD_DEVICE\s0
  2779. .Sp
  2780. Dump \s-1MTD_DEVICE\s0
  2781. .Sp
  2782. .Vb 8
  2783. \& \-n Read without ecc
  2784. \& \-o Dump oob data
  2785. \& \-s ADDR Start address
  2786. \& \-l LEN Length
  2787. \& \-f FILE Dump to file (\*(Aq\-\*(Aq for stdout)
  2788. \& \-\-bb METHOD
  2789. \& skipbad: skip bad blocks
  2790. \& padbad: substitute bad blocks by 0xff (default)
  2791. .Ve
  2792. .IP "\fBnandwrite\fR" 4
  2793. .IX Item "nandwrite"
  2794. nandwrite [\-np] [\-s \s-1ADDR\s0] \s-1MTD_DEVICE\s0 [\s-1FILE\s0]
  2795. .Sp
  2796. Write to \s-1MTD_DEVICE\s0
  2797. .Sp
  2798. .Vb 3
  2799. \& \-n Write without ecc
  2800. \& \-p Pad to page size
  2801. \& \-s ADDR Start address
  2802. .Ve
  2803. .IP "\fBnbd-client\fR" 4
  2804. .IX Item "nbd-client"
  2805. nbd-client \s-1HOST PORT BLOCKDEV\s0
  2806. .Sp
  2807. Connect to \s-1HOST\s0 and provide a network block device on \s-1BLOCKDEV\s0
  2808. .IP "\fBnc\fR" 4
  2809. .IX Item "nc"
  2810. nc [\s-1OPTIONS\s0] \s-1HOST PORT\s0 \- connect
  2811. nc [\s-1OPTIONS\s0] \-l \-p \s-1PORT\s0 [\s-1HOST\s0] [\s-1PORT\s0] \- listen
  2812. .Sp
  2813. .Vb 12
  2814. \& \-e PROG Run PROG after connect (must be last)
  2815. \& \-l Listen mode, for inbound connects
  2816. \& \-lk With \-e, provides persistent server
  2817. \& \-p PORT Local port
  2818. \& \-s ADDR Local address
  2819. \& \-w SEC Timeout for connects and final net reads
  2820. \& \-i SEC Delay interval for lines sent
  2821. \& \-n Don\*(Aqt do DNS resolution
  2822. \& \-u UDP mode
  2823. \& \-v Verbose
  2824. \& \-o FILE Hex dump traffic
  2825. \& \-z Zero\-I/O mode (scanning)
  2826. .Ve
  2827. .IP "\fBnetstat\fR" 4
  2828. .IX Item "netstat"
  2829. netstat [\-ral] [\-tuwx] [\-enWp]
  2830. .Sp
  2831. Display networking information
  2832. .Sp
  2833. .Vb 10
  2834. \& \-r Routing table
  2835. \& \-a All sockets
  2836. \& \-l Listening sockets
  2837. \& Else: connected sockets
  2838. \& \-t TCP sockets
  2839. \& \-u UDP sockets
  2840. \& \-w Raw sockets
  2841. \& \-x Unix sockets
  2842. \& Else: all socket types
  2843. \& \-e Other/more information
  2844. \& \-n Don\*(Aqt resolve names
  2845. \& \-W Wide display
  2846. \& \-p Show PID/program name for sockets
  2847. .Ve
  2848. .IP "\fBnice\fR" 4
  2849. .IX Item "nice"
  2850. nice [\-n \s-1ADJUST\s0] [\s-1PROG ARGS\s0]
  2851. .Sp
  2852. Change scheduling priority, run \s-1PROG\s0
  2853. .Sp
  2854. .Vb 1
  2855. \& \-n ADJUST Adjust priority by ADJUST
  2856. .Ve
  2857. .IP "\fBnl\fR" 4
  2858. .IX Item "nl"
  2859. nl [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  2860. .Sp
  2861. Write FILEs to standard output with line numbers added
  2862. .Sp
  2863. .Vb 5
  2864. \& \-b STYLE Which lines to number \- a: all, t: nonempty, n: none
  2865. \& \-i N Line number increment
  2866. \& \-s STRING Use STRING as line number separator
  2867. \& \-v N Start from N
  2868. \& \-w N Width of line numbers
  2869. .Ve
  2870. .IP "\fBnmeter\fR" 4
  2871. .IX Item "nmeter"
  2872. nmeter [\-d \s-1MSEC\s0] \s-1FORMAT_STRING\s0
  2873. .Sp
  2874. Monitor system in real time
  2875. .Sp
  2876. .Vb 1
  2877. \& \-d MSEC Milliseconds between updates, default:1000, none:\-1
  2878. .Ve
  2879. .Sp
  2880. Format specifiers:
  2881. .Sp
  2882. .Vb 10
  2883. \& %Nc or %[cN] CPU. N \- bar size (default 10)
  2884. \& (displays: S:system U:user N:niced D:iowait I:irq i:softirq)
  2885. \& %[nINTERFACE] Network INTERFACE
  2886. \& %m Allocated memory
  2887. \& %[mf] Free memory
  2888. \& %[mt] Total memory
  2889. \& %s Allocated swap
  2890. \& %f Number of used file descriptors
  2891. \& %Ni Total/specific IRQ rate
  2892. \& %x Context switch rate
  2893. \& %p Forks
  2894. \& %[pn] # of processes
  2895. \& %b Block io
  2896. \& %Nt Time (with N decimal points)
  2897. \& %r Print <cr> instead of <lf> at EOL
  2898. .Ve
  2899. .IP "\fBnohup\fR" 4
  2900. .IX Item "nohup"
  2901. nohup \s-1PROG ARGS\s0
  2902. .Sp
  2903. Run \s-1PROG\s0 immune to hangups, with output to a non-tty
  2904. .IP "\fBnproc\fR" 4
  2905. .IX Item "nproc"
  2906. nproc
  2907. .Sp
  2908. Print number of CPUs
  2909. .IP "\fBnsenter\fR" 4
  2910. .IX Item "nsenter"
  2911. nsenter [\s-1OPTIONS\s0] [\s-1PROG\s0 [\s-1ARGS\s0]]
  2912. .Sp
  2913. .Vb 10
  2914. \& \-t PID Target process to get namespaces from
  2915. \& \-m[FILE] Enter mount namespace
  2916. \& \-u[FILE] Enter UTS namespace (hostname etc)
  2917. \& \-i[FILE] Enter System V IPC namespace
  2918. \& \-n[FILE] Enter network namespace
  2919. \& \-p[FILE] Enter pid namespace
  2920. \& \-U[FILE] Enter user namespace
  2921. \& \-S UID Set uid in entered namespace
  2922. \& \-G GID Set gid in entered namespace
  2923. \& \-\-preserve\-credentials Don\*(Aqt touch uids or gids
  2924. \& \-r[DIR] Set root directory
  2925. \& \-w[DIR] Set working directory
  2926. \& \-F Don\*(Aqt fork before exec\*(Aqing PROG
  2927. .Ve
  2928. .IP "\fBnslookup\fR" 4
  2929. .IX Item "nslookup"
  2930. nslookup [\s-1HOST\s0] [\s-1SERVER\s0]
  2931. .Sp
  2932. Query the nameserver for the \s-1IP\s0 address of the given \s-1HOST\s0
  2933. optionally using a specified \s-1DNS\s0 server
  2934. .IP "\fBntpd\fR" 4
  2935. .IX Item "ntpd"
  2936. ntpd [\-dnqNwl \-I \s-1IFACE\s0] [\-S \s-1PROG\s0] [\-p \s-1PEER\s0]...
  2937. .Sp
  2938. \&\s-1NTP\s0 client/server
  2939. .Sp
  2940. .Vb 11
  2941. \& \-d Verbose (may be repeated)
  2942. \& \-n Do not daemonize
  2943. \& \-q Quit after clock is set
  2944. \& \-N Run at high priority
  2945. \& \-w Do not set time (only query peers), implies \-n
  2946. \& \-S PROG Run PROG after stepping time, stratum change, and every 11 mins
  2947. \& \-p PEER Obtain time from PEER (may be repeated)
  2948. \& If \-p is not given, \*(Aqserver HOST\*(Aq lines
  2949. \& from /etc/ntp.conf are used
  2950. \& \-l Also run as server on port 123
  2951. \& \-I IFACE Bind server to IFACE, implies \-l
  2952. .Ve
  2953. .IP "\fBnuke\fR" 4
  2954. .IX Item "nuke"
  2955. nuke \s-1DIR...\s0
  2956. .Sp
  2957. Remove DIRs
  2958. .IP "\fBod\fR" 4
  2959. .IX Item "od"
  2960. od [\-abcdfhilovxs] [\-t \s-1TYPE\s0] [\-A \s-1RADIX\s0] [\-N \s-1SIZE\s0] [\-j \s-1SKIP\s0] [\-S \s-1MINSTR\s0] [\-w \s-1WIDTH\s0] [\s-1FILE\s0]...
  2961. .Sp
  2962. Print FILEs (or stdin) unambiguously, as octal bytes by default
  2963. .IP "\fBopenvt\fR" 4
  2964. .IX Item "openvt"
  2965. openvt [\-c N] [\-sw] [\s-1PROG ARGS\s0]
  2966. .Sp
  2967. Start \s-1PROG\s0 on a new virtual terminal
  2968. .Sp
  2969. .Vb 3
  2970. \& \-c N Use specified VT
  2971. \& \-s Switch to the VT
  2972. \& \-w Wait for PROG to exit
  2973. .Ve
  2974. .IP "\fBpartprobe\fR" 4
  2975. .IX Item "partprobe"
  2976. partprobe \s-1DEVICE...\s0
  2977. .Sp
  2978. Ask kernel to rescan partition table
  2979. .IP "\fBpasswd\fR" 4
  2980. .IX Item "passwd"
  2981. passwd [\s-1OPTIONS\s0] [\s-1USER\s0]
  2982. .Sp
  2983. Change \s-1USER\s0's password (default: current user)
  2984. .Sp
  2985. .Vb 4
  2986. \& \-a ALG des,md5,sha256/512 (default des)
  2987. \& \-d Set password to \*(Aq\*(Aq
  2988. \& \-l Lock (disable) account
  2989. \& \-u Unlock (enable) account
  2990. .Ve
  2991. .IP "\fBpaste\fR" 4
  2992. .IX Item "paste"
  2993. paste [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  2994. .Sp
  2995. Paste lines from each input file, separated with tab
  2996. .Sp
  2997. .Vb 2
  2998. \& \-d LIST Use delimiters from LIST, not tab
  2999. \& \-s Serial: one file at a time
  3000. .Ve
  3001. .IP "\fBpatch\fR" 4
  3002. .IX Item "patch"
  3003. patch [\s-1OPTIONS\s0] [\s-1ORIGFILE\s0 [\s-1PATCHFILE\s0]]
  3004. .Sp
  3005. .Vb 5
  3006. \& \-p,\-\-strip N Strip N leading components from file names
  3007. \& \-i,\-\-input DIFF Read DIFF instead of stdin
  3008. \& \-R,\-\-reverse Reverse patch
  3009. \& \-N,\-\-forward Ignore already applied patches
  3010. \& \-E,\-\-remove\-empty\-files Remove output files if they become empty
  3011. .Ve
  3012. .IP "\fBpgrep\fR" 4
  3013. .IX Item "pgrep"
  3014. pgrep [\-flanovx] [\-s SID|\-P PPID|PATTERN]
  3015. .Sp
  3016. Display process(es) selected by regex \s-1PATTERN\s0
  3017. .Sp
  3018. .Vb 9
  3019. \& \-l Show command name too
  3020. \& \-a Show command line too
  3021. \& \-f Match against entire command line
  3022. \& \-n Show the newest process only
  3023. \& \-o Show the oldest process only
  3024. \& \-v Negate the match
  3025. \& \-x Match whole name (not substring)
  3026. \& \-s Match session ID (0 for current)
  3027. \& \-P Match parent process ID
  3028. .Ve
  3029. .IP "\fBpidof\fR" 4
  3030. .IX Item "pidof"
  3031. pidof [\s-1OPTIONS\s0] [\s-1NAME\s0]...
  3032. .Sp
  3033. List PIDs of all processes with names that match NAMEs
  3034. .Sp
  3035. .Vb 3
  3036. \& \-s Show only one PID
  3037. \& \-o PID Omit given pid
  3038. \& Use %PPID to omit pid of pidof\*(Aqs parent
  3039. .Ve
  3040. .IP "\fBping\fR" 4
  3041. .IX Item "ping"
  3042. ping [\s-1OPTIONS\s0] \s-1HOST\s0
  3043. .Sp
  3044. Send \s-1ICMP ECHO_REQUEST\s0 packets to network hosts
  3045. .Sp
  3046. .Vb 12
  3047. \& \-4,\-6 Force IP or IPv6 name resolution
  3048. \& \-c CNT Send only CNT pings
  3049. \& \-s SIZE Send SIZE data bytes in packets (default 56)
  3050. \& \-t TTL Set TTL
  3051. \& \-I IFACE/IP Source interface or IP address
  3052. \& \-W SEC Seconds to wait for the first response (default 10)
  3053. \& (after all \-c CNT packets are sent)
  3054. \& \-w SEC Seconds until ping exits (default:infinite)
  3055. \& (can exit earlier with \-c CNT)
  3056. \& \-q Quiet, only display output at start
  3057. \& and when finished
  3058. \& \-p HEXBYTE Pattern to use for payload
  3059. .Ve
  3060. .IP "\fBping6\fR" 4
  3061. .IX Item "ping6"
  3062. ping6 [\s-1OPTIONS\s0] \s-1HOST\s0
  3063. .Sp
  3064. Send \s-1ICMP ECHO_REQUEST\s0 packets to network hosts
  3065. .Sp
  3066. .Vb 6
  3067. \& \-c CNT Send only CNT pings
  3068. \& \-s SIZE Send SIZE data bytes in packets (default 56)
  3069. \& \-I IFACE/IP Source interface or IP address
  3070. \& \-q Quiet, only display output at start
  3071. \& and when finished
  3072. \& \-p HEXBYTE Pattern to use for payload
  3073. .Ve
  3074. .IP "\fBpivot_root\fR" 4
  3075. .IX Item "pivot_root"
  3076. pivot_root \s-1NEW_ROOT PUT_OLD\s0
  3077. .Sp
  3078. Move the current root file system to \s-1PUT_OLD\s0 and make \s-1NEW_ROOT\s0
  3079. the new root file system
  3080. .IP "\fBpkill\fR" 4
  3081. .IX Item "pkill"
  3082. pkill [\-l|\-SIGNAL] [\-fnovx] [\-s SID|\-P PPID|PATTERN]
  3083. .Sp
  3084. Send a signal to process(es) selected by regex \s-1PATTERN\s0
  3085. .Sp
  3086. .Vb 8
  3087. \& \-l List all signals
  3088. \& \-f Match against entire command line
  3089. \& \-n Signal the newest process only
  3090. \& \-o Signal the oldest process only
  3091. \& \-v Negate the match
  3092. \& \-x Match whole name (not substring)
  3093. \& \-s Match session ID (0 for current)
  3094. \& \-P Match parent process ID
  3095. .Ve
  3096. .IP "\fBpmap\fR" 4
  3097. .IX Item "pmap"
  3098. pmap [\-xq] \s-1PID...\s0
  3099. .Sp
  3100. Display process memory usage
  3101. .Sp
  3102. .Vb 2
  3103. \& \-x Show details
  3104. \& \-q Quiet
  3105. .Ve
  3106. .IP "\fBpopmaildir\fR" 4
  3107. .IX Item "popmaildir"
  3108. popmaildir [\s-1OPTIONS\s0] \s-1MAILDIR\s0 [\s-1CONN_HELPER ARGS\s0]
  3109. .Sp
  3110. Fetch content of remote mailbox to local maildir
  3111. .Sp
  3112. .Vb 6
  3113. \& \-s Skip authorization
  3114. \& \-T Get messages with TOP instead of RETR
  3115. \& \-k Keep retrieved messages on the server
  3116. \& \-t SEC Network timeout
  3117. \& \-F "PROG ARGS" Filter program (may be repeated)
  3118. \& \-M "PROG ARGS" Delivery program
  3119. .Ve
  3120. .Sp
  3121. Fetch from plain \s-1POP3\s0 server:
  3122. popmaildir \-k \s-1DIR\s0 nc pop3.server.com 110 <user_and_pass.txt
  3123. Fetch from SSLed \s-1POP3\s0 server and delete fetched emails:
  3124. popmaildir \s-1DIR\s0 \*(-- openssl s_client \-quiet \-connect pop3.server.com:995 <user_and_pass.txt
  3125. .IP "\fBpoweroff\fR" 4
  3126. .IX Item "poweroff"
  3127. poweroff [\-d \s-1DELAY\s0] [\-n] [\-f]
  3128. .Sp
  3129. Halt and shut off power
  3130. .Sp
  3131. .Vb 3
  3132. \& \-d SEC Delay interval
  3133. \& \-n Do not sync
  3134. \& \-f Force (don\*(Aqt go through init)
  3135. .Ve
  3136. .IP "\fBpowertop\fR" 4
  3137. .IX Item "powertop"
  3138. powertop
  3139. .Sp
  3140. Analyze power consumption on Intel-based laptops
  3141. .IP "\fBprintenv\fR" 4
  3142. .IX Item "printenv"
  3143. printenv [\s-1VARIABLE\s0]...
  3144. .Sp
  3145. Print environment VARIABLEs.
  3146. If no \s-1VARIABLE\s0 specified, print all.
  3147. .IP "\fBprintf\fR" 4
  3148. .IX Item "printf"
  3149. printf \s-1FORMAT\s0 [\s-1ARG\s0]...
  3150. .Sp
  3151. Format and print \s-1ARG\s0(s) according to \s-1FORMAT\s0 (a\-la C printf)
  3152. .IP "\fBps\fR" 4
  3153. .IX Item "ps"
  3154. ps [\-o \s-1COL1\s0,COL2=HEADER] [\-T]
  3155. .Sp
  3156. Show list of processes
  3157. .Sp
  3158. .Vb 2
  3159. \& \-o COL1,COL2=HEADER Select columns for display
  3160. \& \-T Show threads
  3161. .Ve
  3162. .IP "\fBpscan\fR" 4
  3163. .IX Item "pscan"
  3164. pscan [\-cb] [\-p \s-1MIN_PORT\s0] [\-P \s-1MAX_PORT\s0] [\-t \s-1TIMEOUT\s0] [\-T \s-1MIN_RTT\s0] \s-1HOST\s0
  3165. .Sp
  3166. Scan a host, print all open ports
  3167. .Sp
  3168. .Vb 6
  3169. \& \-c Show closed ports too
  3170. \& \-b Show blocked ports too
  3171. \& \-p Scan from this port (default 1)
  3172. \& \-P Scan up to this port (default 1024)
  3173. \& \-t Timeout (default 5000 ms)
  3174. \& \-T Minimum rtt (default 5 ms, increase for congested hosts)
  3175. .Ve
  3176. .IP "\fBpstree\fR" 4
  3177. .IX Item "pstree"
  3178. pstree [\-p] [PID|USER]
  3179. .Sp
  3180. Display process tree, optionally start from \s-1USER\s0 or \s-1PID\s0
  3181. .Sp
  3182. .Vb 1
  3183. \& \-p Show pids
  3184. .Ve
  3185. .IP "\fBpwd\fR" 4
  3186. .IX Item "pwd"
  3187. pwd
  3188. .Sp
  3189. Print the full filename of the current working directory
  3190. .IP "\fBpwdx\fR" 4
  3191. .IX Item "pwdx"
  3192. pwdx \s-1PID...\s0
  3193. .Sp
  3194. Show current directory for PIDs
  3195. .IP "\fBraidautorun\fR" 4
  3196. .IX Item "raidautorun"
  3197. raidautorun \s-1DEVICE\s0
  3198. .Sp
  3199. Tell the kernel to automatically search and start \s-1RAID\s0 arrays
  3200. .IP "\fBrdate\fR" 4
  3201. .IX Item "rdate"
  3202. rdate [\-s/\-p] \s-1HOST\s0
  3203. .Sp
  3204. Set and print time from \s-1HOST\s0 using \s-1RFC 868\s0
  3205. .Sp
  3206. .Vb 2
  3207. \& \-s Only set system time
  3208. \& \-p Only print time
  3209. .Ve
  3210. .IP "\fBrdev\fR" 4
  3211. .IX Item "rdev"
  3212. rdev
  3213. .Sp
  3214. Print the device node associated with the filesystem mounted at '/'
  3215. .IP "\fBreadahead\fR" 4
  3216. .IX Item "readahead"
  3217. readahead [\s-1FILE\s0]...
  3218. .Sp
  3219. Preload FILEs to \s-1RAM\s0
  3220. .IP "\fBreadlink\fR" 4
  3221. .IX Item "readlink"
  3222. readlink [\-fnv] \s-1FILE\s0
  3223. .Sp
  3224. Display the value of a symlink
  3225. .Sp
  3226. .Vb 3
  3227. \& \-f Canonicalize by following all symlinks
  3228. \& \-n Don\*(Aqt add newline
  3229. \& \-v Verbose
  3230. .Ve
  3231. .IP "\fBreadprofile\fR" 4
  3232. .IX Item "readprofile"
  3233. readprofile [\s-1OPTIONS\s0]
  3234. .Sp
  3235. .Vb 10
  3236. \& \-m mapfile (Default: /boot/System.map)
  3237. \& \-p profile (Default: /proc/profile)
  3238. \& \-M NUM Set the profiling multiplier to NUM
  3239. \& \-i Print only info about the sampling step
  3240. \& \-v Verbose
  3241. \& \-a Print all symbols, even if count is 0
  3242. \& \-b Print individual histogram\-bin counts
  3243. \& \-s Print individual counters within functions
  3244. \& \-r Reset all the counters (root only)
  3245. \& \-n Disable byte order auto\-detection
  3246. .Ve
  3247. .IP "\fBrealpath\fR" 4
  3248. .IX Item "realpath"
  3249. realpath \s-1FILE...\s0
  3250. .Sp
  3251. Return the absolute pathnames of given \s-1FILE\s0
  3252. .IP "\fBreboot\fR" 4
  3253. .IX Item "reboot"
  3254. reboot [\-d \s-1DELAY\s0] [\-n] [\-f]
  3255. .Sp
  3256. Reboot the system
  3257. .Sp
  3258. .Vb 3
  3259. \& \-d SEC Delay interval
  3260. \& \-n Do not sync
  3261. \& \-f Force (don\*(Aqt go through init)
  3262. .Ve
  3263. .IP "\fBreformime\fR" 4
  3264. .IX Item "reformime"
  3265. reformime [\s-1OPTIONS\s0]
  3266. .Sp
  3267. Parse MIME-encoded message on stdin
  3268. .Sp
  3269. .Vb 3
  3270. \& \-x PREFIX Extract content of MIME sections to files
  3271. \& \-X PROG ARGS Filter content of MIME sections through PROG
  3272. \& Must be the last option
  3273. .Ve
  3274. .Sp
  3275. Other options are silently ignored
  3276. .IP "\fBremove-shell\fR" 4
  3277. .IX Item "remove-shell"
  3278. remove-shell \s-1SHELL...\s0
  3279. .Sp
  3280. Remove SHELLs from /etc/shells
  3281. .IP "\fBrenice\fR" 4
  3282. .IX Item "renice"
  3283. renice [\-n] \s-1PRIORITY\s0 [[\-p | \-g | \-u] \s-1ID...\s0]...
  3284. .Sp
  3285. Change scheduling priority of a running process
  3286. .Sp
  3287. .Vb 5
  3288. \& \-n Add PRIORITY to current nice value
  3289. \& Without \-n, nice value is set to PRIORITY
  3290. \& \-p Process ids (default)
  3291. \& \-g Process group ids
  3292. \& \-u Process user names
  3293. .Ve
  3294. .IP "\fBreset\fR" 4
  3295. .IX Item "reset"
  3296. reset
  3297. .Sp
  3298. Reset the screen
  3299. .IP "\fBresize\fR" 4
  3300. .IX Item "resize"
  3301. resize
  3302. .Sp
  3303. Resize the screen
  3304. .IP "\fBresume\fR" 4
  3305. .IX Item "resume"
  3306. resume \s-1BLOCKDEV\s0 [\s-1OFFSET\s0]
  3307. .Sp
  3308. Restore system state from 'suspend\-to\-disk' data in \s-1BLOCKDEV\s0
  3309. .IP "\fBrev\fR" 4
  3310. .IX Item "rev"
  3311. rev [\s-1FILE\s0]...
  3312. .Sp
  3313. Reverse lines of \s-1FILE\s0
  3314. .IP "\fBrm\fR" 4
  3315. .IX Item "rm"
  3316. rm [\-irf] \s-1FILE...\s0
  3317. .Sp
  3318. Remove (unlink) FILEs
  3319. .Sp
  3320. .Vb 3
  3321. \& \-i Always prompt before removing
  3322. \& \-f Never prompt
  3323. \& \-R,\-r Recurse
  3324. .Ve
  3325. .IP "\fBrmdir\fR" 4
  3326. .IX Item "rmdir"
  3327. rmdir [\s-1OPTIONS\s0] \s-1DIRECTORY...\s0
  3328. .Sp
  3329. Remove \s-1DIRECTORY\s0 if it is empty
  3330. .Sp
  3331. .Vb 2
  3332. \& \-p Include parents
  3333. \& \-\-ignore\-fail\-on\-non\-empty
  3334. .Ve
  3335. .IP "\fBrmmod\fR" 4
  3336. .IX Item "rmmod"
  3337. rmmod \s-1MODULE...\s0
  3338. .Sp
  3339. Unload kernel modules
  3340. .IP "\fBroute\fR" 4
  3341. .IX Item "route"
  3342. route [{add|del|delete}]
  3343. .Sp
  3344. Edit kernel routing tables
  3345. .Sp
  3346. .Vb 3
  3347. \& \-n Don\*(Aqt resolve names
  3348. \& \-e Display other/more information
  3349. \& \-A inet{6} Select address family
  3350. .Ve
  3351. .IP "\fBrpm\fR" 4
  3352. .IX Item "rpm"
  3353. rpm \-i \s-1PACKAGE\s0.rpm; rpm \-qp[ildc] \s-1PACKAGE\s0.rpm
  3354. .Sp
  3355. Manipulate \s-1RPM\s0 packages
  3356. .Sp
  3357. Commands:
  3358. .Sp
  3359. .Vb 6
  3360. \& \-i Install package
  3361. \& \-qp Query package
  3362. \& \-qpi Show information
  3363. \& \-qpl List contents
  3364. \& \-qpd List documents
  3365. \& \-qpc List config files
  3366. .Ve
  3367. .IP "\fBrpm2cpio\fR" 4
  3368. .IX Item "rpm2cpio"
  3369. rpm2cpio \s-1PACKAGE\s0.rpm
  3370. .Sp
  3371. Output a cpio archive of the rpm file
  3372. .IP "\fBrtcwake\fR" 4
  3373. .IX Item "rtcwake"
  3374. rtcwake [\-a | \-l | \-u] [\-d \s-1DEV\s0] [\-m \s-1MODE\s0] [\-s \s-1SEC\s0 | \-t \s-1TIME\s0]
  3375. .Sp
  3376. Enter a system sleep state until specified wakeup time
  3377. .Sp
  3378. .Vb 7
  3379. \& \-a,\-\-auto Read clock mode from adjtime
  3380. \& \-l,\-\-local Clock is set to local time
  3381. \& \-u,\-\-utc Clock is set to UTC time
  3382. \& \-d,\-\-device DEV Specify the RTC device
  3383. \& \-m,\-\-mode MODE Set sleep state (default: standby)
  3384. \& \-s,\-\-seconds SEC Set timeout in SEC seconds from now
  3385. \& \-t,\-\-time TIME Set timeout to TIME seconds from epoch
  3386. .Ve
  3387. .IP "\fBrun-init\fR" 4
  3388. .IX Item "run-init"
  3389. run-init [\-d \s-1CAP,CAP...\s0] [\-n] [\-c \s-1CONSOLE_DEV\s0] \s-1NEW_ROOT NEW_INIT\s0 [\s-1ARGS\s0]
  3390. .Sp
  3391. Free initramfs and switch to another root fs:
  3392. .Sp
  3393. chroot to \s-1NEW_ROOT,\s0 delete all in /, move \s-1NEW_ROOT\s0 to /,
  3394. execute \s-1NEW_INIT. PID\s0 must be 1. \s-1NEW_ROOT\s0 must be a mountpoint.
  3395. .Sp
  3396. .Vb 3
  3397. \& \-c DEV Reopen stdio to DEV after switch
  3398. \& \-d CAPS Drop capabilities
  3399. \& \-n Dry run
  3400. .Ve
  3401. .IP "\fBrun-parts\fR" 4
  3402. .IX Item "run-parts"
  3403. run-parts [\-a \s-1ARG\s0]... [\-u \s-1UMASK\s0] [\-\-reverse] [\-\-test] [\-\-exit\-on\-error] [\-\-list] \s-1DIRECTORY\s0
  3404. .Sp
  3405. Run a bunch of scripts in \s-1DIRECTORY\s0
  3406. .Sp
  3407. .Vb 6
  3408. \& \-a ARG Pass ARG as argument to scripts
  3409. \& \-u UMASK Set UMASK before running scripts
  3410. \& \-\-reverse Reverse execution order
  3411. \& \-\-test Dry run
  3412. \& \-\-exit\-on\-error Exit if a script exits with non\-zero
  3413. \& \-\-list Print names of matching files even if they are not executable
  3414. .Ve
  3415. .IP "\fBrunlevel\fR" 4
  3416. .IX Item "runlevel"
  3417. runlevel [\s-1FILE\s0]
  3418. .Sp
  3419. Find the current and previous system runlevel
  3420. .Sp
  3421. If no utmp \s-1FILE\s0 exists or if no runlevel record can be found,
  3422. print \*(L"unknown\*(R"
  3423. .IP "\fBrunsv\fR" 4
  3424. .IX Item "runsv"
  3425. runsv \s-1DIR\s0
  3426. .Sp
  3427. Start and monitor a service and optionally an appendant log service
  3428. .IP "\fBrunsvdir\fR" 4
  3429. .IX Item "runsvdir"
  3430. runsvdir [\-P] [\-s \s-1SCRIPT\s0] \s-1DIR\s0
  3431. .Sp
  3432. Start a runsv process for each subdirectory. If it exits, restart it.
  3433. .Sp
  3434. .Vb 2
  3435. \& \-P Put each runsv in a new session
  3436. \& \-s SCRIPT Run SCRIPT <signo> after signal is processed
  3437. .Ve
  3438. .IP "\fBrx\fR" 4
  3439. .IX Item "rx"
  3440. rx \s-1FILE\s0
  3441. .Sp
  3442. Receive a file using the xmodem protocol
  3443. .IP "\fBscript\fR" 4
  3444. .IX Item "script"
  3445. script [\-afq] [\-t[\s-1FILE\s0]] [\-c \s-1PROG\s0] [\s-1OUTFILE\s0]
  3446. .Sp
  3447. Default \s-1OUTFILE\s0 is 'typescript'
  3448. .Sp
  3449. .Vb 4
  3450. \& \-a Append output
  3451. \& \-c PROG Run PROG, not shell
  3452. \& \-q Quiet
  3453. \& \-t[FILE] Send timing to stderr or FILE
  3454. .Ve
  3455. .IP "\fBscriptreplay\fR" 4
  3456. .IX Item "scriptreplay"
  3457. scriptreplay \s-1TIMINGFILE\s0 [\s-1TYPESCRIPT\s0 [\s-1DIVISOR\s0]]
  3458. .Sp
  3459. Play back typescripts, using timing information
  3460. .IP "\fBsed\fR" 4
  3461. .IX Item "sed"
  3462. sed [\-i[\s-1SFX\s0]] [\-nrE] [\-f \s-1FILE\s0]... [\-e \s-1CMD\s0]... [\s-1FILE\s0]...
  3463. or: sed [\-i[\s-1SFX\s0]] [\-nrE] \s-1CMD\s0 [\s-1FILE\s0]...
  3464. .Sp
  3465. .Vb 6
  3466. \& \-e CMD Add CMD to sed commands to be executed
  3467. \& \-f FILE Add FILE contents to sed commands to be executed
  3468. \& \-i[SFX] Edit files in\-place (otherwise sends to stdout)
  3469. \& Optionally back files up, appending SFX
  3470. \& \-n Suppress automatic printing of pattern space
  3471. \& \-r,\-E Use extended regex syntax
  3472. .Ve
  3473. .Sp
  3474. If no \-e or \-f, the first non-option argument is the sed command string.
  3475. Remaining arguments are input files (stdin if none).
  3476. .IP "\fBsendmail\fR" 4
  3477. .IX Item "sendmail"
  3478. sendmail [\-tv] [\-f \s-1SENDER\s0] [\-amLOGIN 4<user_pass.txt | \-auUSER \-apPASS]
  3479. [\-w \s-1SECS\s0] [\-H '\s-1PROG ARGS\s0' | \-S \s-1HOST\s0] [\s-1RECIPIENT_EMAIL\s0]...
  3480. .Sp
  3481. Read email from stdin and send it
  3482. .Sp
  3483. Standard options:
  3484. .Sp
  3485. .Vb 5
  3486. \& \-t Read additional recipients from message body
  3487. \& \-f SENDER For use in MAIL FROM:<sender>. Can be empty string
  3488. \& Default: \-auUSER, or username of current UID
  3489. \& \-o OPTIONS Various options. \-oi implied, others are ignored
  3490. \& \-i \-oi synonym, implied and ignored
  3491. .Ve
  3492. .Sp
  3493. Busybox specific options:
  3494. .Sp
  3495. .Vb 10
  3496. \& \-v Verbose
  3497. \& \-w SECS Network timeout
  3498. \& \-H \*(AqPROG ARGS\*(Aq Run connection helper. Examples:
  3499. \& openssl s_client \-quiet \-tls1 \-starttls smtp \-connect smtp.gmail.com:25
  3500. \& openssl s_client \-quiet \-tls1 \-connect smtp.gmail.com:465
  3501. \& $SMTP_ANTISPAM_DELAY: seconds to wait after helper connect
  3502. \& \-S HOST[:PORT] Server (default $SMTPHOST or 127.0.0.1)
  3503. \& \-amLOGIN Log in using AUTH LOGIN (\-amCRAM\-MD5 not supported)
  3504. \& \-auUSER Username for AUTH
  3505. \& \-apPASS Password for AUTH
  3506. .Ve
  3507. .Sp
  3508. If no \-a options are given, authentication is not done.
  3509. If \-amLOGIN is given but no \-au/\-ap, user/password is read from fd #4.
  3510. Other options are silently ignored; \-oi is implied.
  3511. Use makemime to create emails with attachments.
  3512. .IP "\fBseq\fR" 4
  3513. .IX Item "seq"
  3514. seq [\-w] [\-s \s-1SEP\s0] [\s-1FIRST\s0 [\s-1INC\s0]] \s-1LAST\s0
  3515. .Sp
  3516. Print numbers from \s-1FIRST\s0 to \s-1LAST,\s0 in steps of \s-1INC.
  3517. FIRST, INC\s0 default to 1.
  3518. .Sp
  3519. .Vb 2
  3520. \& \-w Pad to last with leading zeros
  3521. \& \-s SEP String separator
  3522. .Ve
  3523. .IP "\fBsetarch\fR" 4
  3524. .IX Item "setarch"
  3525. setarch \s-1PERSONALITY\s0 [\-R] \s-1PROG ARGS\s0
  3526. .Sp
  3527. \&\s-1PERSONALITY\s0 may be:
  3528. .Sp
  3529. .Vb 2
  3530. \& linux32 Set 32bit uname emulation
  3531. \& linux64 Set 64bit uname emulation
  3532. \&
  3533. \& \-R Disable address space randomization
  3534. .Ve
  3535. .IP "\fBsetconsole\fR" 4
  3536. .IX Item "setconsole"
  3537. setconsole [\-r] [\s-1DEVICE\s0]
  3538. .Sp
  3539. Make writes to /dev/console appear on \s-1DEVICE\s0 (default: /dev/tty).
  3540. Does not redirect kernel log output or reads from /dev/console.
  3541. .Sp
  3542. .Vb 1
  3543. \& \-r Reset: writes to /dev/console go to kernel log tty(s)
  3544. .Ve
  3545. .IP "\fBsetfattr\fR" 4
  3546. .IX Item "setfattr"
  3547. setfattr [\-h] \-n|\-x \s-1ATTR\s0 [\-v \s-1VALUE\s0] \s-1FILE...\s0
  3548. .Sp
  3549. Set extended attributes
  3550. .Sp
  3551. .Vb 4
  3552. \& \-h Do not follow symlinks
  3553. \& \-x ATTR Remove attribute ATTR
  3554. \& \-n ATTR Set attribute ATTR to VALUE
  3555. \& \-v VALUE (default: empty)
  3556. .Ve
  3557. .IP "\fBsetfont\fR" 4
  3558. .IX Item "setfont"
  3559. setfont \s-1FONT\s0 [\-m \s-1MAPFILE\s0] [\-C \s-1TTY\s0]
  3560. .Sp
  3561. Load a console font
  3562. .Sp
  3563. .Vb 2
  3564. \& \-m MAPFILE Load console screen map
  3565. \& \-C TTY Affect TTY instead of /dev/tty
  3566. .Ve
  3567. .IP "\fBsetkeycodes\fR" 4
  3568. .IX Item "setkeycodes"
  3569. setkeycodes { \s-1SCANCODE KEYCODE\s0 }...
  3570. .Sp
  3571. Modify kernel's scancode-to-keycode map,
  3572. allowing unusual keyboards to generate usable keycodes.
  3573. .Sp
  3574. \&\s-1SCANCODE\s0 is either xx or e0xx (hexadecimal), \s-1KEYCODE\s0 is decimal.
  3575. .IP "\fBsetlogcons\fR" 4
  3576. .IX Item "setlogcons"
  3577. setlogcons [N]
  3578. .Sp
  3579. Pin kernel output to \s-1VT\s0 console N. Default:0 (do not pin)
  3580. .IP "\fBsetpriv\fR" 4
  3581. .IX Item "setpriv"
  3582. setpriv [\s-1OPTIONS\s0] \s-1PROG\s0 [\s-1ARGS\s0]
  3583. .Sp
  3584. Run \s-1PROG\s0 with different privilege settings
  3585. .Sp
  3586. \&\-d,\-\-dump Show current capabilities
  3587. \&\-\-nnp,\-\-no\-new\-privs Ignore setuid/setgid bits and file capabilities
  3588. \&\-\-inh\-caps \s-1CAP,CAP\s0 Set inheritable capabilities
  3589. \&\-\-ambient\-caps \s-1CAP,CAP\s0 Set ambient capabilities
  3590. .IP "\fBsetserial\fR" 4
  3591. .IX Item "setserial"
  3592. setserial [\-abGvz] { \s-1DEVICE\s0 [\s-1PARAMETER\s0 [\s-1ARG\s0]]... | \-g \s-1DEVICE...\s0 }
  3593. .Sp
  3594. Print or set serial port parameters
  3595. .Sp
  3596. .Vb 6
  3597. \& \-a Print all
  3598. \& \-b Print summary
  3599. \& \-G Print as setserial PARAMETERs
  3600. \& \-v Verbose
  3601. \& \-z Zero out serial flags before setting
  3602. \& \-g All args are device names
  3603. .Ve
  3604. .Sp
  3605. PARAMETERs: (* = takes \s-1ARG,\s0 ^ = can be turned off by preceding ^)
  3606. *port, *irq, *divisor, *uart, *baud_base, *close_delay, *closing_wait,
  3607. ^fourport, ^auto_irq, ^skip_test, ^sak, ^session_lockout, ^pgrp_lockout,
  3608. ^callout_nohup, ^split_termios, ^hup_notify, ^low_latency, autoconfig,
  3609. spd_normal, spd_hi, spd_vhi, spd_shi, spd_warp, spd_cust
  3610. \&\s-1ARG\s0 for uart:
  3611. .Sp
  3612. .Vb 3
  3613. \& unknown, 8250, 16450, 16550, 16550A, Cirrus, 16650, 16650V2, 16750,
  3614. \& 16950, 16954, 16654, 16850, RSA, NS16550A, XSCALE, RM9000, OCTEON, AR7,
  3615. \& U6_16550A
  3616. .Ve
  3617. .IP "\fBsetsid\fR" 4
  3618. .IX Item "setsid"
  3619. setsid [\-c] \s-1PROG ARGS\s0
  3620. .Sp
  3621. Run \s-1PROG\s0 in a new session. \s-1PROG\s0 will have no controlling terminal
  3622. and will not be affected by keyboard signals (^C etc).
  3623. .Sp
  3624. .Vb 1
  3625. \& \-c Set controlling terminal to stdin
  3626. .Ve
  3627. .IP "\fBsetuidgid\fR" 4
  3628. .IX Item "setuidgid"
  3629. setuidgid \s-1USER PROG ARGS\s0
  3630. .Sp
  3631. Set uid and gid to \s-1USER\s0's uid and gid, drop supplementary group ids,
  3632. run \s-1PROG\s0
  3633. .IP "\fBsh\fR" 4
  3634. .IX Item "sh"
  3635. sh [\-/+OPTIONS] [\-/+o \s-1OPT\s0]... [\-c '\s-1SCRIPT\s0' [\s-1ARG0\s0 [\s-1ARGS\s0]] / \s-1FILE\s0 [\s-1ARGS\s0]]
  3636. .Sp
  3637. Unix shell interpreter
  3638. .IP "\fBsha1sum\fR" 4
  3639. .IX Item "sha1sum"
  3640. sha1sum [\-c[sw]] [\s-1FILE\s0]...
  3641. .Sp
  3642. Print or check \s-1SHA1\s0 checksums
  3643. .Sp
  3644. .Vb 3
  3645. \& \-c Check sums against list in FILEs
  3646. \& \-s Don\*(Aqt output anything, status code shows success
  3647. \& \-w Warn about improperly formatted checksum lines
  3648. .Ve
  3649. .IP "\fBsha256sum\fR" 4
  3650. .IX Item "sha256sum"
  3651. sha256sum [\-c[sw]] [\s-1FILE\s0]...
  3652. .Sp
  3653. Print or check \s-1SHA256\s0 checksums
  3654. .Sp
  3655. .Vb 3
  3656. \& \-c Check sums against list in FILEs
  3657. \& \-s Don\*(Aqt output anything, status code shows success
  3658. \& \-w Warn about improperly formatted checksum lines
  3659. .Ve
  3660. .IP "\fBsha3sum\fR" 4
  3661. .IX Item "sha3sum"
  3662. sha3sum [\-c[sw]] [\-a \s-1BITS\s0] [\s-1FILE\s0]...
  3663. .Sp
  3664. Print or check \s-1SHA3\s0 checksums
  3665. .Sp
  3666. .Vb 4
  3667. \& \-c Check sums against list in FILEs
  3668. \& \-s Don\*(Aqt output anything, status code shows success
  3669. \& \-w Warn about improperly formatted checksum lines
  3670. \& \-a BITS 224 (default), 256, 384, 512
  3671. .Ve
  3672. .IP "\fBsha512sum\fR" 4
  3673. .IX Item "sha512sum"
  3674. sha512sum [\-c[sw]] [\s-1FILE\s0]...
  3675. .Sp
  3676. Print or check \s-1SHA512\s0 checksums
  3677. .Sp
  3678. .Vb 3
  3679. \& \-c Check sums against list in FILEs
  3680. \& \-s Don\*(Aqt output anything, status code shows success
  3681. \& \-w Warn about improperly formatted checksum lines
  3682. .Ve
  3683. .IP "\fBshowkey\fR" 4
  3684. .IX Item "showkey"
  3685. showkey [\-a | \-k | \-s]
  3686. .Sp
  3687. Show keys pressed
  3688. .Sp
  3689. .Vb 3
  3690. \& \-a Display decimal/octal/hex values of the keys
  3691. \& \-k Display interpreted keycodes (default)
  3692. \& \-s Display raw scan\-codes
  3693. .Ve
  3694. .IP "\fBshred\fR" 4
  3695. .IX Item "shred"
  3696. shred \s-1FILE...\s0
  3697. .Sp
  3698. Overwrite/delete FILEs
  3699. .Sp
  3700. .Vb 4
  3701. \& \-f Chmod to ensure writability
  3702. \& \-n N Overwrite N times (default 3)
  3703. \& \-z Final overwrite with zeros
  3704. \& \-u Remove file
  3705. .Ve
  3706. .IP "\fBshuf\fR" 4
  3707. .IX Item "shuf"
  3708. shuf [\-e|\-i L\-H] [\-n \s-1NUM\s0] [\-o \s-1FILE\s0] [\-z] [FILE|ARG...]
  3709. .Sp
  3710. Randomly permute lines
  3711. .Sp
  3712. .Vb 5
  3713. \& \-e Treat ARGs as lines
  3714. \& \-i L\-H Treat numbers L\-H as lines
  3715. \& \-n NUM Output at most NUM lines
  3716. \& \-o FILE Write to FILE, not standard output
  3717. \& \-z End lines with zero byte, not newline
  3718. .Ve
  3719. .IP "\fBslattach\fR" 4
  3720. .IX Item "slattach"
  3721. slattach [\-ehmLF] [\-c \s-1SCRIPT\s0] [\-s \s-1BAUD\s0] [\-p \s-1PROTOCOL\s0] \s-1SERIAL_DEVICE\s0
  3722. .Sp
  3723. Configure serial line as \s-1SLIP\s0 network interface
  3724. .Sp
  3725. .Vb 8
  3726. \& \-p PROT Protocol: slip, cslip (default), slip6, clisp6, adaptive
  3727. \& \-s BAUD Line speed
  3728. \& \-e Exit after initialization
  3729. \& \-h Exit if carrier is lost (else never exits)
  3730. \& \-c PROG Run PROG on carrier loss
  3731. \& \-m Do NOT set raw 8bit mode
  3732. \& \-L Enable 3\-wire operation
  3733. \& \-F Disable RTS/CTS flow control
  3734. .Ve
  3735. .IP "\fBsleep\fR" 4
  3736. .IX Item "sleep"
  3737. sleep [N]...
  3738. .Sp
  3739. Pause for a time equal to the total of the args given, where each arg can
  3740. have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays
  3741. .IP "\fBsmemcap\fR" 4
  3742. .IX Item "smemcap"
  3743. smemcap >\s-1SMEMDATA.TAR\s0
  3744. .Sp
  3745. Collect memory usage data in /proc and write it to stdout
  3746. .IP "\fBsoftlimit\fR" 4
  3747. .IX Item "softlimit"
  3748. softlimit [\-a \s-1BYTES\s0] [\-m \s-1BYTES\s0] [\-d \s-1BYTES\s0] [\-s \s-1BYTES\s0] [\-l \s-1BYTES\s0]
  3749. [\-f \s-1BYTES\s0] [\-c \s-1BYTES\s0] [\-r \s-1BYTES\s0] [\-o N] [\-p N] [\-t N]
  3750. \s-1PROG ARGS\s0
  3751. .Sp
  3752. Set soft resource limits, then run \s-1PROG\s0
  3753. .Sp
  3754. .Vb 8
  3755. \& \-a BYTES Limit total size of all segments
  3756. \& \-m BYTES Same as \-d BYTES \-s BYTES \-l BYTES \-a BYTES
  3757. \& \-d BYTES Limit data segment
  3758. \& \-s BYTES Limit stack segment
  3759. \& \-l BYTES Limit locked memory size
  3760. \& \-o N Limit number of open files per process
  3761. \& \-p N Limit number of processes per uid
  3762. \&Options controlling file sizes:
  3763. \&
  3764. \& \-f BYTES Limit output file sizes
  3765. \& \-c BYTES Limit core file size
  3766. \&Efficiency opts:
  3767. \&
  3768. \& \-r BYTES Limit resident set size
  3769. \& \-t N Limit CPU time, process receives
  3770. \& a SIGXCPU after N seconds
  3771. .Ve
  3772. .IP "\fBsort\fR" 4
  3773. .IX Item "sort"
  3774. sort [\-nrugMcszbdfiokt] [\-o \s-1FILE\s0] [\-k start[.offset][opts][,end[.offset][opts]] [\-t \s-1CHAR\s0] [\s-1FILE\s0]...
  3775. .Sp
  3776. Sort lines of text
  3777. .Sp
  3778. .Vb 10
  3779. \& \-o FILE Output to FILE
  3780. \& \-c Check whether input is sorted
  3781. \& \-b Ignore leading blanks
  3782. \& \-f Ignore case
  3783. \& \-i Ignore unprintable characters
  3784. \& \-d Dictionary order (blank or alphanumeric only)
  3785. \& \-g General numerical sort
  3786. \& \-M Sort month
  3787. \& \-n Sort numbers
  3788. \& \-t CHAR Field separator
  3789. \& \-k N[,M] Sort by Nth field
  3790. \& \-r Reverse sort order
  3791. \& \-s Stable (don\*(Aqt sort ties alphabetically)
  3792. \& \-u Suppress duplicate lines
  3793. \& \-z Lines are terminated by NUL, not newline
  3794. .Ve
  3795. .IP "\fBsplit\fR" 4
  3796. .IX Item "split"
  3797. split [\s-1OPTIONS\s0] [\s-1INPUT\s0 [\s-1PREFIX\s0]]
  3798. .Sp
  3799. .Vb 3
  3800. \& \-b N[k|m] Split by N (kilo|mega)bytes
  3801. \& \-l N Split by N lines
  3802. \& \-a N Use N letters as suffix
  3803. .Ve
  3804. .IP "\fBssl_client\fR" 4
  3805. .IX Item "ssl_client"
  3806. ssl_client \-s \s-1FD\s0 [\-r \s-1FD\s0] [\-n \s-1SNI\s0]
  3807. .IP "\fBstart-stop-daemon\fR" 4
  3808. .IX Item "start-stop-daemon"
  3809. start-stop-daemon [\s-1OPTIONS\s0] [\-S|\-K] ... [\-\- \s-1ARGS...\s0]
  3810. .Sp
  3811. Search for matching processes, and then
  3812. \&\-K: stop all matching processes
  3813. \&\-S: start a process unless a matching process is found
  3814. .Sp
  3815. Process matching:
  3816. .Sp
  3817. .Vb 10
  3818. \& \-u USERNAME|UID Match only this user\*(Aqs processes
  3819. \& \-n NAME Match processes with NAME
  3820. \& in comm field in /proc/PID/stat
  3821. \& \-x EXECUTABLE Match processes with this command
  3822. \& command in /proc/PID/cmdline
  3823. \& \-p FILE Match a process with PID from FILE
  3824. \& All specified conditions must match
  3825. \&\-S only:
  3826. \& \-x EXECUTABLE Program to run
  3827. \& \-a NAME Zeroth argument
  3828. \& \-b Background
  3829. \& \-N N Change nice level
  3830. \& \-c USER[:[GRP]] Change user/group
  3831. \& \-m Write PID to pidfile specified by \-p
  3832. \&\-K only:
  3833. \& \-s SIG Signal to send
  3834. \& \-t Match only, exit with 0 if found
  3835. \&Other:
  3836. \&
  3837. \& \-o Exit with status 0 if nothing is done
  3838. \& \-v Verbose
  3839. \& \-q Quiet
  3840. .Ve
  3841. .IP "\fBstat\fR" 4
  3842. .IX Item "stat"
  3843. stat [\s-1OPTIONS\s0] \s-1FILE...\s0
  3844. .Sp
  3845. Display file (default) or filesystem status
  3846. .Sp
  3847. .Vb 4
  3848. \& \-c FMT Use the specified format
  3849. \& \-f Display filesystem status
  3850. \& \-L Follow links
  3851. \& \-t Terse display
  3852. .Ve
  3853. .Sp
  3854. \&\s-1FMT\s0 sequences for files:
  3855. .Sp
  3856. .Vb 10
  3857. \& %a Access rights in octal
  3858. \& %A Access rights in human readable form
  3859. \& %b Number of blocks allocated (see %B)
  3860. \& %B Size in bytes of each block reported by %b
  3861. \& %d Device number in decimal
  3862. \& %D Device number in hex
  3863. \& %f Raw mode in hex
  3864. \& %F File type
  3865. \& %g Group ID
  3866. \& %G Group name
  3867. \& %h Number of hard links
  3868. \& %i Inode number
  3869. \& %n File name
  3870. \& %N File name, with \-> TARGET if symlink
  3871. \& %o I/O block size
  3872. \& %s Total size in bytes
  3873. \& %t Major device type in hex
  3874. \& %T Minor device type in hex
  3875. \& %u User ID
  3876. \& %U User name
  3877. \& %x Time of last access
  3878. \& %X Time of last access as seconds since Epoch
  3879. \& %y Time of last modification
  3880. \& %Y Time of last modification as seconds since Epoch
  3881. \& %z Time of last change
  3882. \& %Z Time of last change as seconds since Epoch
  3883. .Ve
  3884. .Sp
  3885. \&\s-1FMT\s0 sequences for file systems:
  3886. .Sp
  3887. .Vb 12
  3888. \& %a Free blocks available to non\-superuser
  3889. \& %b Total data blocks
  3890. \& %c Total file nodes
  3891. \& %d Free file nodes
  3892. \& %f Free blocks
  3893. \& %i File System ID in hex
  3894. \& %l Maximum length of filenames
  3895. \& %n File name
  3896. \& %s Block size (for faster transfer)
  3897. \& %S Fundamental block size (for block counts)
  3898. \& %t Type in hex
  3899. \& %T Type in human readable form
  3900. .Ve
  3901. .IP "\fBstrings\fR" 4
  3902. .IX Item "strings"
  3903. strings [\-fo] [\-t o/d/x] [\-n \s-1LEN\s0] [\s-1FILE\s0]...
  3904. .Sp
  3905. Display printable strings in a binary file
  3906. .Sp
  3907. .Vb 4
  3908. \& \-f Precede strings with filenames
  3909. \& \-o Precede strings with octal offsets
  3910. \& \-t o/d/x Precede strings with offsets in base 8/10/16
  3911. \& \-n LEN At least LEN characters form a string (default 4)
  3912. .Ve
  3913. .IP "\fBstty\fR" 4
  3914. .IX Item "stty"
  3915. stty [\-a|g] [\-F \s-1DEVICE\s0] [\s-1SETTING\s0]...
  3916. .Sp
  3917. Without arguments, prints baud rate, line discipline,
  3918. and deviations from stty sane
  3919. .Sp
  3920. .Vb 4
  3921. \& \-F DEVICE Open device instead of stdin
  3922. \& \-a Print all current settings in human\-readable form
  3923. \& \-g Print in stty\-readable form
  3924. \& [SETTING] See manpage
  3925. .Ve
  3926. .IP "\fBsu\fR" 4
  3927. .IX Item "su"
  3928. su [\-lmp] [\-] [\-s \s-1SH\s0] [\s-1USER\s0 [\s-1SCRIPT ARGS /\s0 \-c '\s-1CMD\s0' \s-1ARG0 ARGS\s0]]
  3929. .Sp
  3930. Run shell under \s-1USER\s0 (by default, root)
  3931. .Sp
  3932. .Vb 4
  3933. \& \-,\-l Clear environment, go to home dir, run shell as login shell
  3934. \& \-p,\-m Do not set new $HOME, $SHELL, $USER, $LOGNAME
  3935. \& \-c CMD Command to pass to \*(Aqsh \-c\*(Aq
  3936. \& \-s SH Shell to use instead of user\*(Aqs default
  3937. .Ve
  3938. .IP "\fBsulogin\fR" 4
  3939. .IX Item "sulogin"
  3940. sulogin [\-t N] [\s-1TTY\s0]
  3941. .Sp
  3942. Single user login
  3943. .Sp
  3944. .Vb 1
  3945. \& \-t N Timeout
  3946. .Ve
  3947. .IP "\fBsum\fR" 4
  3948. .IX Item "sum"
  3949. sum [\-rs] [\s-1FILE\s0]...
  3950. .Sp
  3951. Checksum and count the blocks in a file
  3952. .Sp
  3953. .Vb 2
  3954. \& \-r Use BSD sum algorithm (1K blocks)
  3955. \& \-s Use System V sum algorithm (512byte blocks)
  3956. .Ve
  3957. .IP "\fBsv\fR" 4
  3958. .IX Item "sv"
  3959. sv [\-v] [\-w \s-1SEC\s0] \s-1CMD SERVICE_DIR...\s0
  3960. .Sp
  3961. Control services monitored by runsv supervisor.
  3962. Commands (only first character is enough):
  3963. .Sp
  3964. status: query service status
  3965. up: if service isn't running, start it. If service stops, restart it
  3966. once: like 'up', but if service stops, don't restart it
  3967. down: send \s-1TERM\s0 and \s-1CONT\s0 signals. If ./run exits, start ./finish
  3968. if it exists. After it stops, don't restart service
  3969. exit: send \s-1TERM\s0 and \s-1CONT\s0 signals to service and log service. If they exit,
  3970. runsv exits too
  3971. pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send
  3972. \&\s-1STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL\s0 signal to service
  3973. .IP "\fBsvc\fR" 4
  3974. .IX Item "svc"
  3975. svc [\-udopchaitkx] \s-1SERVICE_DIR...\s0
  3976. .Sp
  3977. Control services monitored by runsv supervisor
  3978. .Sp
  3979. .Vb 5
  3980. \& \-u If service is not running, start it; restart if it stops
  3981. \& \-d If service is running, send TERM+CONT signals; do not restart it
  3982. \& \-o Once: if service is not running, start it; do not restart it
  3983. \& \-pchaitk Send STOP, CONT, HUP, ALRM, INT, TERM, KILL signal to service
  3984. \& \-x Exit: runsv will exit as soon as the service is down
  3985. .Ve
  3986. .IP "\fBsvlogd\fR" 4
  3987. .IX Item "svlogd"
  3988. svlogd [\-tttv] [\-r C] [\-R \s-1CHARS\s0] [\-l \s-1MATCHLEN\s0] [\-b \s-1BUFLEN\s0] \s-1DIR...\s0
  3989. .Sp
  3990. Read log data from stdin and write to rotated log files in DIRs
  3991. .Sp
  3992. \&\-r C Replace non-printable characters with C
  3993. \&\-R \s-1CHARS\s0 Also replace \s-1CHARS\s0 with C (default _)
  3994. \&\-t Timestamp with \f(CW@tai64n\fR
  3995. \&\-tt Timestamp with yyyy\-mm\-dd_hh:mm:ss.sssss
  3996. \&\-ttt Timestamp with yyyy\-mm\-ddThh:mm:ss.sssss
  3997. \&\-v Verbose
  3998. .Sp
  3999. DIR/config file modifies behavior:
  4000. sSIZE \- when to rotate logs (default 1000000, 0 disables)
  4001. nNUM \- number of files to retain
  4002. !PROG \- process rotated log with \s-1PROG
  4003. +,\-PATTERN\s0 \- (de)select line for logging
  4004. E,ePATTERN \- (de)select line for stderr
  4005. .IP "\fBswapoff\fR" 4
  4006. .IX Item "swapoff"
  4007. swapoff [\-a] [\s-1DEVICE\s0]
  4008. .Sp
  4009. Stop swapping on \s-1DEVICE\s0
  4010. .Sp
  4011. .Vb 1
  4012. \& \-a Stop swapping on all swap devices
  4013. .Ve
  4014. .IP "\fBswapon\fR" 4
  4015. .IX Item "swapon"
  4016. swapon [\-a] [\-e] [\-d[\s-1POL\s0]] [\-p \s-1PRI\s0] [\s-1DEVICE\s0]
  4017. .Sp
  4018. Start swapping on \s-1DEVICE\s0
  4019. .Sp
  4020. .Vb 5
  4021. \& \-a Start swapping on all swap devices
  4022. \& \-d[POL] Discard blocks at swapon (POL=once),
  4023. \& as freed (POL=pages), or both (POL omitted)
  4024. \& \-e Silently skip devices that do not exist
  4025. \& \-p PRI Set swap device priority
  4026. .Ve
  4027. .IP "\fBswitch_root\fR" 4
  4028. .IX Item "switch_root"
  4029. switch_root [\-c \s-1CONSOLE_DEV\s0] \s-1NEW_ROOT NEW_INIT\s0 [\s-1ARGS\s0]
  4030. .Sp
  4031. Free initramfs and switch to another root fs:
  4032. .Sp
  4033. chroot to \s-1NEW_ROOT,\s0 delete all in /, move \s-1NEW_ROOT\s0 to /,
  4034. execute \s-1NEW_INIT. PID\s0 must be 1. \s-1NEW_ROOT\s0 must be a mountpoint.
  4035. .Sp
  4036. .Vb 1
  4037. \& \-c DEV Reopen stdio to DEV after switch
  4038. .Ve
  4039. .IP "\fBsync\fR" 4
  4040. .IX Item "sync"
  4041. sync [\-df] [\s-1FILE\s0]...
  4042. .Sp
  4043. Write all buffered blocks (in FILEs) to disk
  4044. \-d Avoid syncing metadata
  4045. \-f Sync filesystems underlying FILEs
  4046. .IP "\fBsysctl\fR" 4
  4047. .IX Item "sysctl"
  4048. sysctl \-p [\-enq] [\s-1FILE...\s0] / [\-enqaw] [KEY[=VALUE]]...
  4049. .Sp
  4050. Show/set kernel parameters
  4051. .Sp
  4052. .Vb 6
  4053. \& \-p Set values from FILEs (default /etc/sysctl.conf)
  4054. \& \-e Don\*(Aqt warn about unknown keys
  4055. \& \-n Don\*(Aqt show key names
  4056. \& \-q Quiet
  4057. \& \-a Show all values
  4058. \& \-w Set values
  4059. .Ve
  4060. .IP "\fBsyslogd\fR" 4
  4061. .IX Item "syslogd"
  4062. syslogd [\s-1OPTIONS\s0]
  4063. .Sp
  4064. System logging utility
  4065. .Sp
  4066. .Vb 12
  4067. \& \-n Run in foreground
  4068. \& \-R HOST[:PORT] Log to HOST:PORT (default PORT:514)
  4069. \& \-L Log locally and via network (default is network only if \-R)
  4070. \& \-C[size_kb] Log to shared mem buffer (use logread to read it)
  4071. \& \-K Log to kernel printk buffer (use dmesg to read it)
  4072. \& \-O FILE Log to FILE (default: /var/log/messages, stdout if \-)
  4073. \& \-s SIZE Max size (KB) before rotation (default 200KB, 0=off)
  4074. \& \-b N N rotated logs to keep (default 1, max 99, 0=purge)
  4075. \& \-l N Log only messages more urgent than prio N (1\-8)
  4076. \& \-S Smaller output
  4077. \& \-D Drop duplicates
  4078. \& \-f FILE Use FILE as config (default:/etc/syslog.conf)
  4079. .Ve
  4080. .IP "\fBtac\fR" 4
  4081. .IX Item "tac"
  4082. tac [\s-1FILE\s0]...
  4083. .Sp
  4084. Concatenate FILEs and print them in reverse
  4085. .IP "\fBtail\fR" 4
  4086. .IX Item "tail"
  4087. tail [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  4088. .Sp
  4089. Print last 10 lines of each \s-1FILE\s0 (or stdin) to stdout.
  4090. With more than one \s-1FILE,\s0 precede each with a filename header.
  4091. .Sp
  4092. .Vb 8
  4093. \& \-f Print data as file grows
  4094. \& \-c [+]N[kbm] Print last N bytes
  4095. \& \-n N[kbm] Print last N lines
  4096. \& \-n +N[kbm] Start on Nth line and print the rest
  4097. \& \-q Never print headers
  4098. \& \-s SECONDS Wait SECONDS between reads with \-f
  4099. \& \-v Always print headers
  4100. \& \-F Same as \-f, but keep retrying
  4101. .Ve
  4102. .Sp
  4103. N may be suffixed by k (x1024), b (x512), or m (x1024^2).
  4104. .IP "\fBtar\fR" 4
  4105. .IX Item "tar"
  4106. tar c|x|t [\-zJjahmvO] [\-f \s-1TARFILE\s0] [\-C \s-1DIR\s0] [\-T \s-1FILE\s0] [\-X \s-1FILE\s0] [\-\-exclude \s-1PATTERN\s0]... [\s-1FILE\s0]...
  4107. .Sp
  4108. Create, extract, or list files from a tar file
  4109. .Sp
  4110. Operation:
  4111. .Sp
  4112. .Vb 10
  4113. \& c Create
  4114. \& x Extract
  4115. \& t List
  4116. \& \-f FILE Name of TARFILE (\*(Aq\-\*(Aq for stdin/out)
  4117. \& \-C DIR Change to DIR before operation
  4118. \& \-v Verbose
  4119. \& \-z (De)compress using gzip
  4120. \& \-J (De)compress using xz
  4121. \& \-j (De)compress using bzip2
  4122. \& \-a (De)compress using lzma
  4123. \& \-O Extract to stdout
  4124. \& \-h Follow symlinks
  4125. \& \-m Don\*(Aqt restore mtime
  4126. \& \-T FILE File with names to include
  4127. \& \-X FILE File with glob patterns to exclude
  4128. \& \-\-exclude PATTERN Glob pattern to exclude
  4129. .Ve
  4130. .IP "\fBtaskset\fR" 4
  4131. .IX Item "taskset"
  4132. taskset [\-p] [\s-1HEXMASK\s0] \s-1PID\s0 | \s-1PROG ARGS\s0
  4133. .Sp
  4134. Set or get \s-1CPU\s0 affinity
  4135. .Sp
  4136. .Vb 1
  4137. \& \-p Operate on an existing PID
  4138. .Ve
  4139. .IP "\fBtcpsvd\fR" 4
  4140. .IX Item "tcpsvd"
  4141. tcpsvd [\-hEv] [\-c N] [\-C N[:MSG]] [\-b N] [\-u \s-1USER\s0] [\-l \s-1NAME\s0] \s-1IP PORT PROG\s0
  4142. .Sp
  4143. Create \s-1TCP\s0 socket, bind to \s-1IP:PORT\s0 and listen for incoming connections.
  4144. Run \s-1PROG\s0 for each connection.
  4145. .Sp
  4146. .Vb 12
  4147. \& IP PORT IP:PORT to listen on
  4148. \& PROG ARGS Program to run
  4149. \& \-u USER[:GRP] Change to user/group after bind
  4150. \& \-c N Up to N connections simultaneously (default 30)
  4151. \& \-b N Allow backlog of approximately N TCP SYNs (default 20)
  4152. \& \-C N[:MSG] Allow only up to N connections from the same IP:
  4153. \& new connections from this IP address are closed
  4154. \& immediately, MSG is written to the peer before close
  4155. \& \-E Don\*(Aqt set up environment
  4156. \& \-h Look up peer\*(Aqs hostname
  4157. \& \-l NAME Local hostname (else look up local hostname in DNS)
  4158. \& \-v Verbose
  4159. .Ve
  4160. .Sp
  4161. Environment if no \-E:
  4162. PROTO='\s-1TCP\s0'
  4163. TCPREMOTEADDR='ip:port' ('[ip]:port' for IPv6)
  4164. TCPLOCALADDR='ip:port'
  4165. TCPORIGDSTADDR='ip:port' of destination before firewall
  4166. Useful for REDIRECTed-to-local connections:
  4167. iptables \-t nat \-A \s-1PREROUTING\s0 \-p tcp \-\-dport 80 \-j \s-1REDIRECT\s0 \-\-to 8080
  4168. TCPCONCURRENCY=num_of_connects_from_this_ip
  4169. If \-h:
  4170. TCPLOCALHOST='hostname' (\-l \s-1NAME\s0 is used if specified)
  4171. TCPREMOTEHOST='hostname'
  4172. .IP "\fBtee\fR" 4
  4173. .IX Item "tee"
  4174. tee [\-ai] [\s-1FILE\s0]...
  4175. .Sp
  4176. Copy stdin to each \s-1FILE,\s0 and also to stdout
  4177. .Sp
  4178. .Vb 2
  4179. \& \-a Append to the given FILEs, don\*(Aqt overwrite
  4180. \& \-i Ignore interrupt signals (SIGINT)
  4181. .Ve
  4182. .IP "\fBtelnet\fR" 4
  4183. .IX Item "telnet"
  4184. telnet [\-a] [\-l \s-1USER\s0] \s-1HOST\s0 [\s-1PORT\s0]
  4185. .Sp
  4186. Connect to telnet server
  4187. .Sp
  4188. .Vb 2
  4189. \& \-a Automatic login with $USER variable
  4190. \& \-l USER Automatic login as USER
  4191. .Ve
  4192. .IP "\fBtelnetd\fR" 4
  4193. .IX Item "telnetd"
  4194. telnetd [\s-1OPTIONS\s0]
  4195. .Sp
  4196. Handle incoming telnet connections
  4197. .Sp
  4198. .Vb 10
  4199. \& \-l LOGIN Exec LOGIN on connect
  4200. \& \-f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue
  4201. \& \-K Close connection as soon as login exits
  4202. \& (normally wait until all programs close slave pty)
  4203. \& \-p PORT Port to listen on
  4204. \& \-b ADDR[:PORT] Address to bind to
  4205. \& \-F Run in foreground
  4206. \& \-i Inetd mode
  4207. \& \-w SEC Inetd \*(Aqwait\*(Aq mode, linger time SEC
  4208. \& \-S Log to syslog (implied by \-i or without \-F and \-w)
  4209. .Ve
  4210. .IP "\fBtftp\fR" 4
  4211. .IX Item "tftp"
  4212. tftp [\s-1OPTIONS\s0] \s-1HOST\s0 [\s-1PORT\s0]
  4213. .Sp
  4214. Transfer a file from/to tftp server
  4215. .Sp
  4216. .Vb 5
  4217. \& \-l FILE Local FILE
  4218. \& \-r FILE Remote FILE
  4219. \& \-g Get file
  4220. \& \-p Put file
  4221. \& \-b SIZE Transfer blocks of SIZE octets
  4222. .Ve
  4223. .IP "\fBtftpd\fR" 4
  4224. .IX Item "tftpd"
  4225. tftpd [\-cr] [\-u \s-1USER\s0] [\s-1DIR\s0]
  4226. .Sp
  4227. Transfer a file on tftp client's request
  4228. .Sp
  4229. tftpd should be used as an inetd service.
  4230. tftpd's line for inetd.conf:
  4231. 69 dgram udp nowait root tftpd tftpd \-l /files/to/serve
  4232. It also can be ran from udpsvd:
  4233. .Sp
  4234. .Vb 1
  4235. \& udpsvd \-vE 0.0.0.0 69 tftpd /files/to/serve
  4236. \&
  4237. \& \-r Prohibit upload
  4238. \& \-c Allow file creation via upload
  4239. \& \-u Access files as USER
  4240. \& \-l Log to syslog (inetd mode requires this)
  4241. .Ve
  4242. .IP "\fBtime\fR" 4
  4243. .IX Item "time"
  4244. time [\-vpa] [\-o \s-1FILE\s0] \s-1PROG ARGS\s0
  4245. .Sp
  4246. Run \s-1PROG,\s0 display resource usage when it exits
  4247. .Sp
  4248. .Vb 5
  4249. \& \-v Verbose
  4250. \& \-p POSIX output format
  4251. \& \-f FMT Custom format
  4252. \& \-o FILE Write result to FILE
  4253. \& \-a Append (else overwrite)
  4254. .Ve
  4255. .IP "\fBtimeout\fR" 4
  4256. .IX Item "timeout"
  4257. timeout [\-t \s-1SECS\s0] [\-s \s-1SIG\s0] \s-1PROG ARGS\s0
  4258. .Sp
  4259. Runs \s-1PROG.\s0 Sends \s-1SIG\s0 to it if it is not gone in \s-1SECS\s0 seconds.
  4260. Defaults: \s-1SECS: 10, SIG: TERM.\s0
  4261. .IP "\fBtop\fR" 4
  4262. .IX Item "top"
  4263. top [\-b] [\-nCOUNT] [\-dSECONDS] [\-m]
  4264. .Sp
  4265. Provide a view of process activity in real time.
  4266. Read the status of all processes from /proc each \s-1SECONDS\s0
  4267. and display a screenful of them.
  4268. Keys:
  4269. .Sp
  4270. .Vb 5
  4271. \& N/M/P/T: show CPU usage, sort by pid/mem/cpu/time
  4272. \& S: show memory
  4273. \& R: reverse sort
  4274. \& H: toggle threads, 1: toggle SMP
  4275. \& Q,^C: exit
  4276. .Ve
  4277. .Sp
  4278. Options:
  4279. .Sp
  4280. .Vb 4
  4281. \& \-b Batch mode
  4282. \& \-n N Exit after N iterations
  4283. \& \-d N Delay between updates
  4284. \& \-m Same as \*(Aqs\*(Aq key
  4285. .Ve
  4286. .IP "\fBtouch\fR" 4
  4287. .IX Item "touch"
  4288. touch [\-c] [\-d \s-1DATE\s0] [\-t \s-1DATE\s0] [\-r \s-1FILE\s0] \s-1FILE...\s0
  4289. .Sp
  4290. Update the last-modified date on the given FILE[s]
  4291. .Sp
  4292. .Vb 5
  4293. \& \-c Don\*(Aqt create files
  4294. \& \-h Don\*(Aqt follow links
  4295. \& \-d DT Date/time to use
  4296. \& \-t DT Date/time to use
  4297. \& \-r FILE Use FILE\*(Aqs date/time
  4298. .Ve
  4299. .IP "\fBtr\fR" 4
  4300. .IX Item "tr"
  4301. tr [\-cds] \s-1STRING1\s0 [\s-1STRING2\s0]
  4302. .Sp
  4303. Translate, squeeze, or delete characters from stdin, writing to stdout
  4304. .Sp
  4305. .Vb 3
  4306. \& \-c Take complement of STRING1
  4307. \& \-d Delete input characters coded STRING1
  4308. \& \-s Squeeze multiple output characters of STRING2 into one character
  4309. .Ve
  4310. .IP "\fBtraceroute\fR" 4
  4311. .IX Item "traceroute"
  4312. traceroute [\-46FIlnrv] [\-f 1ST_TTL] [\-m \s-1MAXTTL\s0] [\-q \s-1PROBES\s0] [\-p \s-1PORT\s0]
  4313. [\-t \s-1TOS\s0] [\-w \s-1WAIT_SEC\s0] [\-s \s-1SRC_IP\s0] [\-i \s-1IFACE\s0]
  4314. [\-z \s-1PAUSE_MSEC\s0] \s-1HOST\s0 [\s-1BYTES\s0]
  4315. .Sp
  4316. Trace the route to \s-1HOST\s0
  4317. .Sp
  4318. .Vb 10
  4319. \& \-4,\-6 Force IP or IPv6 name resolution
  4320. \& \-F Set don\*(Aqt fragment bit
  4321. \& \-I Use ICMP ECHO instead of UDP datagrams
  4322. \& \-l Display TTL value of the returned packet
  4323. \& \-n Print numeric addresses
  4324. \& \-r Bypass routing tables, send directly to HOST
  4325. \& \-v Verbose
  4326. \& \-f N First number of hops (default 1)
  4327. \& \-m N Max number of hops
  4328. \& \-q N Number of probes per hop (default 3)
  4329. \& \-p N Base UDP port number used in probes
  4330. \& (default 33434)
  4331. \& \-s IP Source address
  4332. \& \-i IFACE Source interface
  4333. \& \-t N Type\-of\-service in probe packets (default 0)
  4334. \& \-w SEC Time to wait for a response (default 3)
  4335. \& \-g IP Loose source route gateway (8 max)
  4336. .Ve
  4337. .IP "\fBtraceroute6\fR" 4
  4338. .IX Item "traceroute6"
  4339. traceroute6 [\-nrv] [\-m \s-1MAXTTL\s0] [\-q \s-1PROBES\s0] [\-p \s-1PORT\s0]
  4340. [\-t \s-1TOS\s0] [\-w \s-1WAIT_SEC\s0] [\-s \s-1SRC_IP\s0] [\-i \s-1IFACE\s0]
  4341. \s-1HOST\s0 [\s-1BYTES\s0]
  4342. .Sp
  4343. Trace the route to \s-1HOST\s0
  4344. .Sp
  4345. .Vb 11
  4346. \& \-n Print numeric addresses
  4347. \& \-r Bypass routing tables, send directly to HOST
  4348. \& \-v Verbose
  4349. \& \-m N Max number of hops
  4350. \& \-q N Number of probes per hop (default 3)
  4351. \& \-p N Base UDP port number used in probes
  4352. \& (default 33434)
  4353. \& \-s IP Source address
  4354. \& \-i IFACE Source interface
  4355. \& \-t N Type\-of\-service in probe packets (default 0)
  4356. \& \-w SEC Time wait for a response (default 3)
  4357. .Ve
  4358. .IP "\fBtruncate\fR" 4
  4359. .IX Item "truncate"
  4360. truncate [\-c] \-s \s-1SIZE FILE...\s0
  4361. .Sp
  4362. Truncate FILEs to the given size
  4363. .Sp
  4364. .Vb 2
  4365. \& \-c Do not create files
  4366. \& \-s SIZE Truncate to SIZE
  4367. .Ve
  4368. .IP "\fBtty\fR" 4
  4369. .IX Item "tty"
  4370. tty
  4371. .Sp
  4372. Print file name of stdin's terminal
  4373. .Sp
  4374. .Vb 1
  4375. \& \-s Print nothing, only return exit status
  4376. .Ve
  4377. .IP "\fBttysize\fR" 4
  4378. .IX Item "ttysize"
  4379. ttysize [w] [h]
  4380. .Sp
  4381. Print dimensions of stdin tty, or 80x24
  4382. .IP "\fBtunctl\fR" 4
  4383. .IX Item "tunctl"
  4384. tunctl [\-f device] ([\-t name] | \-d name) [\-u owner] [\-g group] [\-b]
  4385. .Sp
  4386. Create or delete tun interfaces
  4387. .Sp
  4388. .Vb 6
  4389. \& \-f name tun device (/dev/net/tun)
  4390. \& \-t name Create iface \*(Aqname\*(Aq
  4391. \& \-d name Delete iface \*(Aqname\*(Aq
  4392. \& \-u owner Set iface owner
  4393. \& \-g group Set iface group
  4394. \& \-b Brief output
  4395. .Ve
  4396. .IP "\fBubiattach\fR" 4
  4397. .IX Item "ubiattach"
  4398. ubiattach \-m \s-1MTD_NUM\s0 [\-d \s-1UBI_NUM\s0] [\-O \s-1VID_HDR_OFF\s0] \s-1UBI_CTRL_DEV\s0
  4399. .Sp
  4400. Attach \s-1MTD\s0 device to \s-1UBI\s0
  4401. .Sp
  4402. .Vb 3
  4403. \& \-m MTD_NUM MTD device number to attach
  4404. \& \-d UBI_NUM UBI device number to assign
  4405. \& \-O VID_HDR_OFF VID header offset
  4406. .Ve
  4407. .IP "\fBubidetach\fR" 4
  4408. .IX Item "ubidetach"
  4409. ubidetach \-d \s-1UBI_NUM UBI_CTRL_DEV\s0
  4410. .Sp
  4411. Detach \s-1MTD\s0 device from \s-1UBI\s0
  4412. .Sp
  4413. .Vb 1
  4414. \& \-d UBI_NUM UBI device number
  4415. .Ve
  4416. .IP "\fBubimkvol\fR" 4
  4417. .IX Item "ubimkvol"
  4418. ubimkvol \-N \s-1NAME\s0 [\-s \s-1SIZE\s0 | \-m] \s-1UBI_DEVICE\s0
  4419. .Sp
  4420. Create \s-1UBI\s0 volume
  4421. .Sp
  4422. .Vb 7
  4423. \& \-a ALIGNMENT Volume alignment (default 1)
  4424. \& \-m Set volume size to maximum available
  4425. \& \-n VOLID Volume ID. If not specified,
  4426. \& assigned automatically
  4427. \& \-N NAME Volume name
  4428. \& \-s SIZE Size in bytes
  4429. \& \-t TYPE Volume type (static|dynamic)
  4430. .Ve
  4431. .IP "\fBubirename\fR" 4
  4432. .IX Item "ubirename"
  4433. ubirename \s-1UBI_DEVICE OLD_VOLNAME NEW_VOLNAME\s0 [\s-1OLD2 NEW2\s0]...
  4434. .Sp
  4435. Rename \s-1UBI\s0 volumes on \s-1UBI_DEVICE\s0
  4436. .IP "\fBubirmvol\fR" 4
  4437. .IX Item "ubirmvol"
  4438. ubirmvol \-n \s-1VOLID /\s0 \-N \s-1VOLNAME UBI_DEVICE\s0
  4439. .Sp
  4440. Remove \s-1UBI\s0 volume
  4441. .Sp
  4442. .Vb 2
  4443. \& \-n VOLID Volume ID
  4444. \& \-N VOLNAME Volume name
  4445. .Ve
  4446. .IP "\fBubirsvol\fR" 4
  4447. .IX Item "ubirsvol"
  4448. ubirsvol \-n \s-1VOLID\s0 \-s \s-1SIZE UBI_DEVICE\s0
  4449. .Sp
  4450. Resize \s-1UBI\s0 volume
  4451. .Sp
  4452. .Vb 2
  4453. \& \-n VOLID Volume ID
  4454. \& \-s SIZE Size in bytes
  4455. .Ve
  4456. .IP "\fBubiupdatevol\fR" 4
  4457. .IX Item "ubiupdatevol"
  4458. ubiupdatevol \-t \s-1UBI_DEVICE\s0 | [\-s \s-1SIZE\s0] \s-1UBI_DEVICE IMG_FILE\s0
  4459. .Sp
  4460. Update \s-1UBI\s0 volume
  4461. .Sp
  4462. .Vb 2
  4463. \& \-t Truncate to zero size
  4464. \& \-s SIZE Size in bytes to resize to
  4465. .Ve
  4466. .IP "\fBudhcpc\fR" 4
  4467. .IX Item "udhcpc"
  4468. udhcpc [\-fbqvRB] [\-a[\s-1MSEC\s0]] [\-t N] [\-T \s-1SEC\s0] [\-A SEC/\-n]
  4469. [\-i \s-1IFACE\s0] [\-s \s-1PROG\s0] [\-p \s-1PIDFILE\s0]
  4470. [\-oC] [\-r \s-1IP\s0] [\-V \s-1VENDOR\s0] [\-F \s-1NAME\s0] [\-x \s-1OPT:VAL\s0]... [\-O \s-1OPT\s0]...
  4471. .Sp
  4472. .Vb 10
  4473. \& \-i IFACE Interface to use (default eth0)
  4474. \& \-s PROG Run PROG at DHCP events (default /usr/share/udhcpc/default.script)
  4475. \& \-p FILE Create pidfile
  4476. \& \-B Request broadcast replies
  4477. \& \-t N Send up to N discover packets (default 3)
  4478. \& \-T SEC Pause between packets (default 3)
  4479. \& \-A SEC Wait if lease is not obtained (default 20)
  4480. \& \-n Exit if lease is not obtained
  4481. \& \-q Exit after obtaining lease
  4482. \& \-R Release IP on exit
  4483. \& \-f Run in foreground
  4484. \& \-b Background if lease is not obtained
  4485. \& \-S Log to syslog too
  4486. \& \-a[MSEC] Validate offered address with ARP ping
  4487. \& \-r IP Request this IP address
  4488. \& \-o Don\*(Aqt request any options (unless \-O is given)
  4489. \& \-O OPT Request option OPT from server (cumulative)
  4490. \& \-x OPT:VAL Include option OPT in sent packets (cumulative)
  4491. \& Examples of string, numeric, and hex byte opts:
  4492. \& \-x hostname:bbox \- option 12
  4493. \& \-x lease:3600 \- option 51 (lease time)
  4494. \& \-x 0x3d:0100BEEFC0FFEE \- option 61 (client id)
  4495. \& \-F NAME Ask server to update DNS mapping for NAME
  4496. \& \-V VENDOR Vendor identifier (default \*(Aqudhcp VERSION\*(Aq)
  4497. \& \-C Don\*(Aqt send MAC as client identifier
  4498. \& \-v Verbose
  4499. \&Signals:
  4500. \&
  4501. \& USR1 Renew lease
  4502. \& USR2 Release lease
  4503. .Ve
  4504. .IP "\fBudhcpd\fR" 4
  4505. .IX Item "udhcpd"
  4506. udhcpd [\-fS] [\-I \s-1ADDR\s0] [\s-1CONFFILE\s0]
  4507. .Sp
  4508. \&\s-1DHCP\s0 server
  4509. .Sp
  4510. .Vb 4
  4511. \& \-f Run in foreground
  4512. \& \-S Log to syslog too
  4513. \& \-I ADDR Local address
  4514. \& \-a MSEC Timeout for ARP ping (default 2000)
  4515. .Ve
  4516. .IP "\fBudpsvd\fR" 4
  4517. .IX Item "udpsvd"
  4518. udpsvd [\-hEv] [\-c N] [\-u \s-1USER\s0] [\-l \s-1NAME\s0] \s-1IP PORT PROG\s0
  4519. .Sp
  4520. Create \s-1UDP\s0 socket, bind to \s-1IP:PORT\s0 and wait for incoming packets.
  4521. Run \s-1PROG\s0 for each packet, redirecting all further packets with same
  4522. peer ip:port to it.
  4523. .Sp
  4524. .Vb 8
  4525. \& IP PORT IP:PORT to listen on
  4526. \& PROG ARGS Program to run
  4527. \& \-u USER[:GRP] Change to user/group after bind
  4528. \& \-c N Up to N connections simultaneously (default 30)
  4529. \& \-E Don\*(Aqt set up environment
  4530. \& \-h Look up peer\*(Aqs hostname
  4531. \& \-l NAME Local hostname (else look up local hostname in DNS)
  4532. \& \-v Verbose
  4533. .Ve
  4534. .Sp
  4535. Environment if no \-E:
  4536. PROTO='\s-1UDP\s0'
  4537. UDPREMOTEADDR='ip:port' ('[ip]:port' for IPv6)
  4538. UDPLOCALADDR='ip:port'
  4539. If \-h:
  4540. UDPLOCALHOST='hostname' (\-l \s-1NAME\s0 is used if specified)
  4541. UDPREMOTEHOST='hostname'
  4542. .IP "\fBuevent\fR" 4
  4543. .IX Item "uevent"
  4544. uevent [\s-1PROG\s0 [\s-1ARGS\s0]]
  4545. .Sp
  4546. uevent runs \s-1PROG\s0 for every netlink notification.
  4547. \&\s-1PROG\s0's environment contains data passed from the kernel.
  4548. Typical usage (daemon for dynamic device node creation):
  4549. # uevent mdev & mdev \-s
  4550. .IP "\fBumount\fR" 4
  4551. .IX Item "umount"
  4552. umount [\s-1OPTIONS\s0] FILESYSTEM|DIRECTORY
  4553. .Sp
  4554. Unmount file systems
  4555. .Sp
  4556. .Vb 5
  4557. \& \-a Unmount all file systems
  4558. \& \-r Try to remount devices as read\-only if mount is busy
  4559. \& \-l Lazy umount (detach filesystem)
  4560. \& \-f Force umount (i.e., unreachable NFS server)
  4561. \& \-d Free loop device if it has been used
  4562. .Ve
  4563. .IP "\fBuname\fR" 4
  4564. .IX Item "uname"
  4565. uname [\-amnrspvio]
  4566. .Sp
  4567. Print system information
  4568. .Sp
  4569. .Vb 9
  4570. \& \-a Print all
  4571. \& \-m The machine (hardware) type
  4572. \& \-n Hostname
  4573. \& \-r Kernel release
  4574. \& \-s Kernel name (default)
  4575. \& \-p Processor type
  4576. \& \-v Kernel version
  4577. \& \-i The hardware platform
  4578. \& \-o OS name
  4579. .Ve
  4580. .IP "\fBunexpand\fR" 4
  4581. .IX Item "unexpand"
  4582. unexpand [\-fa][\-t N] [\s-1FILE\s0]...
  4583. .Sp
  4584. Convert spaces to tabs, writing to stdout
  4585. .Sp
  4586. .Vb 3
  4587. \& \-a Convert all blanks
  4588. \& \-f Convert only leading blanks
  4589. \& \-t N Tabstops every N chars
  4590. .Ve
  4591. .IP "\fBuniq\fR" 4
  4592. .IX Item "uniq"
  4593. uniq [\-cdu][\-f,s,w N] [\s-1INPUT\s0 [\s-1OUTPUT\s0]]
  4594. .Sp
  4595. Discard duplicate lines
  4596. .Sp
  4597. .Vb 7
  4598. \& \-c Prefix lines by the number of occurrences
  4599. \& \-d Only print duplicate lines
  4600. \& \-u Only print unique lines
  4601. \& \-i Ignore case
  4602. \& \-f N Skip first N fields
  4603. \& \-s N Skip first N chars (after any skipped fields)
  4604. \& \-w N Compare N characters in line
  4605. .Ve
  4606. .IP "\fBunix2dos\fR" 4
  4607. .IX Item "unix2dos"
  4608. unix2dos [\-ud] [\s-1FILE\s0]
  4609. .Sp
  4610. Convert \s-1FILE\s0 in-place from Unix to \s-1DOS\s0 format.
  4611. When no file is given, use stdin/stdout.
  4612. .Sp
  4613. .Vb 2
  4614. \& \-u dos2unix
  4615. \& \-d unix2dos
  4616. .Ve
  4617. .IP "\fBunlink\fR" 4
  4618. .IX Item "unlink"
  4619. unlink \s-1FILE\s0
  4620. .Sp
  4621. Delete \s-1FILE\s0 by calling \fBunlink()\fR
  4622. .IP "\fBunlzma\fR" 4
  4623. .IX Item "unlzma"
  4624. unlzma [\-cfk] [\s-1FILE\s0]...
  4625. .Sp
  4626. Decompress \s-1FILE\s0 (or stdin)
  4627. .Sp
  4628. .Vb 3
  4629. \& \-c Write to stdout
  4630. \& \-f Force
  4631. \& \-k Keep input files
  4632. .Ve
  4633. .IP "\fBunshare\fR" 4
  4634. .IX Item "unshare"
  4635. unshare [\s-1OPTIONS\s0] [\s-1PROG\s0 [\s-1ARGS\s0]]
  4636. .Sp
  4637. .Vb 12
  4638. \& \-m,\-\-mount[=FILE] Unshare mount namespace
  4639. \& \-u,\-\-uts[=FILE] Unshare UTS namespace (hostname etc.)
  4640. \& \-i,\-\-ipc[=FILE] Unshare System V IPC namespace
  4641. \& \-n,\-\-net[=FILE] Unshare network namespace
  4642. \& \-p,\-\-pid[=FILE] Unshare PID namespace
  4643. \& \-U,\-\-user[=FILE] Unshare user namespace
  4644. \& \-f,\-\-fork Fork before execing PROG
  4645. \& \-r,\-\-map\-root\-user Map current user to root (implies \-U)
  4646. \& \-\-mount\-proc[=DIR] Mount /proc filesystem first (implies \-m)
  4647. \& \-\-propagation slave|shared|private|unchanged
  4648. \& Modify mount propagation in mount namespace
  4649. \& \-\-setgroups allow|deny Control the setgroups syscall in user namespaces
  4650. .Ve
  4651. .IP "\fBunxz\fR" 4
  4652. .IX Item "unxz"
  4653. unxz [\-cfk] [\s-1FILE\s0]...
  4654. .Sp
  4655. Decompress \s-1FILE\s0 (or stdin)
  4656. .Sp
  4657. .Vb 3
  4658. \& \-c Write to stdout
  4659. \& \-f Force
  4660. \& \-k Keep input files
  4661. .Ve
  4662. .IP "\fBunzip\fR" 4
  4663. .IX Item "unzip"
  4664. unzip [\-lnojpq] FILE[.zip] [\s-1FILE\s0]... [\-x \s-1FILE...\s0] [\-d \s-1DIR\s0]
  4665. .Sp
  4666. Extract FILEs from \s-1ZIP\s0 archive
  4667. .Sp
  4668. .Vb 8
  4669. \& \-l List contents (with \-q for short form)
  4670. \& \-n Never overwrite files (default: ask)
  4671. \& \-o Overwrite
  4672. \& \-j Do not restore paths
  4673. \& \-p Print to stdout
  4674. \& \-q Quiet
  4675. \& \-x FILE Exclude FILEs
  4676. \& \-d DIR Extract into DIR
  4677. .Ve
  4678. .IP "\fBuptime\fR" 4
  4679. .IX Item "uptime"
  4680. uptime
  4681. .Sp
  4682. Display the time since the last boot
  4683. .IP "\fBusers\fR" 4
  4684. .IX Item "users"
  4685. users
  4686. .Sp
  4687. Print the users currently logged on
  4688. .IP "\fBusleep\fR" 4
  4689. .IX Item "usleep"
  4690. usleep N
  4691. .Sp
  4692. Pause for N microseconds
  4693. .IP "\fBuudecode\fR" 4
  4694. .IX Item "uudecode"
  4695. uudecode [\-o \s-1OUTFILE\s0] [\s-1INFILE\s0]
  4696. .Sp
  4697. Uudecode a file
  4698. Finds \s-1OUTFILE\s0 in uuencoded source unless \-o is given
  4699. .IP "\fBuuencode\fR" 4
  4700. .IX Item "uuencode"
  4701. uuencode [\-m] [\s-1FILE\s0] \s-1STORED_FILENAME\s0
  4702. .Sp
  4703. Uuencode \s-1FILE\s0 (or stdin) to stdout
  4704. .Sp
  4705. .Vb 1
  4706. \& \-m Use base64 encoding per RFC1521
  4707. .Ve
  4708. .IP "\fBvconfig\fR" 4
  4709. .IX Item "vconfig"
  4710. vconfig \s-1COMMAND\s0 [\s-1OPTIONS\s0]
  4711. .Sp
  4712. Create and remove virtual ethernet devices
  4713. .Sp
  4714. .Vb 6
  4715. \& add IFACE VLAN_ID
  4716. \& rem VLAN_NAME
  4717. \& set_flag IFACE 0|1 VLAN_QOS
  4718. \& set_egress_map VLAN_NAME SKB_PRIO VLAN_QOS
  4719. \& set_ingress_map VLAN_NAME SKB_PRIO VLAN_QOS
  4720. \& set_name_type NAME_TYPE
  4721. .Ve
  4722. .IP "\fBvi\fR" 4
  4723. .IX Item "vi"
  4724. vi [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  4725. .Sp
  4726. Edit \s-1FILE\s0
  4727. .Sp
  4728. .Vb 3
  4729. \& \-c CMD Initial command to run ($EXINIT also available)
  4730. \& \-R Read\-only
  4731. \& \-H List available features
  4732. .Ve
  4733. .IP "\fBvlock\fR" 4
  4734. .IX Item "vlock"
  4735. vlock [\-a]
  4736. .Sp
  4737. Lock a virtual terminal. A password is required to unlock.
  4738. .Sp
  4739. .Vb 1
  4740. \& \-a Lock all VTs
  4741. .Ve
  4742. .IP "\fBvolname\fR" 4
  4743. .IX Item "volname"
  4744. volname [\s-1DEVICE\s0]
  4745. .Sp
  4746. Show \s-1CD\s0 volume name of the \s-1DEVICE\s0 (default /dev/cdrom)
  4747. .IP "\fBw\fR" 4
  4748. .IX Item "w"
  4749. w
  4750. .Sp
  4751. Show who is logged on
  4752. .IP "\fBwall\fR" 4
  4753. .IX Item "wall"
  4754. wall [\s-1FILE\s0]
  4755. .Sp
  4756. Write content of \s-1FILE\s0 or stdin to all logged-in users
  4757. .IP "\fBwatch\fR" 4
  4758. .IX Item "watch"
  4759. watch [\-n \s-1SEC\s0] [\-t] \s-1PROG ARGS\s0
  4760. .Sp
  4761. Run \s-1PROG\s0 periodically
  4762. .Sp
  4763. .Vb 2
  4764. \& \-n Loop period in seconds (default 2)
  4765. \& \-t Don\*(Aqt print header
  4766. .Ve
  4767. .IP "\fBwatchdog\fR" 4
  4768. .IX Item "watchdog"
  4769. watchdog [\-t N[ms]] [\-T N[ms]] [\-F] \s-1DEV\s0
  4770. .Sp
  4771. Periodically write to watchdog device \s-1DEV\s0
  4772. .Sp
  4773. .Vb 3
  4774. \& \-T N Reboot after N seconds if not reset (default 60)
  4775. \& \-t N Reset every N seconds (default 30)
  4776. \& \-F Run in foreground
  4777. .Ve
  4778. .Sp
  4779. Use 500ms to specify period in milliseconds
  4780. .IP "\fBwc\fR" 4
  4781. .IX Item "wc"
  4782. wc [\-cmlwL] [\s-1FILE\s0]...
  4783. .Sp
  4784. Count lines, words, and bytes for each \s-1FILE\s0 (or stdin)
  4785. .Sp
  4786. .Vb 5
  4787. \& \-c Count bytes
  4788. \& \-m Count characters
  4789. \& \-l Count newlines
  4790. \& \-w Count words
  4791. \& \-L Print longest line length
  4792. .Ve
  4793. .IP "\fBwget\fR" 4
  4794. .IX Item "wget"
  4795. wget [\-c|\-\-continue] [\-\-spider] [\-q|\-\-quiet] [\-O|\-\-output\-document \s-1FILE\s0]
  4796. [\-\-header 'header: value'] [\-Y|\-\-proxy on/off] [\-P \s-1DIR\s0]
  4797. [\-S|\-\-server\-response] [\-U|\-\-user\-agent \s-1AGENT\s0] [\-T \s-1SEC\s0] \s-1URL...\s0
  4798. .Sp
  4799. Retrieve files via \s-1HTTP\s0 or \s-1FTP\s0
  4800. .Sp
  4801. .Vb 9
  4802. \& \-\-spider Only check URL existence: $? is 0 if exists
  4803. \& \-c Continue retrieval of aborted transfer
  4804. \& \-q Quiet
  4805. \& \-P DIR Save to DIR (default .)
  4806. \& \-S Show server response
  4807. \& \-T SEC Network read timeout is SEC seconds
  4808. \& \-O FILE Save to FILE (\*(Aq\-\*(Aq for stdout)
  4809. \& \-U STR Use STR for User\-Agent header
  4810. \& \-Y on/off Use proxy
  4811. .Ve
  4812. .IP "\fBwhich\fR" 4
  4813. .IX Item "which"
  4814. which [\s-1COMMAND\s0]...
  4815. .Sp
  4816. Locate a \s-1COMMAND\s0
  4817. .IP "\fBwho\fR" 4
  4818. .IX Item "who"
  4819. who [\-a]
  4820. .Sp
  4821. Show who is logged on
  4822. .Sp
  4823. .Vb 2
  4824. \& \-a Show all
  4825. \& \-H Print column headers
  4826. .Ve
  4827. .IP "\fBwhoami\fR" 4
  4828. .IX Item "whoami"
  4829. whoami
  4830. .Sp
  4831. Print the user name associated with the current effective user id
  4832. .IP "\fBwhois\fR" 4
  4833. .IX Item "whois"
  4834. whois [\-i] [\-h \s-1SERVER\s0] [\-p \s-1PORT\s0] \s-1NAME...\s0
  4835. .Sp
  4836. Query \s-1WHOIS\s0 info about \s-1NAME\s0
  4837. .Sp
  4838. .Vb 2
  4839. \& \-i Show redirect results too
  4840. \& \-h,\-p Server to query
  4841. .Ve
  4842. .IP "\fBxargs\fR" 4
  4843. .IX Item "xargs"
  4844. xargs [\s-1OPTIONS\s0] [\s-1PROG ARGS\s0]
  4845. .Sp
  4846. Run \s-1PROG\s0 on every item given by stdin
  4847. .Sp
  4848. .Vb 11
  4849. \& \-p Ask user whether to run each command
  4850. \& \-r Don\*(Aqt run command if input is empty
  4851. \& \-0 Input is separated by NUL characters
  4852. \& \-a FILE Read from FILE instead of stdin
  4853. \& \-t Print the command on stderr before execution
  4854. \& \-e[STR] STR stops input processing
  4855. \& \-n N Pass no more than N args to PROG
  4856. \& \-s N Pass command line of no more than N bytes
  4857. \& \-I STR Replace STR within PROG ARGS with input line
  4858. \& \-P N Run up to N PROGs in parallel
  4859. \& \-x Exit if size is exceeded
  4860. .Ve
  4861. .IP "\fBxxd\fR" 4
  4862. .IX Item "xxd"
  4863. xxd [\s-1OPTIONS\s0] [\s-1FILE\s0]
  4864. .Sp
  4865. Hex dump \s-1FILE\s0 (or stdin)
  4866. .Sp
  4867. .Vb 5
  4868. \& \-g N Bytes per group
  4869. \& \-c N Bytes per line
  4870. \& \-p Show only hex bytes, assumes \-c30
  4871. \& \-l LENGTH Show only first LENGTH bytes
  4872. \& \-s OFFSET Skip OFFSET bytes
  4873. .Ve
  4874. .IP "\fBxz\fR" 4
  4875. .IX Item "xz"
  4876. xz \-d [\-cfk] [\s-1FILE\s0]...
  4877. .Sp
  4878. Decompress \s-1FILE\s0 (or stdin)
  4879. .Sp
  4880. .Vb 4
  4881. \& \-d Decompress
  4882. \& \-c Write to stdout
  4883. \& \-f Force
  4884. \& \-k Keep input files
  4885. .Ve
  4886. .IP "\fBxzcat\fR" 4
  4887. .IX Item "xzcat"
  4888. xzcat [\s-1FILE\s0]...
  4889. .Sp
  4890. Decompress to stdout
  4891. .IP "\fByes\fR" 4
  4892. .IX Item "yes"
  4893. yes [\s-1STRING\s0]
  4894. .Sp
  4895. Repeatedly output a line with \s-1STRING,\s0 or 'y'
  4896. .IP "\fBzcat\fR" 4
  4897. .IX Item "zcat"
  4898. zcat [\s-1FILE\s0]...
  4899. .Sp
  4900. Decompress to stdout
  4901. .IP "\fBzcip\fR" 4
  4902. .IX Item "zcip"
  4903. zcip [\s-1OPTIONS\s0] \s-1IFACE SCRIPT\s0
  4904. .Sp
  4905. Manage a ZeroConf IPv4 link-local address
  4906. .Sp
  4907. .Vb 5
  4908. \& \-f Run in foreground
  4909. \& \-q Quit after obtaining address
  4910. \& \-r 169.254.x.x Request this address first
  4911. \& \-l x.x.0.0 Use this range instead of 169.254
  4912. \& \-v Verbose
  4913. .Ve
  4914. .Sp
  4915. \&\f(CW$LOGGING\fR=none Suppress logging
  4916. \&\f(CW$LOGGING\fR=syslog Log to syslog
  4917. .Sp
  4918. With no \-q, runs continuously monitoring for \s-1ARP\s0 conflicts,
  4919. exits only on I/O errors (link down etc)
  4920. .SH "LIBC NSS"
  4921. .IX Header "LIBC NSS"
  4922. \&\s-1GNU\s0 Libc (glibc) uses the Name Service Switch (\s-1NSS\s0) to configure the behavior
  4923. of the C library for the local environment, and to configure how it reads
  4924. system data, such as passwords and group information. This is implemented
  4925. using an /etc/nsswitch.conf configuration file, and using one or more of the
  4926. /lib/libnss_* libraries. BusyBox tries to avoid using any libc calls that make
  4927. use of \s-1NSS.\s0 Some applets however, such as login and su, will use libc functions
  4928. that require \s-1NSS.\s0
  4929. .PP
  4930. If you enable \s-1CONFIG_USE_BB_PWD_GRP,\s0 BusyBox will use internal functions to
  4931. directly access the /etc/passwd, /etc/group, and /etc/shadow files without
  4932. using \s-1NSS.\s0 This may allow you to run your system without the need for
  4933. installing any of the \s-1NSS\s0 configuration files and libraries.
  4934. .PP
  4935. When used with glibc, the BusyBox 'networking' applets will similarly require
  4936. that you install at least some of the glibc \s-1NSS\s0 stuff (in particular,
  4937. /etc/nsswitch.conf, /lib/libnss_dns*, /lib/libnss_files*, and /lib/libresolv*).
  4938. .PP
  4939. Shameless Plug: As an alternative, one could use a C library such as uClibc. In
  4940. addition to making your system significantly smaller, uClibc does not require the
  4941. use of any \s-1NSS\s0 support files or libraries.
  4942. .SH "MAINTAINER"
  4943. .IX Header "MAINTAINER"
  4944. Denis Vlasenko <vda.linux@googlemail.com>
  4945. .SH "AUTHORS"
  4946. .IX Header "AUTHORS"
  4947. The following people have contributed code to BusyBox whether they know it or
  4948. not. If you have written code included in BusyBox, you should probably be
  4949. listed here so you can obtain your bit of eternal glory. If you should be
  4950. listed here, or the description of what you have done needs more detail, or is
  4951. incorrect, please send in an update.
  4952. .PP
  4953. Emanuele Aina <emanuele.aina@tiscali.it>
  4954. run-parts
  4955. .PP
  4956. Erik Andersen <andersen@codepoet.org>
  4957. .PP
  4958. .Vb 4
  4959. \& Tons of new stuff, major rewrite of most of the
  4960. \& core apps, tons of new apps as noted in header files.
  4961. \& Lots of tedious effort writing these boring docs that
  4962. \& nobody is going to actually read.
  4963. .Ve
  4964. .PP
  4965. Laurence Anderson <l.d.anderson@warwick.ac.uk>
  4966. .PP
  4967. .Vb 1
  4968. \& rpm2cpio, unzip, get_header_cpio, read_gz interface, rpm
  4969. .Ve
  4970. .PP
  4971. Jeff Angielski <jeff@theptrgroup.com>
  4972. .PP
  4973. .Vb 1
  4974. \& ftpput, ftpget
  4975. .Ve
  4976. .PP
  4977. Edward Betts <edward@debian.org>
  4978. .PP
  4979. .Vb 1
  4980. \& expr, hostid, logname, whoami
  4981. .Ve
  4982. .PP
  4983. John Beppu <beppu@codepoet.org>
  4984. .PP
  4985. .Vb 1
  4986. \& du, nslookup, sort
  4987. .Ve
  4988. .PP
  4989. Brian Candler <B.Candler@pobox.com>
  4990. .PP
  4991. .Vb 1
  4992. \& tiny\-ls(ls)
  4993. .Ve
  4994. .PP
  4995. Randolph Chung <tausq@debian.org>
  4996. .PP
  4997. .Vb 1
  4998. \& fbset, ping, hostname
  4999. .Ve
  5000. .PP
  5001. Dave Cinege <dcinege@psychosis.com>
  5002. .PP
  5003. .Vb 2
  5004. \& more(v2), makedevs, dutmp, modularization, auto links file,
  5005. \& various fixes, Linux Router Project maintenance
  5006. .Ve
  5007. .PP
  5008. Jordan Crouse <jordan@cosmicpenguin.net>
  5009. .PP
  5010. .Vb 1
  5011. \& ipcalc
  5012. .Ve
  5013. .PP
  5014. Magnus Damm <damm@opensource.se>
  5015. .PP
  5016. .Vb 1
  5017. \& tftp client insmod powerpc support
  5018. .Ve
  5019. .PP
  5020. Larry Doolittle <ldoolitt@recycle.lbl.gov>
  5021. .PP
  5022. .Vb 1
  5023. \& pristine source directory compilation, lots of patches and fixes.
  5024. .Ve
  5025. .PP
  5026. Glenn Engel <glenne@engel.org>
  5027. .PP
  5028. .Vb 1
  5029. \& httpd
  5030. .Ve
  5031. .PP
  5032. Gennady Feldman <gfeldman@gena01.com>
  5033. .PP
  5034. .Vb 2
  5035. \& Sysklogd (single threaded syslogd, IPC Circular buffer support,
  5036. \& logread), various fixes.
  5037. .Ve
  5038. .PP
  5039. Karl M. Hegbloom <karlheg@debian.org>
  5040. .PP
  5041. .Vb 1
  5042. \& cp_mv.c, the test suite, various fixes to utility.c, &c.
  5043. .Ve
  5044. .PP
  5045. Daniel Jacobowitz <dan@debian.org>
  5046. .PP
  5047. .Vb 1
  5048. \& mktemp.c
  5049. .Ve
  5050. .PP
  5051. Matt Kraai <kraai@alumni.cmu.edu>
  5052. .PP
  5053. .Vb 1
  5054. \& documentation, bugfixes, test suite
  5055. .Ve
  5056. .PP
  5057. Stephan Linz <linz@li\-pro.net>
  5058. .PP
  5059. .Vb 1
  5060. \& ipcalc, Red Hat equivalence
  5061. .Ve
  5062. .PP
  5063. John Lombardo <john@deltanet.com>
  5064. .PP
  5065. .Vb 1
  5066. \& tr
  5067. .Ve
  5068. .PP
  5069. Glenn McGrath <bug1@iinet.net.au>
  5070. .PP
  5071. .Vb 3
  5072. \& Common unarchiving code and unarchiving applets, ifupdown, ftpgetput,
  5073. \& nameif, sed, patch, fold, install, uudecode.
  5074. \& Various bugfixes, review and apply numerous patches.
  5075. .Ve
  5076. .PP
  5077. Manuel Novoa \s-1III\s0 <mjn3@codepoet.org>
  5078. .PP
  5079. .Vb 3
  5080. \& cat, head, mkfifo, mknod, rmdir, sleep, tee, tty, uniq, usleep, wc, yes,
  5081. \& mesg, vconfig, make_directory, parse_mode, dirname, mode_string,
  5082. \& get_last_path_component, simplify_path, and a number trivial libbb routines
  5083. \&
  5084. \& also bug fixes, partial rewrites, and size optimizations in
  5085. \& ash, basename, cal, cmp, cp, df, du, echo, env, ln, logname, md5sum, mkdir,
  5086. \& mv, realpath, rm, sort, tail, touch, uname, watch, arith, human_readable,
  5087. \& interface, dutmp, ifconfig, route
  5088. .Ve
  5089. .PP
  5090. Vladimir Oleynik <dzo@simtreas.ru>
  5091. .PP
  5092. .Vb 4
  5093. \& cmdedit; xargs(current), httpd(current);
  5094. \& ports: ash, crond, fdisk, inetd, stty, traceroute, top;
  5095. \& locale, various fixes
  5096. \& and irreconcilable critic of everything not perfect.
  5097. .Ve
  5098. .PP
  5099. Bruce Perens <bruce@pixar.com>
  5100. .PP
  5101. .Vb 2
  5102. \& Original author of BusyBox in 1995, 1996. Some of his code can
  5103. \& still be found hiding here and there...
  5104. .Ve
  5105. .PP
  5106. Tim Riker <Tim@Rikers.org>
  5107. .PP
  5108. .Vb 1
  5109. \& bug fixes, member of fan club
  5110. .Ve
  5111. .PP
  5112. Kent Robotti <robotti@metconnect.com>
  5113. .PP
  5114. .Vb 1
  5115. \& reset, tons and tons of bug reports and patches.
  5116. .Ve
  5117. .PP
  5118. Chip Rosenthal <chip@unicom.com>, <crosenth@covad.com>
  5119. .PP
  5120. .Vb 1
  5121. \& wget \- Contributed by permission of Covad Communications
  5122. .Ve
  5123. .PP
  5124. Pavel Roskin <proski@gnu.org>
  5125. .PP
  5126. .Vb 1
  5127. \& Lots of bugs fixes and patches.
  5128. .Ve
  5129. .PP
  5130. Gyepi Sam <gyepi@praxis\-sw.com>
  5131. .PP
  5132. .Vb 1
  5133. \& Remote logging feature for syslogd
  5134. .Ve
  5135. .PP
  5136. Linus Torvalds <torvalds@transmeta.com>
  5137. .PP
  5138. .Vb 1
  5139. \& mkswap, fsck.minix, mkfs.minix
  5140. .Ve
  5141. .PP
  5142. Mark Whitley <markw@codepoet.org>
  5143. .PP
  5144. .Vb 2
  5145. \& grep, sed, cut, xargs(previous),
  5146. \& style\-guide, new\-applet\-HOWTO, bug fixes, etc.
  5147. .Ve
  5148. .PP
  5149. Charles P. Wright <cpwright@villagenet.com>
  5150. .PP
  5151. .Vb 1
  5152. \& gzip, mini\-netcat(nc)
  5153. .Ve
  5154. .PP
  5155. Enrique Zanardi <ezanardi@ull.es>
  5156. .PP
  5157. .Vb 1
  5158. \& tarcat (since removed), loadkmap, various fixes, Debian maintenance
  5159. .Ve
  5160. .PP
  5161. Tito Ragusa <farmatito@tiscali.it>
  5162. .PP
  5163. .Vb 1
  5164. \& devfsd and size optimizations in strings, openvt and deallocvt.
  5165. .Ve
  5166. .PP
  5167. Paul Fox <pgf@foxharp.boston.ma.us>
  5168. .PP
  5169. .Vb 1
  5170. \& vi editing mode for ash, various other patches/fixes
  5171. .Ve
  5172. .PP
  5173. Roberto A. Foglietta <me@roberto.foglietta.name>
  5174. .PP
  5175. .Vb 1
  5176. \& port: dnsd
  5177. .Ve
  5178. .PP
  5179. Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  5180. .PP
  5181. .Vb 1
  5182. \& misc
  5183. .Ve
  5184. .PP
  5185. Mike Frysinger <vapier@gentoo.org>
  5186. .PP
  5187. .Vb 1
  5188. \& initial e2fsprogs, printenv, setarch, sum, misc
  5189. .Ve
  5190. .PP
  5191. Jie Zhang <jie.zhang@analog.com>
  5192. .PP
  5193. .Vb 1
  5194. \& fixed two bugs in msh and hush (exitcode of killed processes)
  5195. .Ve