usage.h 173 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757
  1. /* vi: set sw=8 ts=8: */
  2. /*
  3. * This file suffers from chronically incorrect tabification
  4. * of messages. Before editing this file:
  5. * 1. Switch you editor to 8-space tab mode.
  6. * 2. Do not use \t in messages, use real tab character.
  7. * 3. Start each source line with message as follows:
  8. * |<7 spaces>"text with tabs"....
  9. * or
  10. * |<5 spaces>"\ntext with tabs"....
  11. */
  12. #ifndef __BB_USAGE_H__
  13. #define __BB_USAGE_H__
  14. #define NOUSAGE_STR "\b"
  15. #define addgroup_trivial_usage \
  16. "[-g GID] " USE_FEATURE_ADDUSER_TO_GROUP("[user_name] ") "group_name"
  17. #define addgroup_full_usage "\n\n" \
  18. "Add a group " USE_FEATURE_ADDUSER_TO_GROUP("or add an user to a group") "\n" \
  19. "\nOptions:" \
  20. "\n -g GID Group id" \
  21. #define adduser_trivial_usage \
  22. "[OPTIONS] user_name"
  23. #define adduser_full_usage "\n\n" \
  24. "Add an user\n" \
  25. "\nOptions:" \
  26. "\n -h DIR Home directory" \
  27. "\n -g GECOS GECOS field" \
  28. "\n -s SHELL Login shell" \
  29. "\n -G GROUP Add user to existing group" \
  30. "\n -S Create a system user" \
  31. "\n -D Do not assign a password" \
  32. "\n -H Do not create home directory" \
  33. #define adjtimex_trivial_usage \
  34. "[-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]"
  35. #define adjtimex_full_usage "\n\n" \
  36. "Read and optionally set system timebase parameters. See adjtimex(2).\n" \
  37. "\nOptions:" \
  38. "\n -q Quiet" \
  39. "\n -o offset Time offset, microseconds" \
  40. "\n -f frequency Frequency adjust, integer kernel units (65536 is 1ppm)" \
  41. "\n (positive values make clock run faster)" \
  42. "\n -t tick Microseconds per tick, usually 10000" \
  43. "\n -p timeconstant" \
  44. #define ar_trivial_usage \
  45. "[-o] [-v] [-p] [-t] [-x] ARCHIVE FILES"
  46. #define ar_full_usage "\n\n" \
  47. "Extract or list FILES from an ar archive\n" \
  48. "\nOptions:" \
  49. "\n -o Preserve original dates" \
  50. "\n -p Extract to stdout" \
  51. "\n -t List" \
  52. "\n -x Extract" \
  53. "\n -v Verbose" \
  54. #define arp_trivial_usage \
  55. "\n" \
  56. "[-vn] [-H type] [-i if] -a [hostname]\n" \
  57. "[-v] [-i if] -d hostname [pub]\n" \
  58. "[-v] [-H type] [-i if] -s hostname hw_addr [temp]\n" \
  59. "[-v] [-H type] [-i if] -s hostname hw_addr [netmask nm] pub\n" \
  60. "[-v] [-H type] [-i if] -Ds hostname ifa [netmask nm] pub\n"
  61. #define arp_full_usage "\n\n" \
  62. "Manipulate ARP cache\n" \
  63. "\nOptions:" \
  64. "\n -a Display (all) hosts" \
  65. "\n -s Set new ARP entry" \
  66. "\n -d Delete a specified entry" \
  67. "\n -v Verbose" \
  68. "\n -n Don't resolve names" \
  69. "\n -i IF Network interface" \
  70. "\n -D Read <hwaddr> from given device" \
  71. "\n -A, -p AF Protocol family" \
  72. "\n -H HWTYPE Hardware address type" \
  73. #define arping_trivial_usage \
  74. "[-fqbDUA] [-c count] [-w timeout] [-I dev] [-s sender] target"
  75. #define arping_full_usage "\n\n" \
  76. "Send ARP requests/replies\n" \
  77. "\nOptions:" \
  78. "\n -f Quit on first ARP reply" \
  79. "\n -q Quiet" \
  80. "\n -b Keep broadcasting, don't go unicast" \
  81. "\n -D Duplicated address detection mode" \
  82. "\n -U Unsolicited ARP mode, update your neighbors" \
  83. "\n -A ARP answer mode, update your neighbors" \
  84. "\n -c N Stop after sending N ARP requests" \
  85. "\n -w timeout Time to wait for ARP reply, in seconds" \
  86. "\n -I dev Interface to use (default eth0)" \
  87. "\n -s sender Sender IP address" \
  88. "\n target Target IP address" \
  89. #define sh_trivial_usage NOUSAGE_STR
  90. #define sh_full_usage ""
  91. #define ash_trivial_usage NOUSAGE_STR
  92. #define ash_full_usage ""
  93. #define hush_trivial_usage NOUSAGE_STR
  94. #define hush_full_usage ""
  95. #define msh_trivial_usage NOUSAGE_STR
  96. #define msh_full_usage ""
  97. #define awk_trivial_usage \
  98. "[OPTION]... [program-text] [FILE...]"
  99. #define awk_full_usage "\n\n" \
  100. "Options:" \
  101. "\n -v var=val Set variable" \
  102. "\n -F sep Use sep as field separator" \
  103. "\n -f file Read program from file" \
  104. #define basename_trivial_usage \
  105. "FILE [SUFFIX]"
  106. #define basename_full_usage "\n\n" \
  107. "Strip directory path and suffixes from FILE.\n" \
  108. "If specified, also remove any trailing SUFFIX."
  109. #define basename_example_usage \
  110. "$ basename /usr/local/bin/foo\n" \
  111. "foo\n" \
  112. "$ basename /usr/local/bin/\n" \
  113. "bin\n" \
  114. "$ basename /foo/bar.txt .txt\n" \
  115. "bar"
  116. #define fbsplash_trivial_usage \
  117. "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]"
  118. #define fbsplash_full_usage "\n\n" \
  119. "Options:\n" \
  120. "\n -s Image" \
  121. "\n -c Hide cursor" \
  122. "\n -d Framebuffer device (default /dev/fb0)" \
  123. "\n -i Config file (var=value):" \
  124. "\n BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT" \
  125. "\n BAR_R,BAR_G,BAR_B" \
  126. "\n -f Control pipe (else exit after drawing image)" \
  127. "\n commands: 'NN' (% for progress bar) or 'exit'" \
  128. #define brctl_trivial_usage \
  129. "COMMAND [BRIDGE [INTERFACE]]"
  130. #define brctl_full_usage "\n\n" \
  131. "Manage ethernet bridges.\n" \
  132. "\nCommands:" \
  133. USE_FEATURE_BRCTL_SHOW( \
  134. "\n show Show a list of bridges" \
  135. ) \
  136. "\n addbr BRIDGE Create BRIDGE" \
  137. "\n delbr BRIDGE Delete BRIDGE" \
  138. "\n addif BRIDGE IFACE Add IFACE to BRIDGE" \
  139. "\n delif BRIDGE IFACE Delete IFACE from BRIDGE" \
  140. USE_FEATURE_BRCTL_FANCY( \
  141. "\n setageing BRIDGE TIME Set ageing time" \
  142. "\n setfd BRIDGE TIME Set bridge forward delay" \
  143. "\n sethello BRIDGE TIME Set hello time" \
  144. "\n setmaxage BRIDGE TIME Set max message age" \
  145. "\n setpathcost BRIDGE COST Set path cost" \
  146. "\n setportprio BRIDGE PRIO Set port priority" \
  147. "\n setbridgeprio BRIDGE PRIO Set bridge priority" \
  148. "\n stp BRIDGE [1|0] STP on/off" \
  149. ) \
  150. #define bunzip2_trivial_usage \
  151. "[OPTION]... [FILE]"
  152. #define bunzip2_full_usage "\n\n" \
  153. "Uncompress FILE (or standard input if FILE is '-' or omitted)\n" \
  154. "\nOptions:" \
  155. "\n -c Write to standard output" \
  156. "\n -f Force" \
  157. #define bzip2_trivial_usage \
  158. "[OPTION]... [FILE]..."
  159. #define bzip2_full_usage "\n\n" \
  160. "Compress FILE(s) with bzip2 algorithm.\n" \
  161. "When FILE is '-' or unspecified, reads standard input. Implies -c.\n" \
  162. "\nOptions:" \
  163. "\n -c Write to standard output" \
  164. "\n -d Decompress" \
  165. "\n -f Force" \
  166. "\n -1..-9 Compression level" \
  167. #define busybox_notes_usage \
  168. "Hello world!\n"
  169. #define bzcat_trivial_usage \
  170. "FILE"
  171. #define bzcat_full_usage "\n\n" \
  172. "Uncompress to stdout"
  173. #define unlzma_trivial_usage \
  174. "[OPTION]... [FILE]"
  175. #define unlzma_full_usage "\n\n" \
  176. "Uncompress FILE (or standard input if FILE is '-' or omitted)\n" \
  177. "\nOptions:" \
  178. "\n -c Write to standard output" \
  179. "\n -f Force" \
  180. #define lzmacat_trivial_usage \
  181. "FILE"
  182. #define lzmacat_full_usage "\n\n" \
  183. "Uncompress to stdout"
  184. #define cal_trivial_usage \
  185. "[-jy] [[month] year]"
  186. #define cal_full_usage "\n\n" \
  187. "Display a calendar\n" \
  188. "\nOptions:" \
  189. "\n -j Use julian dates" \
  190. "\n -y Display the entire year" \
  191. #define cat_trivial_usage \
  192. "[-u] [FILE]..."
  193. #define cat_full_usage "\n\n" \
  194. "Concatenate FILE(s) and print them to stdout\n" \
  195. "\nOptions:" \
  196. "\n -u Use unbuffered i/o (ignored)" \
  197. #define cat_example_usage \
  198. "$ cat /proc/uptime\n" \
  199. "110716.72 17.67"
  200. #define catv_trivial_usage \
  201. "[-etv] [FILE]..."
  202. #define catv_full_usage "\n\n" \
  203. "Display nonprinting characters as ^x or M-x\n" \
  204. "\nOptions:" \
  205. "\n -e End each line with $" \
  206. "\n -t Show tabs as ^I" \
  207. "\n -v Don't use ^x or M-x escapes" \
  208. #define chat_trivial_usage \
  209. "EXPECT [SEND [EXPECT [SEND...]]]"
  210. #define chat_full_usage "\n\n" \
  211. "Useful for interacting with a modem connected to stdin/stdout.\n" \
  212. "A script consists of one or more \"expect-send\" pairs of strings,\n" \
  213. "each pair is a pair of arguments. Example:\n" \
  214. "chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'" \
  215. #define chattr_trivial_usage \
  216. "[-R] [-+=AacDdijsStTu] [-v version] files..."
  217. #define chattr_full_usage "\n\n" \
  218. "Change file attributes on an ext2 fs\n" \
  219. "\nModifiers:" \
  220. "\n - Remove attributes" \
  221. "\n + Add attributes" \
  222. "\n = Set attributes" \
  223. "\nAttributes:" \
  224. "\n A Don't track atime" \
  225. "\n a Append mode only" \
  226. "\n c Enable compress" \
  227. "\n D Write dir contents synchronously" \
  228. "\n d Do not backup with dump" \
  229. "\n i Cannot be modified (immutable)" \
  230. "\n j Write all data to journal first" \
  231. "\n s Zero disk storage when deleted" \
  232. "\n S Write file contents synchronously" \
  233. "\n t Disable tail-merging of partial blocks with other files" \
  234. "\n u Allow file to be undeleted" \
  235. "\nOptions:" \
  236. "\n -R Recursively list subdirectories" \
  237. "\n -v Set the file's version/generation number" \
  238. #define chcon_trivial_usage \
  239. "[OPTIONS] CONTEXT FILE..." \
  240. "\n chcon [OPTIONS] [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE..." \
  241. USE_FEATURE_CHCON_LONG_OPTIONS( \
  242. "\n chcon [OPTIONS] --reference=RFILE FILE..." \
  243. )
  244. #define chcon_full_usage "\n\n" \
  245. "Change the security context of each FILE to CONTEXT\n" \
  246. USE_FEATURE_CHCON_LONG_OPTIONS( \
  247. "\n -v,--verbose Verbose" \
  248. "\n -c,--changes Report changes made" \
  249. "\n -h,--no-dereference Affect symlinks instead of their targets" \
  250. "\n -f,--silent,--quiet Suppress most error messages" \
  251. "\n --reference=RFILE Use RFILE's group instead of using a CONTEXT value" \
  252. "\n -u,--user=USER Set user/role/type/range in the target" \
  253. "\n -r,--role=ROLE security context" \
  254. "\n -t,--type=TYPE" \
  255. "\n -l,--range=RANGE" \
  256. "\n -R,--recursive Recurse subdirectories" \
  257. ) \
  258. SKIP_FEATURE_CHCON_LONG_OPTIONS( \
  259. "\n -v Verbose" \
  260. "\n -c Report changes made" \
  261. "\n -h Affect symlinks instead of their targets" \
  262. "\n -f Suppress most error messages" \
  263. "\n -u USER Set user/role/type/range in the target security context" \
  264. "\n -r ROLE" \
  265. "\n -t TYPE" \
  266. "\n -l RNG" \
  267. "\n -R Recurse subdirectories" \
  268. )
  269. #define chmod_trivial_usage \
  270. "[-R"USE_DESKTOP("cvf")"] MODE[,MODE]... FILE..."
  271. #define chmod_full_usage "\n\n" \
  272. "Each MODE is one or more of the letters ugoa, one of the\n" \
  273. "symbols +-= and one or more of the letters rwxst\n" \
  274. "\nOptions:" \
  275. "\n -R Recurse directories" \
  276. USE_DESKTOP( \
  277. "\n -c List changed files" \
  278. "\n -v List all files" \
  279. "\n -f Hide errors" \
  280. )
  281. #define chmod_example_usage \
  282. "$ ls -l /tmp/foo\n" \
  283. "-rw-rw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" \
  284. "$ chmod u+x /tmp/foo\n" \
  285. "$ ls -l /tmp/foo\n" \
  286. "-rwxrw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo*\n" \
  287. "$ chmod 444 /tmp/foo\n" \
  288. "$ ls -l /tmp/foo\n" \
  289. "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n"
  290. #define chgrp_trivial_usage \
  291. "[-RhLHP"USE_DESKTOP("cvf")"]... GROUP FILE..."
  292. #define chgrp_full_usage "\n\n" \
  293. "Change the group membership of each FILE to GROUP\n" \
  294. "\nOptions:" \
  295. "\n -R Recurse directories" \
  296. "\n -h Affect symlinks instead of symlink targets" \
  297. "\n -L Traverse all symlinks to directories" \
  298. "\n -H Traverse symlinks on command line only" \
  299. "\n -P Do not traverse symlinks (default)" \
  300. USE_DESKTOP( \
  301. "\n -c List changed files" \
  302. "\n -v Verbose" \
  303. "\n -f Hide errors" \
  304. )
  305. #define chgrp_example_usage \
  306. "$ ls -l /tmp/foo\n" \
  307. "-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" \
  308. "$ chgrp root /tmp/foo\n" \
  309. "$ ls -l /tmp/foo\n" \
  310. "-r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo\n"
  311. #define chown_trivial_usage \
  312. "[-RhLHP"USE_DESKTOP("cvf")"]... OWNER[<.|:>[GROUP]] FILE..."
  313. #define chown_full_usage "\n\n" \
  314. "Change the owner and/or group of each FILE to OWNER and/or GROUP\n" \
  315. "\nOptions:" \
  316. "\n -R Recurse directories" \
  317. "\n -h Affect symlinks instead of symlink targets" \
  318. "\n -L Traverse all symlinks to directories" \
  319. "\n -H Traverse symlinks on command line only" \
  320. "\n -P Do not traverse symlinks (default)" \
  321. USE_DESKTOP( \
  322. "\n -c List changed files" \
  323. "\n -v List all files" \
  324. "\n -f Hide errors" \
  325. )
  326. #define chown_example_usage \
  327. "$ ls -l /tmp/foo\n" \
  328. "-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" \
  329. "$ chown root /tmp/foo\n" \
  330. "$ ls -l /tmp/foo\n" \
  331. "-r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo\n" \
  332. "$ chown root.root /tmp/foo\n" \
  333. "ls -l /tmp/foo\n" \
  334. "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n"
  335. #define chpst_trivial_usage \
  336. "[-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR]\n" \
  337. " [-/ DIR] [-n NICE] [-m BYTES] [-d BYTES] [-o N]\n" \
  338. " [-p N] [-f BYTES] [-c BYTES] PROG ARGS"
  339. #define chpst_full_usage "\n\n" \
  340. "Change the process state and run PROG\n" \
  341. "\nOptions:" \
  342. "\n -u USER[:GRP] Set uid and gid" \
  343. "\n -U USER[:GRP] Set $UID and $GID in environment" \
  344. "\n -e DIR Set environment variables as specified by files" \
  345. "\n in DIR: file=1st_line_of_file" \
  346. "\n -/ DIR Chroot to DIR" \
  347. "\n -n NICE Add NICE to nice value" \
  348. "\n -m BYTES Same as -d BYTES -s BYTES -l BYTES" \
  349. "\n -d BYTES Limit data segment" \
  350. "\n -o N Limit number of open files per process" \
  351. "\n -p N Limit number of processes per uid" \
  352. "\n -f BYTES Limit output file sizes" \
  353. "\n -c BYTES Limit core file size" \
  354. "\n -v Verbose" \
  355. "\n -P Create new process group" \
  356. "\n -0 Close standard input" \
  357. "\n -1 Close standard output" \
  358. "\n -2 Close standard error" \
  359. #define setuidgid_trivial_usage \
  360. "account prog args"
  361. #define setuidgid_full_usage "\n\n" \
  362. "Set uid and gid to account's uid and gid, removing all supplementary\n" \
  363. "groups and run PROG"
  364. #define envuidgid_trivial_usage \
  365. "account prog args"
  366. #define envuidgid_full_usage "\n\n" \
  367. "Set $UID to account's uid and $GID to account's gid and run PROG"
  368. #define envdir_trivial_usage \
  369. "dir prog args"
  370. #define envdir_full_usage "\n\n" \
  371. "Set various environment variables as specified by files\n" \
  372. "in the directory dir and run PROG"
  373. #define softlimit_trivial_usage \
  374. "[-a BYTES] [-m BYTES] [-d BYTES] [-s BYTES] [-l BYTES]\n" \
  375. " [-f BYTES] [-c BYTES] [-r BYTES] [-o N] [-p N] [-t N]\n" \
  376. " PROG ARGS"
  377. #define softlimit_full_usage "\n\n" \
  378. "Set soft resource limits, then run PROG\n" \
  379. "\nOptions:" \
  380. "\n -a BYTES Limit total size of all segments" \
  381. "\n -m BYTES Same as -d BYTES -s BYTES -l BYTES -a BYTES" \
  382. "\n -d BYTES Limit data segment" \
  383. "\n -s BYTES Limit stack segment" \
  384. "\n -l BYTES Limit locked memory size" \
  385. "\n -o N Limit number of open files per process" \
  386. "\n -p N Limit number of processes per uid" \
  387. "\nOptions controlling file sizes:" \
  388. "\n -f BYTES Limit output file sizes" \
  389. "\n -c BYTES Limit core file size" \
  390. "\nEfficiency opts:" \
  391. "\n -r BYTES Limit resident set size" \
  392. "\n -t N Limit CPU time, process receives" \
  393. "\n a SIGXCPU after N seconds" \
  394. #define chroot_trivial_usage \
  395. "NEWROOT [COMMAND...]"
  396. #define chroot_full_usage "\n\n" \
  397. "Run COMMAND with root directory set to NEWROOT"
  398. #define chroot_example_usage \
  399. "$ ls -l /bin/ls\n" \
  400. "lrwxrwxrwx 1 root root 12 Apr 13 00:46 /bin/ls -> /BusyBox\n" \
  401. "# mount /dev/hdc1 /mnt -t minix\n" \
  402. "# chroot /mnt\n" \
  403. "# ls -l /bin/ls\n" \
  404. "-rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls*\n"
  405. #define chvt_trivial_usage \
  406. "N"
  407. #define chvt_full_usage "\n\n" \
  408. "Change the foreground virtual terminal to /dev/ttyN"
  409. #define cksum_trivial_usage \
  410. "FILES..."
  411. #define cksum_full_usage "\n\n" \
  412. "Calculate the CRC32 checksums of FILES"
  413. #define clear_trivial_usage \
  414. ""
  415. #define clear_full_usage "\n\n" \
  416. "Clear screen"
  417. #define cmp_trivial_usage \
  418. "[-l] [-s] FILE1 [FILE2" USE_DESKTOP(" [SKIP1 [SKIP2]") "]]"
  419. #define cmp_full_usage "\n\n" \
  420. "Compares FILE1 vs stdin if FILE2 is not specified\n" \
  421. "\nOptions:" \
  422. "\n -l Write the byte numbers (decimal) and values (octal)" \
  423. "\n for all differing bytes" \
  424. "\n -s Quiet" \
  425. #define comm_trivial_usage \
  426. "[-123] FILE1 FILE2"
  427. #define comm_full_usage "\n\n" \
  428. "Compare FILE1 to FILE2, or to stdin if - is specified\n" \
  429. "\nOptions:" \
  430. "\n -1 Suppress lines unique to FILE1" \
  431. "\n -2 Suppress lines unique to FILE2" \
  432. "\n -3 Suppress lines common to both files" \
  433. #define bbconfig_trivial_usage \
  434. ""
  435. #define bbconfig_full_usage "\n\n" \
  436. "Print the config file which built busybox"
  437. #define bbsh_trivial_usage \
  438. "[FILE]...\n" \
  439. "or: bbsh -c command [args]..."
  440. #define bbsh_full_usage "\n\n" \
  441. "The bbsh shell (command interpreter)"
  442. #define chrt_trivial_usage \
  443. "[OPTION]... [prio] [pid | command [arg]...]"
  444. #define chrt_full_usage "\n\n" \
  445. "Manipulate real-time attributes of a process\n" \
  446. "\nOptions:" \
  447. "\n -p Operate on pid" \
  448. "\n -r Set scheduling policy to SCHED_RR" \
  449. "\n -f Set scheduling policy to SCHED_FIFO" \
  450. "\n -o Set scheduling policy to SCHED_OTHER" \
  451. "\n -m Show min and max priorities" \
  452. #define chrt_example_usage \
  453. "$ chrt -r 4 sleep 900; x=$!\n" \
  454. "$ chrt -f -p 3 $x\n" \
  455. "You need CAP_SYS_NICE privileges to set scheduling attributes of a process"
  456. #define cp_trivial_usage \
  457. "[OPTION]... SOURCE DEST"
  458. #define cp_full_usage "\n\n" \
  459. "Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY\n" \
  460. "\nOptions:" \
  461. "\n -a Same as -dpR" \
  462. USE_SELINUX( \
  463. "\n -c Preserve security context" \
  464. ) \
  465. "\n -d,-P Preserve links" \
  466. "\n -H,-L Dereference all symlinks (default)" \
  467. "\n -p Preserve file attributes if possible" \
  468. "\n -f Force overwrite" \
  469. "\n -i Prompt before overwrite" \
  470. "\n -R,-r Recurse directories" \
  471. "\n -l,-s Create (sym)links" \
  472. #define cpio_trivial_usage \
  473. "-[dim" USE_FEATURE_CPIO_O("o") "tuv][F cpiofile]" \
  474. USE_FEATURE_CPIO_O( "[H newc]" )
  475. #define cpio_full_usage "\n\n" \
  476. "Extract or list files from a cpio archive" \
  477. USE_FEATURE_CPIO_O( ", or create a cpio archive" ) \
  478. "\n" \
  479. "Main operation mode:" \
  480. "\n d Make leading directories" \
  481. "\n i Extract" \
  482. "\n m Preserve mtime" \
  483. USE_FEATURE_CPIO_O( \
  484. "\n o Create" \
  485. "\n H newc Define format" \
  486. ) \
  487. "\n t List" \
  488. "\n v Verbose" \
  489. "\n u Unconditional overwrite" \
  490. "\n F Input from file" \
  491. #define crond_trivial_usage \
  492. "-fbS -l N " USE_FEATURE_CROND_D("-d N ") "-L LOGFILE -c DIR"
  493. #define crond_full_usage "\n\n" \
  494. " -f Foreground" \
  495. "\n -b Background (default)" \
  496. "\n -S Log to syslog (default)" \
  497. "\n -l Set log level. 0 is the most verbose, default 8" \
  498. USE_FEATURE_CROND_D( \
  499. "\n -d Set log level, log to stderr" \
  500. ) \
  501. "\n -L Log to file" \
  502. "\n -c Working dir" \
  503. #define crontab_trivial_usage \
  504. "[-c DIR] [-u USER] [-ler]|[FILE]"
  505. #define crontab_full_usage "\n\n" \
  506. " -c Crontab directory" \
  507. "\n -u User" \
  508. "\n -l List crontab" \
  509. "\n -e Edit crontab" \
  510. "\n -r Delete crontab" \
  511. "\n FILE Replace crontab by FILE ('-': stdin)" \
  512. #define cryptpw_trivial_usage \
  513. "[-a des|md5] [string]"
  514. #define cryptpw_full_usage "\n\n" \
  515. "Output crypted string.\n" \
  516. "If string isn't supplied on cmdline, read it from stdin.\n" \
  517. "\nOptions:" \
  518. "\n -a Algorithm to use (default: md5)" \
  519. #define cttyhack_trivial_usage NOUSAGE_STR
  520. #define cttyhack_full_usage ""
  521. #define cut_trivial_usage \
  522. "[OPTION]... [FILE]..."
  523. #define cut_full_usage "\n\n" \
  524. "Print selected fields from each input FILE to standard output\n" \
  525. "\nOptions:" \
  526. "\n -b LIST Output only bytes from LIST" \
  527. "\n -c LIST Output only characters from LIST" \
  528. "\n -d CHAR Use CHAR instead of tab as the field delimiter" \
  529. "\n -s Output only the lines containing delimiter" \
  530. "\n -f N Print only these fields" \
  531. "\n -n Ignored" \
  532. #define cut_example_usage \
  533. "$ echo \"Hello world\" | cut -f 1 -d ' '\n" \
  534. "Hello\n" \
  535. "$ echo \"Hello world\" | cut -f 2 -d ' '\n" \
  536. "world\n"
  537. #define date_trivial_usage \
  538. "[OPTION]... [+FMT] [TIME]"
  539. #define date_full_usage "\n\n" \
  540. "Display time (using +FMT), or set time\n" \
  541. "\nOptions:" \
  542. "\n -u Work in UTC (don't convert to local time)" \
  543. "\n -R Output RFC-822 compliant date string" \
  544. USE_FEATURE_DATE_ISOFMT( \
  545. "\n -I[SPEC] Output ISO-8601 compliant date string" \
  546. "\n SPEC='date' (default) for date only," \
  547. "\n 'hours', 'minutes', or 'seconds' for date and" \
  548. "\n time to the indicated precision" \
  549. ) \
  550. "\n -d TIME Display TIME, not 'now'" \
  551. "\n -r FILE Display last modification time of FILE" \
  552. "\n [-s] TIME Set time to TIME" \
  553. USE_FEATURE_DATE_ISOFMT( \
  554. "\n -D FMT Use FMT for str->date conversion" \
  555. ) \
  556. "\n" \
  557. "\nRecognized formats for TIME:" \
  558. "\n hh:mm[:ss]" \
  559. "\n [YYYY.]MM.DD-hh:mm[:ss]" \
  560. "\n YYYY-MM-DD hh:mm[:ss]" \
  561. "\n MMDDhhmm[[YY]YY][.ss]" \
  562. #define date_example_usage \
  563. "$ date\n" \
  564. "Wed Apr 12 18:52:41 MDT 2000\n"
  565. #define dc_trivial_usage \
  566. "expression..."
  567. #define dc_full_usage "\n\n" \
  568. "Tiny RPN calculator. Operations:\n" \
  569. "+, add, -, sub, *, mul, /, div, %, mod, **, exp, and, or, not, eor,\n" \
  570. "p - print top of the stack (without altering the stack),\n" \
  571. "f - print entire stack, o - pop the value and set output radix\n" \
  572. "(value must be 10 or 16).\n" \
  573. "Examples: 'dc 2 2 add' -> 4, 'dc 8 8 * 2 2 + /' -> 16.\n" \
  574. #define dc_example_usage \
  575. "$ dc 2 2 + p\n" \
  576. "4\n" \
  577. "$ dc 8 8 \\* 2 2 + / p\n" \
  578. "16\n" \
  579. "$ dc 0 1 and p\n" \
  580. "0\n" \
  581. "$ dc 0 1 or p\n" \
  582. "1\n" \
  583. "$ echo 72 9 div 8 mul p | dc\n" \
  584. "64\n"
  585. #define dd_trivial_usage \
  586. "[if=FILE] [of=FILE] " USE_FEATURE_DD_IBS_OBS("[ibs=N] [obs=N] ") "[bs=N] [count=N] [skip=N]\n" \
  587. " [seek=N]" USE_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync|fsync]")
  588. #define dd_full_usage "\n\n" \
  589. "Copy a file with converting and formatting\n" \
  590. "\nOptions:" \
  591. "\n if=FILE Read from FILE instead of stdin" \
  592. "\n of=FILE Write to FILE instead of stdout" \
  593. "\n bs=N Read and write N bytes at a time" \
  594. USE_FEATURE_DD_IBS_OBS( \
  595. "\n ibs=N Read N bytes at a time" \
  596. ) \
  597. USE_FEATURE_DD_IBS_OBS( \
  598. "\n obs=N Write N bytes at a time" \
  599. ) \
  600. "\n count=N Copy only N input blocks" \
  601. "\n skip=N Skip N input blocks" \
  602. "\n seek=N Skip N output blocks" \
  603. USE_FEATURE_DD_IBS_OBS( \
  604. "\n conv=notrunc Don't truncate output file" \
  605. "\n conv=noerror Continue after read errors" \
  606. "\n conv=sync Pad blocks with zeros" \
  607. "\n conv=fsync Physically write data out before finishing" \
  608. ) \
  609. "\n" \
  610. "\nNumbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024)," \
  611. "\nMD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)" \
  612. #define dd_example_usage \
  613. "$ dd if=/dev/zero of=/dev/ram1 bs=1M count=4\n" \
  614. "4+0 records in\n" \
  615. "4+0 records out\n"
  616. #define deallocvt_trivial_usage \
  617. "[N]"
  618. #define deallocvt_full_usage "\n\n" \
  619. "Deallocate unused virtual terminal /dev/ttyN"
  620. #define delgroup_trivial_usage \
  621. USE_FEATURE_DEL_USER_FROM_GROUP("[USER] ")"GROUP"
  622. #define delgroup_full_usage "\n\n" \
  623. "Delete group GROUP from the system" \
  624. USE_FEATURE_DEL_USER_FROM_GROUP(" or user USER from group GROUP")
  625. #define deluser_trivial_usage \
  626. "USER"
  627. #define deluser_full_usage "\n\n" \
  628. "Delete USER from the system"
  629. #define depmod_trivial_usage NOUSAGE_STR
  630. #define depmod_full_usage ""
  631. #define devmem_trivial_usage \
  632. "ADDRESS [WIDTH [VALUE]]"
  633. #define devmem_full_usage "\n\n" \
  634. "Read/write from physical address\n" \
  635. "\n ADDRESS Address to act upon" \
  636. "\n WIDTH Width (8/16/...)" \
  637. "\n VALUE Data to be written" \
  638. #define devfsd_trivial_usage \
  639. "mntpnt [-v]" USE_DEVFSD_FG_NP("[-fg][-np]")
  640. #define devfsd_full_usage "\n\n" \
  641. "Manage devfs permissions and old device name symlinks\n" \
  642. "\nOptions:" \
  643. "\n mntpnt The mount point where devfs is mounted" \
  644. "\n -v Print the protocol version numbers for devfsd" \
  645. "\n and the kernel-side protocol version and exit" \
  646. USE_DEVFSD_FG_NP( \
  647. "\n -fg Run in foreground" \
  648. "\n -np Exit after parsing the configuration file" \
  649. "\n and processing synthetic REGISTER events," \
  650. "\n do not poll for events" \
  651. )
  652. #define df_trivial_usage \
  653. "[-Pk" \
  654. USE_FEATURE_HUMAN_READABLE("mh") \
  655. USE_FEATURE_DF_FANCY("ai] [-B SIZE") \
  656. "] [FILESYSTEM...]"
  657. #define df_full_usage "\n\n" \
  658. "Print filesystem usage statistics\n" \
  659. "\nOptions:" \
  660. "\n -P POSIX output format" \
  661. "\n -k 1024-byte blocks (default)" \
  662. USE_FEATURE_HUMAN_READABLE( \
  663. "\n -m 1M-byte blocks" \
  664. "\n -h Human readable (e.g. 1K 243M 2G)" \
  665. ) \
  666. USE_FEATURE_DF_FANCY( \
  667. "\n -a Show all filesystems" \
  668. "\n -i Inodes" \
  669. "\n -B SIZE Blocksize" \
  670. ) \
  671. #define df_example_usage \
  672. "$ df\n" \
  673. "Filesystem 1K-blocks Used Available Use% Mounted on\n" \
  674. "/dev/sda3 8690864 8553540 137324 98% /\n" \
  675. "/dev/sda1 64216 36364 27852 57% /boot\n" \
  676. "$ df /dev/sda3\n" \
  677. "Filesystem 1K-blocks Used Available Use% Mounted on\n" \
  678. "/dev/sda3 8690864 8553540 137324 98% /\n" \
  679. "$ POSIXLY_CORRECT=sure df /dev/sda3\n" \
  680. "Filesystem 512B-blocks Used Available Use% Mounted on\n" \
  681. "/dev/sda3 17381728 17107080 274648 98% /\n" \
  682. "$ POSIXLY_CORRECT=yep df -P /dev/sda3\n" \
  683. "Filesystem 512-blocks Used Available Capacity Mounted on\n" \
  684. "/dev/sda3 17381728 17107080 274648 98% /\n"
  685. #define dhcprelay_trivial_usage \
  686. "[client1,client2,...] [server_device]"
  687. #define dhcprelay_full_usage "\n\n" \
  688. "Relay dhcp requests from client devices to server device.\n" \
  689. "Pass clients as CSV"
  690. #define diff_trivial_usage \
  691. "[-abdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2"
  692. #define diff_full_usage "\n\n" \
  693. "Compare files line by line and output the differences between them.\n" \
  694. "This implementation supports unified diffs only.\n" \
  695. "\nOptions:" \
  696. "\n -a Treat all files as text" \
  697. "\n -b Ignore changes in the amount of whitespace" \
  698. "\n -d Try hard to find a smaller set of changes" \
  699. "\n -i Ignore case differences" \
  700. "\n -L Use LABEL instead of the filename in the unified header" \
  701. "\n -N Treat absent files as empty" \
  702. "\n -q Output only whether files differ" \
  703. "\n -r Recursively compare subdirectories" \
  704. "\n -S Start with FILE when comparing directories" \
  705. "\n -T Make tabs line up by prefixing a tab when necessary" \
  706. "\n -s Report when two files are the same" \
  707. "\n -t Expand tabs to spaces in output" \
  708. "\n -U Output LINES lines of context" \
  709. "\n -w Ignore all whitespace" \
  710. #define dirname_trivial_usage \
  711. "FILENAME"
  712. #define dirname_full_usage "\n\n" \
  713. "Strip non-directory suffix from FILENAME"
  714. #define dirname_example_usage \
  715. "$ dirname /tmp/foo\n" \
  716. "/tmp\n" \
  717. "$ dirname /tmp/foo/\n" \
  718. "/tmp\n"
  719. #define dmesg_trivial_usage \
  720. "[-c] [-n LEVEL] [-s SIZE]"
  721. #define dmesg_full_usage "\n\n" \
  722. "Print or control the kernel ring buffer\n" \
  723. "\nOptions:" \
  724. "\n -c Clear ring buffer after printing" \
  725. "\n -n LEVEL Set console logging level" \
  726. "\n -s SIZE Buffer size" \
  727. #define dnsd_trivial_usage \
  728. "[-c config] [-t seconds] [-p port] [-i iface-ip] [-d]"
  729. #define dnsd_full_usage "\n\n" \
  730. "Small static DNS server daemon\n" \
  731. "\nOptions:" \
  732. "\n -c Config filename" \
  733. "\n -t TTL in seconds" \
  734. "\n -p Listening port" \
  735. "\n -i Listening ip (default all)" \
  736. "\n -d Daemonize" \
  737. #define dos2unix_trivial_usage \
  738. "[option] [FILE]"
  739. #define dos2unix_full_usage "\n\n" \
  740. "Convert FILE from dos to unix format.\n" \
  741. "When no file is given, use stdin/stdout.\n" \
  742. "\nOptions:" \
  743. "\n -u dos2unix" \
  744. "\n -d unix2dos" \
  745. #define dpkg_trivial_usage \
  746. "[-ilCPru] [-F option] package_name"
  747. #define dpkg_full_usage "\n\n" \
  748. "Install, remove and manage Debian packages\n" \
  749. "\nOptions:" \
  750. "\n -i Install the package" \
  751. "\n -l List of installed packages" \
  752. "\n -C Configure an unpackaged package" \
  753. "\n -F depends Ignore dependency problems" \
  754. "\n -P Purge all files of a package" \
  755. "\n -r Remove all but the configuration files for a package" \
  756. "\n -u Unpack a package, but don't configure it" \
  757. #define dpkg_deb_trivial_usage \
  758. "[-cefxX] FILE [argument]"
  759. #define dpkg_deb_full_usage "\n\n" \
  760. "Perform actions on Debian packages (.debs)\n" \
  761. "\nOptions:" \
  762. "\n -c List contents of filesystem tree" \
  763. "\n -e Extract control files to [argument] directory" \
  764. "\n -f Display control field name starting with [argument]" \
  765. "\n -x Extract packages filesystem tree to directory" \
  766. "\n -X Verbose extract" \
  767. #define dpkg_deb_example_usage \
  768. "$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp\n"
  769. #define du_trivial_usage \
  770. "[-aHLdclsx" USE_FEATURE_HUMAN_READABLE("hm") "k] [FILE]..."
  771. #define du_full_usage "\n\n" \
  772. "Summarize disk space used for each FILE and/or directory.\n" \
  773. "Disk space is printed in units of " \
  774. USE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("1024") \
  775. SKIP_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("512") \
  776. " bytes.\n" \
  777. "\nOptions:" \
  778. "\n -a Show file sizes too" \
  779. "\n -H Follow symlinks on command line" \
  780. "\n -L Follow all symlinks" \
  781. "\n -d N Limit output to directories (and files with -a) of depth < N" \
  782. "\n -c Show grand total" \
  783. "\n -l Count sizes many times if hard linked" \
  784. "\n -s Display only a total for each argument" \
  785. "\n -x Skip directories on different filesystems" \
  786. USE_FEATURE_HUMAN_READABLE( \
  787. "\n -h Sizes in human readable format (e.g., 1K 243M 2G )" \
  788. "\n -m Sizes in megabytes" \
  789. ) \
  790. "\n -k Sizes in kilobytes" \
  791. USE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K(" (default)") \
  792. #define du_example_usage \
  793. "$ du\n" \
  794. "16 ./CVS\n" \
  795. "12 ./kernel-patches/CVS\n" \
  796. "80 ./kernel-patches\n" \
  797. "12 ./tests/CVS\n" \
  798. "36 ./tests\n" \
  799. "12 ./scripts/CVS\n" \
  800. "16 ./scripts\n" \
  801. "12 ./docs/CVS\n" \
  802. "104 ./docs\n" \
  803. "2417 .\n"
  804. #define dumpkmap_trivial_usage \
  805. "> keymap"
  806. #define dumpkmap_full_usage "\n\n" \
  807. "Print a binary keyboard translation table to standard output"
  808. #define dumpkmap_example_usage \
  809. "$ dumpkmap > keymap\n"
  810. #define dumpleases_trivial_usage \
  811. "[-r|-a] [-f LEASEFILE]"
  812. #define dumpleases_full_usage "\n\n" \
  813. "Display DHCP leases granted by udhcpd\n" \
  814. "\nOptions:" \
  815. USE_GETOPT_LONG( \
  816. "\n -f,--file=FILE Leases file to load" \
  817. "\n -r,--remaining Interpret lease times as time remaining" \
  818. "\n -a,--absolute Interpret lease times as expire time" \
  819. ) \
  820. SKIP_GETOPT_LONG( \
  821. "\n -f FILE Leases file to load" \
  822. "\n -r Interpret lease times as time remaining" \
  823. "\n -a Interpret lease times as expire time" \
  824. )
  825. #define e2fsck_trivial_usage \
  826. "[-panyrcdfvstDFSV] [-b superblock] [-B blocksize] " \
  827. "[-I inode_buffer_blocks] [-P process_inode_size] " \
  828. "[-l|-L bad_blocks_file] [-C fd] [-j external_journal] " \
  829. "[-E extended-options] device"
  830. #define e2fsck_full_usage "\n\n" \
  831. "Check ext2/ext3 file system\n" \
  832. "\nOptions:" \
  833. "\n -p Automatic repair (no questions)" \
  834. "\n -n Make no changes to the filesystem" \
  835. "\n -y Assume 'yes' to all questions" \
  836. "\n -c Check for bad blocks and add them to the badblock list" \
  837. "\n -f Force checking even if filesystem is marked clean" \
  838. "\n -v Verbose" \
  839. "\n -b superblock Use alternative superblock" \
  840. "\n -B blocksize Force blocksize when looking for superblock" \
  841. "\n -j journal Set location of the external journal" \
  842. "\n -l file Add to badblocks list" \
  843. "\n -L file Set badblocks list" \
  844. #define echo_trivial_usage \
  845. USE_FEATURE_FANCY_ECHO("[-neE] ") "[ARG...]"
  846. #define echo_full_usage "\n\n" \
  847. "Print the specified ARGs to stdout" \
  848. USE_FEATURE_FANCY_ECHO( "\n" \
  849. "\nOptions:" \
  850. "\n -n Suppress trailing newline" \
  851. "\n -e Interpret backslash-escaped characters (i.e., \\t=tab)" \
  852. "\n -E Disable interpretation of backslash-escaped characters" \
  853. )
  854. #define echo_example_usage \
  855. "$ echo \"Erik is cool\"\n" \
  856. "Erik is cool\n" \
  857. USE_FEATURE_FANCY_ECHO("$ echo -e \"Erik\\nis\\ncool\"\n" \
  858. "Erik\n" \
  859. "is\n" \
  860. "cool\n" \
  861. "$ echo \"Erik\\nis\\ncool\"\n" \
  862. "Erik\\nis\\ncool\n")
  863. #define eject_trivial_usage \
  864. "[-t] [-T] [DEVICE]"
  865. #define eject_full_usage "\n\n" \
  866. "Eject specified DEVICE (or default /dev/cdrom)\n" \
  867. "\nOptions:" \
  868. USE_FEATURE_EJECT_SCSI( \
  869. "\n -s SCSI device" \
  870. ) \
  871. "\n -t Close tray" \
  872. "\n -T Open/close tray (toggle)" \
  873. #define ed_trivial_usage ""
  874. #define ed_full_usage ""
  875. #define env_trivial_usage \
  876. "[-iu] [-] [name=value]... [command]"
  877. #define env_full_usage "\n\n" \
  878. "Print the current environment or run a program after setting\n" \
  879. "up the specified environment\n" \
  880. "\nOptions:" \
  881. "\n -, -i Start with an empty environment" \
  882. "\n -u Remove variable from the environment" \
  883. #define ether_wake_trivial_usage \
  884. "[-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC"
  885. #define ether_wake_full_usage "\n\n" \
  886. "Send a magic packet to wake up sleeping machines.\n" \
  887. "MAC must be a station address (00:11:22:33:44:55) or\n" \
  888. "a hostname with a known 'ethers' entry.\n" \
  889. "\nOptions:" \
  890. "\n -b Send wake-up packet to the broadcast address" \
  891. "\n -i iface Interface to use (default eth0)" \
  892. "\n -p pass Append four or six byte password PW to the packet" \
  893. #define expand_trivial_usage \
  894. "[-i] [-t NUM] [FILE|-]"
  895. #define expand_full_usage "\n\n" \
  896. "Convert tabs to spaces, writing to standard output.\n" \
  897. "\nOptions:" \
  898. USE_FEATURE_EXPAND_LONG_OPTIONS( \
  899. "\n -i,--initial Do not convert tabs after non blanks" \
  900. "\n -t,--tabs=N Tabstops every N chars" \
  901. ) \
  902. SKIP_FEATURE_EXPAND_LONG_OPTIONS( \
  903. "\n -i Do not convert tabs after non blanks" \
  904. "\n -t Tabstops every N chars" \
  905. )
  906. #define expr_trivial_usage \
  907. "EXPRESSION"
  908. #define expr_full_usage "\n\n" \
  909. "Print the value of EXPRESSION to standard output.\n" \
  910. "\n" \
  911. "EXPRESSION may be:\n" \
  912. " ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" \
  913. " ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0\n" \
  914. " ARG1 < ARG2 1 if ARG1 is less than ARG2, else 0. Similarly:\n" \
  915. " ARG1 <= ARG2\n" \
  916. " ARG1 = ARG2\n" \
  917. " ARG1 != ARG2\n" \
  918. " ARG1 >= ARG2\n" \
  919. " ARG1 > ARG2\n" \
  920. " ARG1 + ARG2 Sum of ARG1 and ARG2. Similarly:\n" \
  921. " ARG1 - ARG2\n" \
  922. " ARG1 * ARG2\n" \
  923. " ARG1 / ARG2\n" \
  924. " ARG1 % ARG2\n" \
  925. " STRING : REGEXP Anchored pattern match of REGEXP in STRING\n" \
  926. " match STRING REGEXP Same as STRING : REGEXP\n" \
  927. " substr STRING POS LENGTH Substring of STRING, POS counted from 1\n" \
  928. " index STRING CHARS Index in STRING where any CHARS is found, or 0\n" \
  929. " length STRING Length of STRING\n" \
  930. " quote TOKEN Interpret TOKEN as a string, even if\n" \
  931. " it is a keyword like 'match' or an\n" \
  932. " operator like '/'\n" \
  933. " (EXPRESSION) Value of EXPRESSION\n" \
  934. "\n" \
  935. "Beware that many operators need to be escaped or quoted for shells.\n" \
  936. "Comparisons are arithmetic if both ARGs are numbers, else\n" \
  937. "lexicographical. Pattern matches return the string matched between\n" \
  938. "\\( and \\) or null; if \\( and \\) are not used, they return the number\n" \
  939. "of characters matched or 0."
  940. #define fakeidentd_trivial_usage \
  941. "[-fiw] [-b ADDR] [STRING]"
  942. #define fakeidentd_full_usage "\n\n" \
  943. "Provide fake ident (auth) service\n" \
  944. "\nOptions:" \
  945. "\n -f Run in foreground" \
  946. "\n -i Inetd mode" \
  947. "\n -w Inetd 'wait' mode" \
  948. "\n -b ADDR Bind to specified address" \
  949. "\n STRING Ident answer string (default is 'nobody')" \
  950. #define false_trivial_usage \
  951. ""
  952. #define false_full_usage "\n\n" \
  953. "Return an exit code of FALSE (1)"
  954. #define false_example_usage \
  955. "$ false\n" \
  956. "$ echo $?\n" \
  957. "1\n"
  958. #define fbset_trivial_usage \
  959. "[options] [mode]"
  960. #define fbset_full_usage "\n\n" \
  961. "Show and modify frame buffer settings"
  962. #define fbset_example_usage \
  963. "$ fbset\n" \
  964. "mode \"1024x768-76\"\n" \
  965. " # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz\n" \
  966. " geometry 1024 768 1024 768 16\n" \
  967. " timings 12714 128 32 16 4 128 4\n" \
  968. " accel false\n" \
  969. " rgba 5/11,6/5,5/0,0/0\n" \
  970. "endmode\n"
  971. #define fdflush_trivial_usage \
  972. "DEVICE"
  973. #define fdflush_full_usage "\n\n" \
  974. "Force floppy disk drive to detect disk change"
  975. #define fdformat_trivial_usage \
  976. "[-n] DEVICE"
  977. #define fdformat_full_usage "\n\n" \
  978. "Format floppy disk\n" \
  979. "\nOptions:" \
  980. "\n -n Don't verify after format" \
  981. /* Looks like someone forgot to add this to config system */
  982. #ifndef ENABLE_FEATURE_FDISK_BLKSIZE
  983. # define ENABLE_FEATURE_FDISK_BLKSIZE 0
  984. # define USE_FEATURE_FDISK_BLKSIZE(a)
  985. #endif
  986. #define fdisk_trivial_usage \
  987. "[-ul" USE_FEATURE_FDISK_BLKSIZE("s") "] " \
  988. "[-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK"
  989. #define fdisk_full_usage "\n\n" \
  990. "Change partition table\n" \
  991. "\nOptions:" \
  992. "\n -u Start and End are in sectors (instead of cylinders)" \
  993. "\n -l Show partition table for each DISK, then exit" \
  994. USE_FEATURE_FDISK_BLKSIZE( \
  995. "\n -s Show partition sizes in kb for each DISK, then exit" \
  996. ) \
  997. "\n -b 2048 (for certain MO disks) use 2048-byte sectors" \
  998. "\n -C CYLINDERS Set number of cylinders/heads/sectors" \
  999. "\n -H HEADS\n" \
  1000. "\n -S SECTORS" \
  1001. #define blkid_trivial_usage \
  1002. ""
  1003. #define blkid_full_usage "\n\n" \
  1004. "Print UUIDs of all filesystems."
  1005. #define findfs_trivial_usage \
  1006. "LABEL=label or UUID=uuid"
  1007. #define findfs_full_usage "\n\n" \
  1008. "Find a filesystem device based on a label or UUID."
  1009. #define findfs_example_usage \
  1010. "$ findfs LABEL=MyDevice"
  1011. #define find_trivial_usage \
  1012. "[PATH...] [EXPRESSION]"
  1013. #define find_full_usage "\n\n" \
  1014. "Search for files. The default PATH is the current directory,\n" \
  1015. "default EXPRESSION is '-print'\n" \
  1016. "\nEXPRESSION may consist of:" \
  1017. "\n -follow Dereference symlinks" \
  1018. USE_FEATURE_FIND_XDEV( \
  1019. "\n -xdev Don't descend directories on other filesystems") \
  1020. USE_FEATURE_FIND_MAXDEPTH( \
  1021. "\n -maxdepth N Descend at most N levels. -maxdepth 0 applies" \
  1022. "\n tests/actions to command line arguments only") \
  1023. "\n -name PATTERN File name (w/o directory name) matches PATTERN" \
  1024. "\n -iname PATTERN Case insensitive -name" \
  1025. USE_FEATURE_FIND_PATH( \
  1026. "\n -path PATTERN Path matches PATTERN") \
  1027. USE_FEATURE_FIND_REGEX( \
  1028. "\n -regex PATTERN Path matches regex PATTERN") \
  1029. USE_FEATURE_FIND_TYPE( \
  1030. "\n -type X File type is X (X is one of: f,d,l,b,c,...)") \
  1031. USE_FEATURE_FIND_PERM( \
  1032. "\n -perm NNN Permissions match any of (+NNN), all of (-NNN)," \
  1033. "\n or exactly (NNN)") \
  1034. USE_FEATURE_FIND_MTIME( \
  1035. "\n -mtime DAYS Modified time is greater than (+N), less than (-N)," \
  1036. "\n or exactly (N) days") \
  1037. USE_FEATURE_FIND_MMIN( \
  1038. "\n -mmin MINS Modified time is greater than (+N), less than (-N)," \
  1039. "\n or exactly (N) minutes") \
  1040. USE_FEATURE_FIND_NEWER( \
  1041. "\n -newer FILE Modified time is more recent than FILE's") \
  1042. USE_FEATURE_FIND_INUM( \
  1043. "\n -inum N File has inode number N") \
  1044. USE_FEATURE_FIND_USER( \
  1045. "\n -user NAME File is owned by user NAME (numeric user ID allowed)") \
  1046. USE_FEATURE_FIND_GROUP( \
  1047. "\n -group NAME File belongs to group NAME (numeric group ID allowed)") \
  1048. USE_FEATURE_FIND_DEPTH( \
  1049. "\n -depth Process directory name after traversing it") \
  1050. USE_FEATURE_FIND_SIZE( \
  1051. "\n -size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.))." \
  1052. "\n +/-N: file size is bigger/smaller than N") \
  1053. "\n -print Print (default and assumed)" \
  1054. USE_FEATURE_FIND_PRINT0( \
  1055. "\n -print0 Delimit output with null characters rather than" \
  1056. "\n newlines") \
  1057. USE_FEATURE_FIND_CONTEXT ( \
  1058. "\n -context File has specified security context") \
  1059. USE_FEATURE_FIND_EXEC( \
  1060. "\n -exec CMD ARG ; Execute CMD with all instances of {} replaced by the" \
  1061. "\n matching files") \
  1062. USE_FEATURE_FIND_PRUNE( \
  1063. "\n -prune Stop traversing current subtree") \
  1064. USE_FEATURE_FIND_DELETE( \
  1065. "\n -delete Delete files, turns on -depth option") \
  1066. USE_FEATURE_FIND_PAREN( \
  1067. "\n (EXPR) Group an expression") \
  1068. #define find_example_usage \
  1069. "$ find / -name passwd\n" \
  1070. "/etc/passwd\n"
  1071. #define fold_trivial_usage \
  1072. "[-bs] [-w WIDTH] [FILE]"
  1073. #define fold_full_usage "\n\n" \
  1074. "Wrap input lines in each FILE (standard input by default), writing to\n" \
  1075. "standard output\n" \
  1076. "\nOptions:" \
  1077. "\n -b Count bytes rather than columns" \
  1078. "\n -s Break at spaces" \
  1079. "\n -w Use WIDTH columns instead of 80" \
  1080. #define free_trivial_usage \
  1081. ""
  1082. #define free_full_usage "\n\n" \
  1083. "Display the amount of free and used system memory"
  1084. #define free_example_usage \
  1085. "$ free\n" \
  1086. " total used free shared buffers\n" \
  1087. " Mem: 257628 248724 8904 59644 93124\n" \
  1088. " Swap: 128516 8404 120112\n" \
  1089. "Total: 386144 257128 129016\n" \
  1090. #define freeramdisk_trivial_usage \
  1091. "DEVICE"
  1092. #define freeramdisk_full_usage "\n\n" \
  1093. "Free all memory used by the specified ramdisk"
  1094. #define freeramdisk_example_usage \
  1095. "$ freeramdisk /dev/ram2\n"
  1096. #define fsck_trivial_usage \
  1097. "[-ANPRTV] [-C fd] [-t fstype] [fs-options] [filesys...]"
  1098. #define fsck_full_usage "\n\n" \
  1099. "Check and repair filesystems\n" \
  1100. "\nOptions:" \
  1101. "\n -A Walk /etc/fstab and check all filesystems" \
  1102. "\n -N Don't execute, just show what would be done" \
  1103. "\n -P With -A, check filesystems in parallel" \
  1104. "\n -R With -A, skip the root filesystem" \
  1105. "\n -T Don't show title on startup" \
  1106. "\n -V Verbose" \
  1107. "\n -C n Write status information to specified filedescriptor" \
  1108. "\n -t type List of filesystem types to check" \
  1109. #define fsck_minix_trivial_usage \
  1110. "[-larvsmf] /dev/name"
  1111. #define fsck_minix_full_usage "\n\n" \
  1112. "Check MINIX filesystem\n" \
  1113. "\nOptions:" \
  1114. "\n -l List all filenames" \
  1115. "\n -r Perform interactive repairs" \
  1116. "\n -a Perform automatic repairs" \
  1117. "\n -v Verbose" \
  1118. "\n -s Output superblock information" \
  1119. "\n -m Show \"mode not cleared\" warnings" \
  1120. "\n -f Force file system check" \
  1121. #define ftpget_trivial_usage \
  1122. "[options] remote-host local-file remote-file"
  1123. #define ftpget_full_usage "\n\n" \
  1124. "Retrieve a remote file via FTP\n" \
  1125. "\nOptions:" \
  1126. USE_FEATURE_FTPGETPUT_LONG_OPTIONS( \
  1127. "\n -c,--continue Continue previous transfer" \
  1128. "\n -v,--verbose Verbose" \
  1129. "\n -u,--username Username" \
  1130. "\n -p,--password Password" \
  1131. "\n -P,--port Port number" \
  1132. ) \
  1133. SKIP_FEATURE_FTPGETPUT_LONG_OPTIONS( \
  1134. "\n -c Continue previous transfer" \
  1135. "\n -v Verbose" \
  1136. "\n -u Username" \
  1137. "\n -p Password" \
  1138. "\n -P Port number" \
  1139. )
  1140. #define ftpput_trivial_usage \
  1141. "[options] remote-host remote-file local-file"
  1142. #define ftpput_full_usage "\n\n" \
  1143. "Store a local file on a remote machine via FTP\n" \
  1144. "\nOptions:" \
  1145. USE_FEATURE_FTPGETPUT_LONG_OPTIONS( \
  1146. "\n -v,--verbose Verbose" \
  1147. "\n -u,--username Username" \
  1148. "\n -p,--password Password" \
  1149. "\n -P,--port Port number" \
  1150. ) \
  1151. SKIP_FEATURE_FTPGETPUT_LONG_OPTIONS( \
  1152. "\n -v Verbose" \
  1153. "\n -u Username" \
  1154. "\n -p Password" \
  1155. "\n -P Port number" \
  1156. )
  1157. #define fuser_trivial_usage \
  1158. "[options] FILE or PORT/PROTO"
  1159. #define fuser_full_usage "\n\n" \
  1160. "Find processes which use FILEs or PORTs\n" \
  1161. "\nOptions:" \
  1162. "\n -m Find processes which use same fs as FILEs" \
  1163. "\n -4 Search only IPv4 space" \
  1164. "\n -6 Search only IPv6 space" \
  1165. "\n -s Silent: just exit with 0 if any processes are found" \
  1166. "\n -k Kill found processes (otherwise display PIDs)" \
  1167. "\n -SIGNAL Signal to send (default: TERM)" \
  1168. #define getenforce_trivial_usage NOUSAGE_STR
  1169. #define getenforce_full_usage ""
  1170. #define getopt_trivial_usage \
  1171. "[OPTIONS]..."
  1172. #define getopt_full_usage "\n\n" \
  1173. "Parse command options\n" \
  1174. USE_GETOPT_LONG( \
  1175. "\n -a,--alternative Allow long options starting with single -" \
  1176. "\n -l,--longoptions=longopts Long options to be recognized" \
  1177. "\n -n,--name=progname The name under which errors are reported" \
  1178. "\n -o,--options=optstring Short options to be recognized" \
  1179. "\n -q,--quiet Disable error reporting by getopt(3)" \
  1180. "\n -Q,--quiet-output No normal output" \
  1181. "\n -s,--shell=shell Set shell quoting conventions" \
  1182. "\n -T,--test Test for getopt(1) version" \
  1183. "\n -u,--unquoted Don't quote the output" \
  1184. ) \
  1185. SKIP_GETOPT_LONG( \
  1186. "\n -a Allow long options starting with single -" \
  1187. "\n -l longopts Long options to be recognized" \
  1188. "\n -n progname The name under which errors are reported" \
  1189. "\n -o optstring Short options to be recognized" \
  1190. "\n -q Disable error reporting by getopt(3)" \
  1191. "\n -Q No normal output" \
  1192. "\n -s shell Set shell quoting conventions" \
  1193. "\n -T Test for getopt(1) version" \
  1194. "\n -u Don't quote the output" \
  1195. )
  1196. #define getopt_example_usage \
  1197. "$ cat getopt.test\n" \
  1198. "#!/bin/sh\n" \
  1199. "GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \\\n" \
  1200. " -n 'example.busybox' -- \"$@\"`\n" \
  1201. "if [ $? != 0 ]; then exit 1; fi\n" \
  1202. "eval set -- \"$GETOPT\"\n" \
  1203. "while true; do\n" \
  1204. " case $1 in\n" \
  1205. " -a|--a-long) echo \"Option a\"; shift;;\n" \
  1206. " -b|--b-long) echo \"Option b, argument '$2'\"; shift 2;;\n" \
  1207. " -c|--c-long)\n" \
  1208. " case \"$2\" in\n" \
  1209. " \"\") echo \"Option c, no argument\"; shift 2;;\n" \
  1210. " *) echo \"Option c, argument '$2'\"; shift 2;;\n" \
  1211. " esac;;\n" \
  1212. " --) shift; break;;\n" \
  1213. " *) echo \"Internal error!\"; exit 1;;\n" \
  1214. " esac\n" \
  1215. "done\n"
  1216. #define getsebool_trivial_usage \
  1217. "-a or getsebool boolean..."
  1218. #define getsebool_full_usage "\n\n" \
  1219. " -a Show all SELinux booleans"
  1220. #define getty_trivial_usage \
  1221. "[OPTIONS] BAUD_RATE TTY [TERMTYPE]"
  1222. #define getty_full_usage "\n\n" \
  1223. "Open a tty, prompt for a login name, then invoke /bin/login\n" \
  1224. "\nOptions:" \
  1225. "\n -h Enable hardware (RTS/CTS) flow control" \
  1226. "\n -i Do not display /etc/issue before running login" \
  1227. "\n -L Local line, do not do carrier detect" \
  1228. "\n -m Get baud rate from modem's CONNECT status message" \
  1229. "\n -w Wait for a CR or LF before sending /etc/issue" \
  1230. "\n -n Do not prompt the user for a login name" \
  1231. "\n -f issue_file Display issue_file instead of /etc/issue" \
  1232. "\n -l login_app Invoke login_app instead of /bin/login" \
  1233. "\n -t timeout Terminate after timeout if no username is read" \
  1234. "\n -I initstring Init string to send before anything else" \
  1235. "\n -H login_host Log login_host into the utmp file as the hostname" \
  1236. #define grep_trivial_usage \
  1237. "[-HhrilLnqvso" \
  1238. USE_DESKTOP("w") \
  1239. "eF" \
  1240. USE_FEATURE_GREP_EGREP_ALIAS("E") \
  1241. USE_FEATURE_GREP_CONTEXT("ABC") \
  1242. "] PATTERN [FILEs...]"
  1243. #define grep_full_usage "\n\n" \
  1244. "Search for PATTERN in each FILE or standard input\n" \
  1245. "\nOptions:" \
  1246. "\n -H Prefix output lines with filename where match was found" \
  1247. "\n -h Suppress the prefixing filename on output" \
  1248. "\n -r Recurse subdirectories" \
  1249. "\n -i Ignore case distinctions" \
  1250. "\n -l List names of files that match" \
  1251. "\n -L List names of files that do not match" \
  1252. "\n -n Print line number with output lines" \
  1253. "\n -q Quiet. Return 0 if PATTERN is found, 1 otherwise" \
  1254. "\n -v Select non-matching lines" \
  1255. "\n -s Suppress file open/read error messages" \
  1256. "\n -c Only print count of matching lines" \
  1257. "\n -o Show only the part of a line that matches PATTERN" \
  1258. "\n -m MAX Match up to MAX times per file" \
  1259. USE_DESKTOP( \
  1260. "\n -w Match whole words only") \
  1261. "\n -F PATTERN is a set of newline-separated strings" \
  1262. USE_FEATURE_GREP_EGREP_ALIAS( \
  1263. "\n -E PATTERN is an extended regular expression") \
  1264. "\n -e PTRN Pattern to match" \
  1265. "\n -f FILE Read pattern from file" \
  1266. USE_FEATURE_GREP_CONTEXT( \
  1267. "\n -A Print NUM lines of trailing context" \
  1268. "\n -B Print NUM lines of leading context" \
  1269. "\n -C Print NUM lines of output context") \
  1270. #define grep_example_usage \
  1271. "$ grep root /etc/passwd\n" \
  1272. "root:x:0:0:root:/root:/bin/bash\n" \
  1273. "$ grep ^[rR]oo. /etc/passwd\n" \
  1274. "root:x:0:0:root:/root:/bin/bash\n"
  1275. #define egrep_trivial_usage NOUSAGE_STR
  1276. #define egrep_full_usage ""
  1277. #define fgrep_trivial_usage NOUSAGE_STR
  1278. #define fgrep_full_usage ""
  1279. #define gunzip_trivial_usage \
  1280. "[OPTION]... [FILE]..."
  1281. #define gunzip_full_usage "\n\n" \
  1282. "Uncompress FILEs (or standard input)\n" \
  1283. "\nOptions:" \
  1284. "\n -c Write to standard output" \
  1285. "\n -f Force" \
  1286. "\n -t Test file integrity" \
  1287. #define gunzip_example_usage \
  1288. "$ ls -la /tmp/BusyBox*\n" \
  1289. "-rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n" \
  1290. "$ gunzip /tmp/BusyBox-0.43.tar.gz\n" \
  1291. "$ ls -la /tmp/BusyBox*\n" \
  1292. "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n"
  1293. #define gzip_trivial_usage \
  1294. "[OPTION]... [FILE]..."
  1295. #define gzip_full_usage "\n\n" \
  1296. "Compress FILEs (or standard input)\n" \
  1297. "\nOptions:" \
  1298. "\n -c Write to standard output" \
  1299. "\n -d Decompress" \
  1300. "\n -f Force" \
  1301. #define gzip_example_usage \
  1302. "$ ls -la /tmp/busybox*\n" \
  1303. "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox.tar\n" \
  1304. "$ gzip /tmp/busybox.tar\n" \
  1305. "$ ls -la /tmp/busybox*\n" \
  1306. "-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"
  1307. #define halt_trivial_usage \
  1308. "[-d delay] [-n] [-f]" USE_FEATURE_WTMP(" [-w]")
  1309. #define halt_full_usage "\n\n" \
  1310. "Halt the system\n" \
  1311. "\nOptions:" \
  1312. "\n -d Delay interval for halting" \
  1313. "\n -n No call to sync()" \
  1314. "\n -f Force halt (don't go through init)" \
  1315. USE_FEATURE_WTMP( \
  1316. "\n -w Only write a wtmp record" \
  1317. )
  1318. #define hdparm_trivial_usage \
  1319. "[options] [device] .."
  1320. #define hdparm_full_usage "\n\n" \
  1321. "Options:" \
  1322. "\n -a Get/set fs readahead" \
  1323. "\n -A Set drive read-lookahead flag (0/1)" \
  1324. "\n -b Get/set bus state (0 == off, 1 == on, 2 == tristate)" \
  1325. "\n -B Set Advanced Power Management setting (1-255)" \
  1326. "\n -c Get/set IDE 32-bit IO setting" \
  1327. "\n -C Check IDE power mode status" \
  1328. USE_FEATURE_HDPARM_HDIO_GETSET_DMA( \
  1329. "\n -d Get/set using_dma flag") \
  1330. "\n -D Enable/disable drive defect-mgmt" \
  1331. "\n -f Flush buffer cache for device on exit" \
  1332. "\n -g Display drive geometry" \
  1333. "\n -h Display terse usage information" \
  1334. USE_FEATURE_HDPARM_GET_IDENTITY( \
  1335. "\n -i Display drive identification") \
  1336. USE_FEATURE_HDPARM_GET_IDENTITY( \
  1337. "\n -I Detailed/current information directly from drive") \
  1338. "\n -k Get/set keep_settings_over_reset flag (0/1)" \
  1339. "\n -K Set drive keep_features_over_reset flag (0/1)" \
  1340. "\n -L Set drive doorlock (0/1) (removable harddisks only)" \
  1341. "\n -m Get/set multiple sector count" \
  1342. "\n -n Get/set ignore-write-errors flag (0/1)" \
  1343. "\n -p Set PIO mode on IDE interface chipset (0,1,2,3,4,...)" \
  1344. "\n -P Set drive prefetch count" \
  1345. /* "\n -q Change next setting quietly" - not supported ib bbox */ \
  1346. "\n -Q Get/set DMA tagged-queuing depth (if supported)" \
  1347. "\n -r Get/set readonly flag (DANGEROUS to set)" \
  1348. USE_FEATURE_HDPARM_HDIO_SCAN_HWIF( \
  1349. "\n -R Register an IDE interface (DANGEROUS)") \
  1350. "\n -S Set standby (spindown) timeout" \
  1351. "\n -t Perform device read timings" \
  1352. "\n -T Perform cache read timings" \
  1353. "\n -u Get/set unmaskirq flag (0/1)" \
  1354. USE_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF( \
  1355. "\n -U Un-register an IDE interface (DANGEROUS)") \
  1356. "\n -v Defaults; same as -mcudkrag for IDE drives" \
  1357. "\n -V Display program version and exit immediately" \
  1358. USE_FEATURE_HDPARM_HDIO_DRIVE_RESET( \
  1359. "\n -w Perform device reset (DANGEROUS)") \
  1360. "\n -W Set drive write-caching flag (0/1) (DANGEROUS)" \
  1361. USE_FEATURE_HDPARM_HDIO_TRISTATE_HWIF( \
  1362. "\n -x Tristate device for hotswap (0/1) (DANGEROUS)") \
  1363. "\n -X Set IDE xfer mode (DANGEROUS)" \
  1364. "\n -y Put IDE drive in standby mode" \
  1365. "\n -Y Put IDE drive to sleep" \
  1366. "\n -Z Disable Seagate auto-powersaving mode" \
  1367. "\n -z Re-read partition table" \
  1368. #define head_trivial_usage \
  1369. "[OPTION]... [FILE]..."
  1370. #define head_full_usage "\n\n" \
  1371. "Print first 10 lines of each FILE to standard output.\n" \
  1372. "With more than one FILE, precede each with a header giving the\n" \
  1373. "file name. With no FILE, or when FILE is -, read standard input.\n" \
  1374. "\nOptions:" \
  1375. "\n -n NUM Print first NUM lines instead of first 10" \
  1376. USE_FEATURE_FANCY_HEAD( \
  1377. "\n -c NUM Output the first NUM bytes" \
  1378. "\n -q Never output headers giving file names" \
  1379. "\n -v Always output headers giving file names") \
  1380. #define head_example_usage \
  1381. "$ head -n 2 /etc/passwd\n" \
  1382. "root:x:0:0:root:/root:/bin/bash\n" \
  1383. "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n"
  1384. #define hexdump_trivial_usage \
  1385. "[-bcCdefnosvx" USE_FEATURE_HEXDUMP_REVERSE("R") "] FILE..."
  1386. #define hexdump_full_usage "\n\n" \
  1387. "Display file(s) or standard input in a user specified format\n" \
  1388. "\nOptions:" \
  1389. "\n -b One-byte octal display" \
  1390. "\n -c One-byte character display" \
  1391. "\n -C Canonical hex+ASCII, 16 bytes per line" \
  1392. "\n -d Two-byte decimal display" \
  1393. "\n -e FORMAT STRING" \
  1394. "\n -f FORMAT FILE" \
  1395. "\n -n LENGTH Interpret only LENGTH bytes of input" \
  1396. "\n -o Two-byte octal display" \
  1397. "\n -s OFFSET Skip OFFSET bytes" \
  1398. "\n -v Display all input data" \
  1399. "\n -x Two-byte hexadecimal display" \
  1400. USE_FEATURE_HEXDUMP_REVERSE( \
  1401. "\n -R Reverse of 'hexdump -Cv'") \
  1402. #define hd_trivial_usage \
  1403. "FILE..."
  1404. #define hd_full_usage "\n\n" \
  1405. "hd is an alias for hexdump -C"
  1406. #define hostid_trivial_usage \
  1407. ""
  1408. #define hostid_full_usage "\n\n" \
  1409. "Print out a unique 32-bit identifier for the machine"
  1410. #define hostname_trivial_usage \
  1411. "[OPTION] [hostname | -F FILE]"
  1412. #define hostname_full_usage "\n\n" \
  1413. "Get or set hostname or DNS domain name\n" \
  1414. "\nOptions:" \
  1415. "\n -s Short" \
  1416. "\n -i Addresses for the hostname" \
  1417. "\n -d DNS domain name" \
  1418. "\n -f Fully qualified domain name" \
  1419. "\n -F FILE Use the contents of FILE to specify the hostname" \
  1420. #define hostname_example_usage \
  1421. "$ hostname\n" \
  1422. "sage\n"
  1423. #define httpd_trivial_usage \
  1424. "[-c conffile]" \
  1425. " [-p [ip:]port]" \
  1426. " [-i] [-f] [-v[v]]" \
  1427. USE_FEATURE_HTTPD_SETUID(" [-u user[:grp]]") \
  1428. USE_FEATURE_HTTPD_BASIC_AUTH(" [-r realm]") \
  1429. USE_FEATURE_HTTPD_AUTH_MD5(" [-m pass]") \
  1430. " [-h home]" \
  1431. " [-d/-e string]"
  1432. #define httpd_full_usage "\n\n" \
  1433. "Listen for incoming HTTP requests\n" \
  1434. "\nOptions:" \
  1435. "\n -c FILE Configuration file (default httpd.conf)" \
  1436. "\n -p [IP:]PORT Bind to ip:port (default *:80)" \
  1437. "\n -i Inetd mode" \
  1438. "\n -f Do not daemonize" \
  1439. "\n -v[v] Verbose" \
  1440. USE_FEATURE_HTTPD_SETUID( \
  1441. "\n -u USER[:GRP] Set uid/gid after binding to port") \
  1442. USE_FEATURE_HTTPD_BASIC_AUTH( \
  1443. "\n -r REALM Authentication Realm for Basic Authentication") \
  1444. USE_FEATURE_HTTPD_AUTH_MD5( \
  1445. "\n -m PASS Crypt PASS with md5 algorithm") \
  1446. "\n -h HOME Home directory (default .)" \
  1447. "\n -e STRING HTML encode STRING" \
  1448. "\n -d STRING URL decode STRING" \
  1449. #define hwclock_trivial_usage \
  1450. USE_FEATURE_HWCLOCK_LONG_OPTIONS( \
  1451. "[-r|--show] [-s|--hctosys] [-w|--systohc]" \
  1452. " [-l|--localtime] [-u|--utc]" \
  1453. " [-f FILE]" \
  1454. ) \
  1455. SKIP_FEATURE_HWCLOCK_LONG_OPTIONS( \
  1456. "[-r] [-s] [-w] [-l] [-u] [-f FILE]" \
  1457. )
  1458. #define hwclock_full_usage "\n\n" \
  1459. "Query and set hardware clock (RTC)\n" \
  1460. "\nOptions:" \
  1461. "\n -r Show hardware clock time" \
  1462. "\n -s Set system time from hardware clock" \
  1463. "\n -w Set hardware clock to system time" \
  1464. "\n -u Hardware clock is in UTC" \
  1465. "\n -l Hardware clock is in local time" \
  1466. "\n -f FILE Use specified device (e.g. /dev/rtc2)" \
  1467. #define id_trivial_usage \
  1468. "[OPTIONS]... [USER]"
  1469. #define id_full_usage "\n\n" \
  1470. "Print information about USER or the current user\n" \
  1471. "\nOptions:" \
  1472. USE_SELINUX( \
  1473. "\n -Z Print the security context" \
  1474. ) \
  1475. "\n -u Print user ID" \
  1476. "\n -g Print group ID" \
  1477. "\n -G Print supplementary group IDs" \
  1478. "\n -n Print name instead of a number" \
  1479. "\n -r Print real user ID instead of effective ID" \
  1480. #define id_example_usage \
  1481. "$ id\n" \
  1482. "uid=1000(andersen) gid=1000(andersen)\n"
  1483. #define ifconfig_trivial_usage \
  1484. USE_FEATURE_IFCONFIG_STATUS("[-a]") " interface [address]"
  1485. #define ifconfig_full_usage "\n\n" \
  1486. "Configure a network interface\n" \
  1487. "\nOptions:" \
  1488. "\n" \
  1489. USE_FEATURE_IPV6( \
  1490. " [add ADDRESS[/PREFIXLEN]]\n") \
  1491. USE_FEATURE_IPV6( \
  1492. " [del ADDRESS[/PREFIXLEN]]\n") \
  1493. " [[-]broadcast [ADDRESS]] [[-]pointopoint [ADDRESS]]\n" \
  1494. " [netmask ADDRESS] [dstaddr ADDRESS]\n" \
  1495. USE_FEATURE_IFCONFIG_SLIP( \
  1496. " [outfill NN] [keepalive NN]\n") \
  1497. " " USE_FEATURE_IFCONFIG_HW("[hw ether" USE_FEATURE_HWIB("|infiniband")" ADDRESS] ") "[metric NN] [mtu NN]\n" \
  1498. " [[-]trailers] [[-]arp] [[-]allmulti]\n" \
  1499. " [multicast] [[-]promisc] [txqueuelen NN] [[-]dynamic]\n" \
  1500. USE_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ( \
  1501. " [mem_start NN] [io_addr NN] [irq NN]\n") \
  1502. " [up|down] ..."
  1503. #define ifenslave_trivial_usage \
  1504. "[-cdf] master-iface <slave-iface...>"
  1505. #define ifenslave_full_usage "\n\n" \
  1506. "Configure network interfaces for parallel routing\n" \
  1507. "\nOptions:" \
  1508. "\n -c, --change-active Change active slave" \
  1509. "\n -d, --detach Remove slave interface from bonding device" \
  1510. "\n -f, --force Force, even if interface is not Ethernet" \
  1511. /* "\n -r, --receive-slave Create a receive-only slave" */
  1512. #define ifenslave_example_usage \
  1513. "To create a bond device, simply follow these three steps :\n" \
  1514. "- ensure that the required drivers are properly loaded :\n" \
  1515. " # modprobe bonding ; modprobe <3c59x|eepro100|pcnet32|tulip|...>\n" \
  1516. "- assign an IP address to the bond device :\n" \
  1517. " # ifconfig bond0 <addr> netmask <mask> broadcast <bcast>\n" \
  1518. "- attach all the interfaces you need to the bond device :\n" \
  1519. " # ifenslave bond0 eth0 eth1 eth2\n" \
  1520. " If bond0 didn't have a MAC address, it will take eth0's. Then, all\n" \
  1521. " interfaces attached AFTER this assignment will get the same MAC addr.\n\n" \
  1522. " To detach a dead interface without setting the bond device down :\n" \
  1523. " # ifenslave -d bond0 eth1\n\n" \
  1524. " To set the bond device down and automatically release all the slaves :\n" \
  1525. " # ifconfig bond0 down\n\n" \
  1526. " To change active slave :\n" \
  1527. " # ifenslave -c bond0 eth0\n" \
  1528. #define ifup_trivial_usage \
  1529. "[-ain"USE_FEATURE_IFUPDOWN_MAPPING("m")"vf] ifaces..."
  1530. #define ifup_full_usage "\n\n" \
  1531. "Options:" \
  1532. "\n -a De/configure all interfaces automatically" \
  1533. "\n -i FILE Use FILE for interface definitions" \
  1534. "\n -n Print out what would happen, but don't do it" \
  1535. USE_FEATURE_IFUPDOWN_MAPPING( \
  1536. "\n (note: doesn't disable mappings)" \
  1537. "\n -m Don't run any mappings" \
  1538. ) \
  1539. "\n -v Print out what would happen before doing it" \
  1540. "\n -f Force de/configuration" \
  1541. #define ifdown_trivial_usage \
  1542. "[-ain"USE_FEATURE_IFUPDOWN_MAPPING("m")"vf] ifaces..."
  1543. #define ifdown_full_usage "\n\n" \
  1544. "Options:" \
  1545. "\n -a De/configure all interfaces automatically" \
  1546. "\n -i FILE Use FILE for interface definitions" \
  1547. "\n -n Print out what would happen, but don't do it" \
  1548. USE_FEATURE_IFUPDOWN_MAPPING( \
  1549. "\n (note: doesn't disable mappings)" \
  1550. "\n -m Don't run any mappings" \
  1551. ) \
  1552. "\n -v Print out what would happen before doing it" \
  1553. "\n -f Force de/configuration" \
  1554. #define inetd_trivial_usage \
  1555. "[-fe] [-q N] [-R N] [CONFFILE]"
  1556. #define inetd_full_usage "\n\n" \
  1557. "Listen for network connections and launch programs\n" \
  1558. "\nOptions:" \
  1559. "\n -f Run in foreground" \
  1560. "\n -e Log to stderr" \
  1561. "\n -q N Socket listen queue (default: 128)" \
  1562. "\n -R N Pause services after N connects/min" \
  1563. "\n (default: 0 - disabled)" \
  1564. #define init_trivial_usage \
  1565. ""
  1566. #define init_full_usage "\n\n" \
  1567. "Init is the parent of all processes"
  1568. #define init_notes_usage \
  1569. "This version of init is designed to be run only by the kernel.\n" \
  1570. "\n" \
  1571. "BusyBox init doesn't support multiple runlevels. The runlevels field of\n" \
  1572. "the /etc/inittab file is completely ignored by BusyBox init. If you want\n" \
  1573. "runlevels, use sysvinit.\n" \
  1574. "\n" \
  1575. "BusyBox init works just fine without an inittab. If no inittab is found,\n" \
  1576. "it has the following default behavior:\n" \
  1577. "\n" \
  1578. " ::sysinit:/etc/init.d/rcS\n" \
  1579. " ::askfirst:/bin/sh\n" \
  1580. " ::ctrlaltdel:/sbin/reboot\n" \
  1581. " ::shutdown:/sbin/swapoff -a\n" \
  1582. " ::shutdown:/bin/umount -a -r\n" \
  1583. " ::restart:/sbin/init\n" \
  1584. "\n" \
  1585. "if it detects that /dev/console is _not_ a serial console, it will also run:\n" \
  1586. "\n" \
  1587. " tty2::askfirst:/bin/sh\n" \
  1588. " tty3::askfirst:/bin/sh\n" \
  1589. " tty4::askfirst:/bin/sh\n" \
  1590. "\n" \
  1591. "If you choose to use an /etc/inittab file, the inittab entry format is as follows:\n" \
  1592. "\n" \
  1593. " <id>:<runlevels>:<action>:<process>\n" \
  1594. "\n" \
  1595. " <id>:\n" \
  1596. "\n" \
  1597. " WARNING: This field has a non-traditional meaning for BusyBox init!\n" \
  1598. " The id field is used by BusyBox init to specify the controlling tty for\n" \
  1599. " the specified process to run on. The contents of this field are\n" \
  1600. " appended to \"/dev/\" and used as-is. There is no need for this field to\n" \
  1601. " be unique, although if it isn't you may have strange results. If this\n" \
  1602. " field is left blank, the controlling tty is set to the console. Also\n" \
  1603. " note that if BusyBox detects that a serial console is in use, then only\n" \
  1604. " entries whose controlling tty is either the serial console or /dev/null\n" \
  1605. " will be run. BusyBox init does nothing with utmp. We don't need no\n" \
  1606. " stinkin' utmp.\n" \
  1607. "\n" \
  1608. " <runlevels>:\n" \
  1609. "\n" \
  1610. " The runlevels field is completely ignored.\n" \
  1611. "\n" \
  1612. " <action>:\n" \
  1613. "\n" \
  1614. " Valid actions include: sysinit, respawn, askfirst, wait,\n" \
  1615. " once, restart, ctrlaltdel, and shutdown.\n" \
  1616. "\n" \
  1617. " The available actions can be classified into two groups: actions\n" \
  1618. " that are run only once, and actions that are re-run when the specified\n" \
  1619. " process exits.\n" \
  1620. "\n" \
  1621. " Run only-once actions:\n" \
  1622. "\n" \
  1623. " 'sysinit' is the first item run on boot. init waits until all\n" \
  1624. " sysinit actions are completed before continuing. Following the\n" \
  1625. " completion of all sysinit actions, all 'wait' actions are run.\n" \
  1626. " 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \
  1627. " the specified task completes. 'once' actions are asynchronous,\n" \
  1628. " therefore, init does not wait for them to complete. 'restart' is\n" \
  1629. " the action taken to restart the init process. By default this should\n" \
  1630. " simply run /sbin/init, but can be a script which runs pivot_root or it\n" \
  1631. " can do all sorts of other interesting things. The 'ctrlaltdel' init\n" \
  1632. " actions are run when the system detects that someone on the system\n" \
  1633. " console has pressed the CTRL-ALT-DEL key combination. Typically one\n" \
  1634. " wants to run 'reboot' at this point to cause the system to reboot.\n" \
  1635. " Finally the 'shutdown' action specifies the actions to taken when\n" \
  1636. " init is told to reboot. Unmounting filesystems and disabling swap\n" \
  1637. " is a very good here.\n" \
  1638. "\n" \
  1639. " Run repeatedly actions:\n" \
  1640. "\n" \
  1641. " 'respawn' actions are run after the 'once' actions. When a process\n" \
  1642. " started with a 'respawn' action exits, init automatically restarts\n" \
  1643. " it. Unlike sysvinit, BusyBox init does not stop processes from\n" \
  1644. " respawning out of control. The 'askfirst' actions acts just like\n" \
  1645. " respawn, except that before running the specified process it\n" \
  1646. " displays the line \"Please press Enter to activate this console.\"\n" \
  1647. " and then waits for the user to press enter before starting the\n" \
  1648. " specified process.\n" \
  1649. "\n" \
  1650. " Unrecognized actions (like initdefault) will cause init to emit an\n" \
  1651. " error message, and then go along with its business. All actions are\n" \
  1652. " run in the order they appear in /etc/inittab.\n" \
  1653. "\n" \
  1654. " <process>:\n" \
  1655. "\n" \
  1656. " Specifies the process to be executed and its command line.\n" \
  1657. "\n" \
  1658. "Example /etc/inittab file:\n" \
  1659. "\n" \
  1660. " # This is run first except when booting in single-user mode\n" \
  1661. " #\n" \
  1662. " ::sysinit:/etc/init.d/rcS\n" \
  1663. " \n" \
  1664. " # /bin/sh invocations on selected ttys\n" \
  1665. " #\n" \
  1666. " # Start an \"askfirst\" shell on the console (whatever that may be)\n" \
  1667. " ::askfirst:-/bin/sh\n" \
  1668. " # Start an \"askfirst\" shell on /dev/tty2-4\n" \
  1669. " tty2::askfirst:-/bin/sh\n" \
  1670. " tty3::askfirst:-/bin/sh\n" \
  1671. " tty4::askfirst:-/bin/sh\n" \
  1672. " \n" \
  1673. " # /sbin/getty invocations for selected ttys\n" \
  1674. " #\n" \
  1675. " tty4::respawn:/sbin/getty 38400 tty4\n" \
  1676. " tty5::respawn:/sbin/getty 38400 tty5\n" \
  1677. " \n" \
  1678. " \n" \
  1679. " # Example of how to put a getty on a serial line (for a terminal)\n" \
  1680. " #\n" \
  1681. " #::respawn:/sbin/getty -L ttyS0 9600 vt100\n" \
  1682. " #::respawn:/sbin/getty -L ttyS1 9600 vt100\n" \
  1683. " #\n" \
  1684. " # Example how to put a getty on a modem line\n" \
  1685. " #::respawn:/sbin/getty 57600 ttyS2\n" \
  1686. " \n" \
  1687. " # Stuff to do when restarting the init process\n" \
  1688. " ::restart:/sbin/init\n" \
  1689. " \n" \
  1690. " # Stuff to do before rebooting\n" \
  1691. " ::ctrlaltdel:/sbin/reboot\n" \
  1692. " ::shutdown:/bin/umount -a -r\n" \
  1693. " ::shutdown:/sbin/swapoff -a\n"
  1694. #define inotifyd_trivial_usage \
  1695. "/user/space/agent dir/or/file/being/watched[:mask] ..."
  1696. #define inotifyd_full_usage "\n\n" \
  1697. "Spawn userspace agent on filesystem changes." \
  1698. "\nWhen a filesystem event matching the mask occurs" \
  1699. "\non specified file/directory an userspace agent is spawned" \
  1700. "\nwith the parameters:" \
  1701. "\n1. actual event(s)" \
  1702. "\n2. file/directory name" \
  1703. "\n3. name of subfile (if any), in case of watching a directory" \
  1704. "\n" \
  1705. "\n a File is accessed" \
  1706. "\n c File is modified" \
  1707. "\n e Metadata changed" \
  1708. "\n w Writtable file is closed" \
  1709. "\n 0 Unwrittable file is closed" \
  1710. "\n r File is opened" \
  1711. "\n m File is moved from X" \
  1712. "\n y File is moved to Y" \
  1713. "\n n Subfile is created" \
  1714. "\n d Subfile is deleted" \
  1715. "\n D Self is deleted" \
  1716. "\n M Self is moved" \
  1717. #define insmod_trivial_usage \
  1718. USE_FEATURE_2_4_MODULES("[OPTION]... ") "MODULE [symbol=value]..."
  1719. #define insmod_full_usage "\n\n" \
  1720. "Load the specified kernel modules into the kernel" \
  1721. USE_FEATURE_2_4_MODULES( "\n" \
  1722. "\nOptions:" \
  1723. "\n -f Force module to load into the wrong kernel version" \
  1724. "\n -k Make module autoclean-able" \
  1725. "\n -v Verbose" \
  1726. "\n -q Quiet" \
  1727. "\n -L Lock to prevent simultaneous loads of a module" \
  1728. USE_FEATURE_INSMOD_LOAD_MAP( \
  1729. "\n -m Output load map to stdout" \
  1730. ) \
  1731. "\n -o NAME Set internal module name to NAME" \
  1732. "\n -x Do not export externs" \
  1733. )
  1734. /* -v, -b, -c are ignored */
  1735. #define install_trivial_usage \
  1736. "[-cdDsp] [-o USER] [-g GRP] [-m MODE] [source] dest|directory"
  1737. #define install_full_usage "\n\n" \
  1738. "Copy files and set attributes\n" \
  1739. "\nOptions:" \
  1740. "\n -c Just copy (default)" \
  1741. "\n -d Create directories" \
  1742. "\n -D Create leading target directories" \
  1743. "\n -s Strip symbol table" \
  1744. "\n -p Preserve date" \
  1745. "\n -o USER Set ownership" \
  1746. "\n -g GRP Set group ownership" \
  1747. "\n -m MODE Set permissions" \
  1748. USE_SELINUX( \
  1749. "\n -Z Set security context" \
  1750. )
  1751. /* would need to make the " | " optional depending on more than one selected: */
  1752. #define ip_trivial_usage \
  1753. "[OPTIONS] {" \
  1754. USE_FEATURE_IP_ADDRESS("address | ") \
  1755. USE_FEATURE_IP_ROUTE("route | ") \
  1756. USE_FEATURE_IP_LINK("link | ") \
  1757. USE_FEATURE_IP_TUNNEL("tunnel | ") \
  1758. USE_FEATURE_IP_RULE("rule") \
  1759. "} {COMMAND}"
  1760. #define ip_full_usage "\n\n" \
  1761. "ip [OPTIONS] OBJECT {COMMAND}\n" \
  1762. "where OBJECT := {" \
  1763. USE_FEATURE_IP_ADDRESS("address | ") \
  1764. USE_FEATURE_IP_ROUTE("route | ") \
  1765. USE_FEATURE_IP_LINK("link | ") \
  1766. USE_FEATURE_IP_TUNNEL("tunnel | ") \
  1767. USE_FEATURE_IP_RULE("rule") \
  1768. "}\n" \
  1769. "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }" \
  1770. #define ipaddr_trivial_usage \
  1771. "{ {add|del} IFADDR dev STRING | {show|flush}\n" \
  1772. " [dev STRING] [to PREFIX] }"
  1773. #define ipaddr_full_usage "\n\n" \
  1774. "ipaddr {add|delete} IFADDR dev STRING\n" \
  1775. "ipaddr {show|flush} [dev STRING] [scope SCOPE-ID]\n" \
  1776. " [to PREFIX] [label PATTERN]\n" \
  1777. " IFADDR := PREFIX | ADDR peer PREFIX\n" \
  1778. " [broadcast ADDR] [anycast ADDR]\n" \
  1779. " [label STRING] [scope SCOPE-ID]\n" \
  1780. " SCOPE-ID := [host | link | global | NUMBER]" \
  1781. #define ipcalc_trivial_usage \
  1782. "[OPTION]... ADDRESS[[/]NETMASK] [NETMASK]"
  1783. #define ipcalc_full_usage "\n\n" \
  1784. "Calculate IP network settings from a IP address\n" \
  1785. "\nOptions:" \
  1786. USE_FEATURE_IPCALC_LONG_OPTIONS( \
  1787. "\n -b,--broadcast Display calculated broadcast address" \
  1788. "\n -n,--network Display calculated network address" \
  1789. "\n -m,--netmask Display default netmask for IP" \
  1790. USE_FEATURE_IPCALC_FANCY( \
  1791. "\n -p,--prefix Display the prefix for IP/NETMASK" \
  1792. "\n -h,--hostname Display first resolved host name" \
  1793. "\n -s,--silent Don't ever display error messages" \
  1794. ) \
  1795. ) \
  1796. SKIP_FEATURE_IPCALC_LONG_OPTIONS( \
  1797. "\n -b Display calculated broadcast address" \
  1798. "\n -n Display calculated network address" \
  1799. "\n -m Display default netmask for IP" \
  1800. USE_FEATURE_IPCALC_FANCY( \
  1801. "\n -p Display the prefix for IP/NETMASK" \
  1802. "\n -h Display first resolved host name" \
  1803. "\n -s Don't ever display error messages" \
  1804. ) \
  1805. )
  1806. #define ipcrm_trivial_usage \
  1807. "[-MQS key] [-mqs id]"
  1808. #define ipcrm_full_usage "\n\n" \
  1809. "Upper-case options MQS remove an object by shmkey value.\n" \
  1810. "Lower-case options remove an object by shmid value.\n" \
  1811. "\nOptions:" \
  1812. "\n -mM Remove memory segment after last detach" \
  1813. "\n -qQ Remove message queue" \
  1814. "\n -sS Remove semaphore" \
  1815. #define ipcs_trivial_usage \
  1816. "[[-smq] -i shmid] | [[-asmq] [-tcplu]]"
  1817. #define ipcs_full_usage "\n\n" \
  1818. " -i Show specific resource" \
  1819. "\nResource specification:" \
  1820. "\n -m Shared memory segments" \
  1821. "\n -q Message queues" \
  1822. "\n -s Semaphore arrays" \
  1823. "\n -a All (default)" \
  1824. "\nOutput format:" \
  1825. "\n -t Time" \
  1826. "\n -c Creator" \
  1827. "\n -p Pid" \
  1828. "\n -l Limits" \
  1829. "\n -u Summary" \
  1830. #define iplink_trivial_usage \
  1831. "{ set DEVICE { up | down | arp { on | off } | show [DEVICE] }"
  1832. #define iplink_full_usage "\n\n" \
  1833. "iplink set DEVICE { up | down | arp | multicast { on | off } |\n" \
  1834. " dynamic { on | off } |\n" \
  1835. " mtu MTU }\n" \
  1836. "iplink show [DEVICE]" \
  1837. #define iproute_trivial_usage \
  1838. "{ list | flush | { add | del | change | append |\n" \
  1839. " replace | monitor } ROUTE }"
  1840. #define iproute_full_usage "\n\n" \
  1841. "iproute { list | flush } SELECTOR\n" \
  1842. "iproute get ADDRESS [from ADDRESS iif STRING]\n" \
  1843. " [oif STRING] [tos TOS]\n" \
  1844. "iproute { add | del | change | append | replace | monitor } ROUTE\n" \
  1845. " SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO]\n" \
  1846. " ROUTE := [TYPE] PREFIX [tos TOS] [proto RTPROTO]\n" \
  1847. " [metric METRIC]" \
  1848. #define iprule_trivial_usage \
  1849. "{[list | add | del] RULE}"
  1850. #define iprule_full_usage "\n\n" \
  1851. "iprule [list | add | del] SELECTOR ACTION\n" \
  1852. " SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK]\n" \
  1853. " [dev STRING] [pref NUMBER]\n" \
  1854. " ACTION := [table TABLE_ID] [nat ADDRESS]\n" \
  1855. " [prohibit | reject | unreachable]\n" \
  1856. " [realms [SRCREALM/]DSTREALM]\n" \
  1857. " TABLE_ID := [local | main | default | NUMBER]" \
  1858. #define iptunnel_trivial_usage \
  1859. "{ add | change | del | show } [NAME]\n" \
  1860. " [mode { ipip | gre | sit }]\n" \
  1861. " [remote ADDR] [local ADDR] [ttl TTL]"
  1862. #define iptunnel_full_usage "\n\n" \
  1863. "iptunnel { add | change | del | show } [NAME]\n" \
  1864. " [mode { ipip | gre | sit }] [remote ADDR] [local ADDR]\n" \
  1865. " [[i|o]seq] [[i|o]key KEY] [[i|o]csum]\n" \
  1866. " [ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV]" \
  1867. #define kbd_mode_trivial_usage \
  1868. "[-a|k|s|u] [-C TTY]"
  1869. #define kbd_mode_full_usage "\n\n" \
  1870. "Report or set the keyboard mode\n" \
  1871. "\nOptions set mode:" \
  1872. "\n -a Default (ASCII)" \
  1873. "\n -k Medium-raw (keyboard)" \
  1874. "\n -s Raw (scancode)" \
  1875. "\n -u Unicode (utf-8)" \
  1876. "\n -C TTY Affect TTY instead of /dev/tty" \
  1877. #define kill_trivial_usage \
  1878. "[-l] [-SIG] PID..."
  1879. #define kill_full_usage "\n\n" \
  1880. "Send a signal (default is TERM) to given PIDs\n" \
  1881. "\nOptions:" \
  1882. "\n -l List all signal names and numbers" \
  1883. /* "\n -s SIG Yet another way of specifying SIG" */ \
  1884. #define kill_example_usage \
  1885. "$ ps | grep apache\n" \
  1886. "252 root root S [apache]\n" \
  1887. "263 www-data www-data S [apache]\n" \
  1888. "264 www-data www-data S [apache]\n" \
  1889. "265 www-data www-data S [apache]\n" \
  1890. "266 www-data www-data S [apache]\n" \
  1891. "267 www-data www-data S [apache]\n" \
  1892. "$ kill 252\n"
  1893. #define killall_trivial_usage \
  1894. "[-l] [-q] [-SIG] process-name..."
  1895. #define killall_full_usage "\n\n" \
  1896. "Send a signal (default is TERM) to given processes\n" \
  1897. "\nOptions:" \
  1898. "\n -l List all signal names and numbers" \
  1899. /* "\n -s SIG Yet another way of specifying SIG" */ \
  1900. "\n -q Do not complain if no processes were killed" \
  1901. #define killall_example_usage \
  1902. "$ killall apache\n"
  1903. #define killall5_trivial_usage \
  1904. "[-l] [-SIG]"
  1905. #define killall5_full_usage "\n\n" \
  1906. "Send a signal (default is TERM) to all processes outside current session\n" \
  1907. "\nOptions:" \
  1908. "\n -l List all signal names and numbers" \
  1909. /* "\n -s SIG Yet another way of specifying SIG" */ \
  1910. #define klogd_trivial_usage \
  1911. "[-c N] [-n]"
  1912. #define klogd_full_usage "\n\n" \
  1913. "Kernel logger\n" \
  1914. "\nOptions:" \
  1915. "\n -c N Only messages with level < N are printed to console" \
  1916. "\n -n Run in foreground" \
  1917. #define length_trivial_usage \
  1918. "STRING"
  1919. #define length_full_usage "\n\n" \
  1920. "Print STRING's length"
  1921. #define length_example_usage \
  1922. "$ length Hello\n" \
  1923. "5\n"
  1924. #define less_trivial_usage \
  1925. "[-EMNmh~I?] [FILE...]"
  1926. #define less_full_usage "\n\n" \
  1927. "View a file or list of files. The position within files can be\n" \
  1928. "changed, and files can be manipulated in various ways.\n" \
  1929. "\nOptions:" \
  1930. "\n -E Quit once the end of a file is reached" \
  1931. "\n -M,-m Display a status line containing the line numbers" \
  1932. "\n and percentage through the file" \
  1933. "\n -N Prefix line numbers to each line" \
  1934. "\n -I Ignore case in all searches" \
  1935. "\n -~ Suppress ~s displayed past the end of the file" \
  1936. #define linux32_trivial_usage NOUSAGE_STR
  1937. #define linux32_full_usage ""
  1938. #define linux64_trivial_usage NOUSAGE_STR
  1939. #define linux64_full_usage ""
  1940. #define linuxrc_trivial_usage NOUSAGE_STR
  1941. #define linuxrc_full_usage ""
  1942. #define setarch_trivial_usage \
  1943. "personality program [args...]"
  1944. #define setarch_full_usage "\n\n" \
  1945. "Personality may be:\n" \
  1946. " linux32 Set 32bit uname emulation\n" \
  1947. " linux64 Set 64bit uname emulation" \
  1948. #define ln_trivial_usage \
  1949. "[OPTION] TARGET... LINK_NAME|DIRECTORY"
  1950. #define ln_full_usage "\n\n" \
  1951. "Create a link named LINK_NAME or DIRECTORY to the specified TARGET.\n" \
  1952. "Use '--' to indicate that all following arguments are non-options.\n" \
  1953. "\nOptions:" \
  1954. "\n -s Make symlinks instead of hardlinks" \
  1955. "\n -f Remove existing destination files" \
  1956. "\n -n Don't dereference symlinks - treat like normal file" \
  1957. "\n -b Make a backup of the target (if exists) before link operation" \
  1958. "\n -S suf Use suffix instead of ~ when making backup files" \
  1959. #define ln_example_usage \
  1960. "$ ln -s BusyBox /tmp/ls\n" \
  1961. "$ ls -l /tmp/ls\n" \
  1962. "lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox*\n"
  1963. #define load_policy_trivial_usage NOUSAGE_STR
  1964. #define load_policy_full_usage ""
  1965. #define loadfont_trivial_usage \
  1966. "< font"
  1967. #define loadfont_full_usage "\n\n" \
  1968. "Load a console font from standard input" \
  1969. /* "\n -C TTY Affect TTY instead of /dev/tty" */ \
  1970. #define loadfont_example_usage \
  1971. "$ loadfont < /etc/i18n/fontname\n"
  1972. #define loadkmap_trivial_usage \
  1973. "< keymap"
  1974. #define loadkmap_full_usage "\n\n" \
  1975. "Load a binary keyboard translation table from standard input\n" \
  1976. /* "\n -C TTY Affect TTY instead of /dev/tty" */ \
  1977. #define loadkmap_example_usage \
  1978. "$ loadkmap < /etc/i18n/lang-keymap\n"
  1979. #define logger_trivial_usage \
  1980. "[OPTION]... [MESSAGE]"
  1981. #define logger_full_usage "\n\n" \
  1982. "Write MESSAGE to the system log. If MESSAGE is omitted, log stdin.\n" \
  1983. "\nOptions:" \
  1984. "\n -s Log to stderr as well as the system log" \
  1985. "\n -t TAG Log using the specified tag (defaults to user name)" \
  1986. "\n -p PRIO Priority (numeric or facility.level pair)" \
  1987. #define logger_example_usage \
  1988. "$ logger \"hello\"\n"
  1989. #define login_trivial_usage \
  1990. "[-p] [-h HOST] [[-f] USER]"
  1991. #define login_full_usage "\n\n" \
  1992. "Begin a new session on the system\n" \
  1993. "\nOptions:" \
  1994. "\n -f Do not authenticate (user already authenticated)" \
  1995. "\n -h Name of the remote host" \
  1996. "\n -p Preserve environment" \
  1997. #define logname_trivial_usage \
  1998. ""
  1999. #define logname_full_usage "\n\n" \
  2000. "Print the name of the current user"
  2001. #define logname_example_usage \
  2002. "$ logname\n" \
  2003. "root\n"
  2004. #define logread_trivial_usage \
  2005. "[OPTION]..."
  2006. #define logread_full_usage "\n\n" \
  2007. "Show messages in syslogd's circular buffer\n" \
  2008. "\nOptions:" \
  2009. "\n -f Output data as log grows" \
  2010. #define losetup_trivial_usage \
  2011. "[-o OFS] LOOPDEV FILE - associate loop devices\n" \
  2012. " losetup -d LOOPDEV - disassociate\n" \
  2013. " losetup [-f] - show"
  2014. #define losetup_full_usage "\n\n" \
  2015. "Options:" \
  2016. "\n -o OFS Start OFS bytes into FILE" \
  2017. "\n -f Show first free loop device" \
  2018. #define losetup_notes_usage \
  2019. "No arguments will display all current associations.\n" \
  2020. "One argument (losetup /dev/loop1) will display the current association\n" \
  2021. "(if any), or disassociate it (with -d). The display shows the offset\n" \
  2022. "and filename of the file the loop device is currently bound to.\n\n" \
  2023. "Two arguments (losetup /dev/loop1 file.img) create a new association,\n" \
  2024. "with an optional offset (-o 12345). Encryption is not yet supported.\n" \
  2025. "losetup -f will show the first loop free loop device\n\n"
  2026. #define lpd_trivial_usage \
  2027. "SPOOLDIR [HELPER [ARGS...]]"
  2028. #define lpd_full_usage "\n\n" \
  2029. "SPOOLDIR must contain (symlinks to) device nodes or directories" \
  2030. "\nwith names matching print queue names. In the first case, jobs are" \
  2031. "\nsent directly to the device. Otherwise each job is stored in queue" \
  2032. "\ndirectory and HELPER program is called. Name of file to print" \
  2033. "\nis passed in $DATAFILE variable." \
  2034. "\nExample:" \
  2035. "\n tcpsvd -E 0 515 softlimit -m 999999 lpd /var/spool ./print" \
  2036. #define lpq_trivial_usage \
  2037. "[-P queue[@host[:port]]] [-U USERNAME] [-d JOBID...] [-fs]"
  2038. #define lpq_full_usage "\n\n" \
  2039. "Options:" \
  2040. "\n -P lp service to connect to (else uses $PRINTER)" \
  2041. "\n -d Delete jobs" \
  2042. "\n -f Force any waiting job to be printed" \
  2043. "\n -s Short display" \
  2044. #define lpr_trivial_usage \
  2045. "-P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE...]"
  2046. /* -C CLASS exists too, not shown.
  2047. * CLASS is supposed to be printed on banner page, if one is requested */
  2048. #define lpr_full_usage "\n\n" \
  2049. "Options:" \
  2050. "\n -P lp service to connect to (else uses $PRINTER)"\
  2051. "\n -m Send mail on completion" \
  2052. "\n -h Print banner page too" \
  2053. "\n -V Verbose" \
  2054. #define ls_trivial_usage \
  2055. "[-1Aa" USE_FEATURE_LS_TIMESTAMPS("c") "Cd" \
  2056. USE_FEATURE_LS_TIMESTAMPS("e") USE_FEATURE_LS_FILETYPES("F") "iln" \
  2057. USE_FEATURE_LS_FILETYPES("p") USE_FEATURE_LS_FOLLOWLINKS("L") \
  2058. USE_FEATURE_LS_RECURSIVE("R") USE_FEATURE_LS_SORTFILES("rS") "s" \
  2059. USE_FEATURE_AUTOWIDTH("T") USE_FEATURE_LS_TIMESTAMPS("tu") \
  2060. USE_FEATURE_LS_SORTFILES("v") USE_FEATURE_AUTOWIDTH("w") "x" \
  2061. USE_FEATURE_LS_SORTFILES("X") USE_FEATURE_HUMAN_READABLE("h") "k" \
  2062. USE_SELINUX("K") "] [filenames...]"
  2063. #define ls_full_usage "\n\n" \
  2064. "List directory contents\n" \
  2065. "\nOptions:" \
  2066. "\n -1 List in a single column" \
  2067. "\n -A Don't list . and .." \
  2068. "\n -a Don't hide entries starting with ." \
  2069. "\n -C List by columns" \
  2070. USE_FEATURE_LS_TIMESTAMPS( \
  2071. "\n -c With -l: sort by ctime") \
  2072. USE_FEATURE_LS_COLOR( \
  2073. "\n --color[={always,never,auto}] Control coloring") \
  2074. "\n -d List directory entries instead of contents" \
  2075. USE_FEATURE_LS_TIMESTAMPS( \
  2076. "\n -e List full date and time") \
  2077. USE_FEATURE_LS_FILETYPES( \
  2078. "\n -F Append indicator (one of */=@|) to entries") \
  2079. "\n -i List inode numbers" \
  2080. "\n -l Long listing format" \
  2081. "\n -n List numeric UIDs and GIDs instead of names" \
  2082. USE_FEATURE_LS_FILETYPES( \
  2083. "\n -p Append indicator (one of /=@|) to entries") \
  2084. USE_FEATURE_LS_FOLLOWLINKS( \
  2085. "\n -L List entries pointed to by symlinks") \
  2086. USE_FEATURE_LS_RECURSIVE( \
  2087. "\n -R List subdirectories recursively") \
  2088. USE_FEATURE_LS_SORTFILES( \
  2089. "\n -r Sort in reverse order") \
  2090. USE_FEATURE_LS_SORTFILES( \
  2091. "\n -S Sort by file size") \
  2092. "\n -s List the size of each file, in blocks" \
  2093. USE_FEATURE_AUTOWIDTH( \
  2094. "\n -T NUM Assume tabstop every NUM columns") \
  2095. USE_FEATURE_LS_TIMESTAMPS( \
  2096. "\n -t With -l: sort by modification time") \
  2097. USE_FEATURE_LS_TIMESTAMPS( \
  2098. "\n -u With -l: sort by access time") \
  2099. USE_FEATURE_LS_SORTFILES( \
  2100. "\n -v Sort by version") \
  2101. USE_FEATURE_AUTOWIDTH( \
  2102. "\n -w NUM Assume the terminal is NUM columns wide") \
  2103. "\n -x List by lines" \
  2104. USE_FEATURE_LS_SORTFILES( \
  2105. "\n -X Sort by extension") \
  2106. USE_FEATURE_HUMAN_READABLE( \
  2107. "\n -h List sizes in human readable format (1K 243M 2G)") \
  2108. USE_SELINUX( \
  2109. "\n -k List security context") \
  2110. USE_SELINUX( \
  2111. "\n -K List security context in long format") \
  2112. USE_SELINUX( \
  2113. "\n -Z List security context and permission") \
  2114. #define lsattr_trivial_usage \
  2115. "[-Radlv] [files...]"
  2116. #define lsattr_full_usage "\n\n" \
  2117. "List file attributes on an ext2 fs\n" \
  2118. "\nOptions:" \
  2119. "\n -R Recursively list subdirectories" \
  2120. "\n -a Do not hide entries starting with ." \
  2121. "\n -d List directory entries instead of contents" \
  2122. "\n -l List long flag names" \
  2123. "\n -v List the file's version/generation number" \
  2124. #define lsmod_trivial_usage \
  2125. ""
  2126. #define lsmod_full_usage "\n\n" \
  2127. "List the currently loaded kernel modules"
  2128. #if ENABLE_FEATURE_MAKEDEVS_LEAF
  2129. #define makedevs_trivial_usage \
  2130. "NAME TYPE MAJOR MINOR FIRST LAST [s]"
  2131. #define makedevs_full_usage "\n\n" \
  2132. "Create a range of block or character special files" \
  2133. "\n" \
  2134. "\nTYPE is:" \
  2135. "\n b Block device" \
  2136. "\n c Character device" \
  2137. "\n f FIFO, MAJOR and MINOR are ignored" \
  2138. "\n" \
  2139. "\nFIRST..LAST specify numbers appended to NAME." \
  2140. "\nIf 's' is the last argument, the base device is created as well." \
  2141. "\n" \
  2142. "\nExamples:" \
  2143. "\n makedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63" \
  2144. "\n makedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8"
  2145. #define makedevs_example_usage \
  2146. "# makedevs /dev/ttyS c 4 66 2 63\n" \
  2147. "[creates ttyS2-ttyS63]\n" \
  2148. "# makedevs /dev/hda b 3 0 0 8 s\n" \
  2149. "[creates hda,hda1-hda8]\n"
  2150. #endif
  2151. #if ENABLE_FEATURE_MAKEDEVS_TABLE
  2152. #define makedevs_trivial_usage \
  2153. "[-d device_table] rootdir"
  2154. #define makedevs_full_usage "\n\n" \
  2155. "Create a range of special files as specified in a device table.\n" \
  2156. "Device table entries take the form of:\n" \
  2157. "<type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>\n" \
  2158. "Where name is the file name, type can be one of:\n" \
  2159. " f Regular file\n" \
  2160. " d Directory\n" \
  2161. " c Character device\n" \
  2162. " b Block device\n" \
  2163. " p Fifo (named pipe)\n" \
  2164. "uid is the user id for the target file, gid is the group id for the\n" \
  2165. "target file. The rest of the entries (major, minor, etc) apply to\n" \
  2166. "to device special files. A '-' may be used for blank entries."
  2167. #define makedevs_example_usage \
  2168. "For example:\n" \
  2169. "<name> <type> <mode><uid><gid><major><minor><start><inc><count>\n" \
  2170. "/dev d 755 0 0 - - - - -\n" \
  2171. "/dev/console c 666 0 0 5 1 - - -\n" \
  2172. "/dev/null c 666 0 0 1 3 0 0 -\n" \
  2173. "/dev/zero c 666 0 0 1 5 0 0 -\n" \
  2174. "/dev/hda b 640 0 0 3 0 0 0 -\n" \
  2175. "/dev/hda b 640 0 0 3 1 1 1 15\n\n" \
  2176. "Will Produce:\n" \
  2177. "/dev\n" \
  2178. "/dev/console\n" \
  2179. "/dev/null\n" \
  2180. "/dev/zero\n" \
  2181. "/dev/hda\n" \
  2182. "/dev/hda[0-15]\n"
  2183. #endif
  2184. #define makemime_trivial_usage \
  2185. "[OPTION]... [FILE]..."
  2186. #define makemime_full_usage "\n\n" \
  2187. "Create MIME-encoded message\n" \
  2188. "\nOptions:" \
  2189. "\n -C Charset" \
  2190. "\n -e Tranfer encoding. Ignored. base64 is assumed" \
  2191. "\n" \
  2192. "\nOther options are silently ignored." \
  2193. #define man_trivial_usage \
  2194. "[OPTION]... [MANPAGE]..."
  2195. #define man_full_usage "\n\n" \
  2196. "Format and display manual page\n" \
  2197. "\nOptions:" \
  2198. "\n -a Display all pages" \
  2199. "\n -w Show page locations" \
  2200. #define matchpathcon_trivial_usage \
  2201. "[-n] [-N] [-f file_contexts_file] [-p prefix] [-V]"
  2202. #define matchpathcon_full_usage "\n\n" \
  2203. " -n Do not display path" \
  2204. "\n -N Do not use translations" \
  2205. "\n -f Use alternate file_context file" \
  2206. "\n -p Use prefix to speed translations" \
  2207. "\n -V Verify file context on disk matches defaults" \
  2208. #define md5sum_trivial_usage \
  2209. "[OPTION] [FILEs...]" \
  2210. USE_FEATURE_MD5_SHA1_SUM_CHECK("\n or: md5sum [OPTION] -c [FILE]")
  2211. #define md5sum_full_usage "\n\n" \
  2212. "Print" USE_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " MD5 checksums" \
  2213. USE_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
  2214. "\nOptions:" \
  2215. "\n -c Check MD5 sums against given list" \
  2216. "\n -s Don't output anything, status code shows success" \
  2217. "\n -w Warn about improperly formatted MD5 checksum lines") \
  2218. #define md5sum_example_usage \
  2219. "$ md5sum < busybox\n" \
  2220. "6fd11e98b98a58f64ff3398d7b324003\n" \
  2221. "$ md5sum busybox\n" \
  2222. "6fd11e98b98a58f64ff3398d7b324003 busybox\n" \
  2223. "$ md5sum -c -\n" \
  2224. "6fd11e98b98a58f64ff3398d7b324003 busybox\n" \
  2225. "busybox: OK\n" \
  2226. "^D\n"
  2227. #define mdev_trivial_usage \
  2228. "[-s]"
  2229. #define mdev_full_usage "\n\n" \
  2230. " -s Scan /sys and populate /dev during system boot\n" \
  2231. "\n" \
  2232. "Called with no options (via hotplug) it uses environment variables\n" \
  2233. "to determine which device to add/remove."
  2234. #define mdev_notes_usage "" \
  2235. USE_FEATURE_MDEV_CONFIG( \
  2236. "The mdev config file contains lines that look like:\n" \
  2237. " hd[a-z][0-9]* 0:3 660\n\n" \
  2238. "That's device name (with regex match), uid:gid, and permissions.\n\n" \
  2239. USE_FEATURE_MDEV_EXEC( \
  2240. "Optionally, that can be followed (on the same line) by a special character\n" \
  2241. "and a command line to run after creating/before deleting the corresponding\n" \
  2242. "device(s). The environment variable $MDEV indicates the active device node\n" \
  2243. "(which is useful if it's a regex match). For example:\n\n" \
  2244. " hdc root:cdrom 660 *ln -s $MDEV cdrom\n\n" \
  2245. "The special characters are @ (run after creating), $ (run before deleting),\n" \
  2246. "and * (run both after creating and before deleting). The commands run in\n" \
  2247. "the /dev directory, and use system() which calls /bin/sh.\n\n" \
  2248. ) \
  2249. "Config file parsing stops on the first matching line. If no config\n" \
  2250. "entry is matched, devices are created with default 0:0 660. (Make\n" \
  2251. "the last line match .* to override this.)\n\n" \
  2252. )
  2253. #define mesg_trivial_usage \
  2254. "[y|n]"
  2255. #define mesg_full_usage "\n\n" \
  2256. "Control write access to your terminal\n" \
  2257. " y Allow write access to your terminal\n" \
  2258. " n Disallow write access to your terminal"
  2259. #define microcom_trivial_usage \
  2260. "[-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY"
  2261. #define microcom_full_usage "\n\n" \
  2262. "Copy bytes for stdin to TTY and from TTY to stdout\n" \
  2263. "\nOptions:" \
  2264. "\n -d Wait up to DELAY ms for TTY output before sending every" \
  2265. "\n next byte to it" \
  2266. "\n -t Exit if both stdin and TTY are silent for TIMEOUT ms" \
  2267. "\n -s Set serial line to SPEED" \
  2268. "\n -X Disable special meaning of NUL and Ctrl-X from stdin" \
  2269. #define mkdir_trivial_usage \
  2270. "[OPTION] DIRECTORY..."
  2271. #define mkdir_full_usage "\n\n" \
  2272. "Create DIRECTORY\n" \
  2273. "\nOptions:" \
  2274. "\n -m Set permission mode (as in chmod), not rwxrwxrwx - umask" \
  2275. "\n -p No error if existing, make parent directories as needed" \
  2276. USE_SELINUX( \
  2277. "\n -Z Set security context" \
  2278. )
  2279. #define mkdir_example_usage \
  2280. "$ mkdir /tmp/foo\n" \
  2281. "$ mkdir /tmp/foo\n" \
  2282. "/tmp/foo: File exists\n" \
  2283. "$ mkdir /tmp/foo/bar/baz\n" \
  2284. "/tmp/foo/bar/baz: No such file or directory\n" \
  2285. "$ mkdir -p /tmp/foo/bar/baz\n"
  2286. #define mke2fs_trivial_usage \
  2287. "[-c|-l filename] [-b block-size] [-f fragment-size] [-g blocks-per-group] " \
  2288. "[-i bytes-per-inode] [-j] [-J journal-options] [-N number-of-inodes] [-n] " \
  2289. "[-m reserved-blocks-percentage] [-o creator-os] [-O feature[,...]] [-q] " \
  2290. "[r fs-revision-level] [-E extended-options] [-v] [-F] [-L volume-label] " \
  2291. "[-M last-mounted-directory] [-S] [-T filesystem-type] " \
  2292. "device [blocks-count]"
  2293. #define mke2fs_full_usage "\n\n" \
  2294. " -b size Block size in bytes" \
  2295. "\n -c Check for bad blocks before creating" \
  2296. "\n -E opts Set extended options" \
  2297. "\n -f size Fragment size in bytes" \
  2298. "\n -F Force (ignore sanity checks)" \
  2299. "\n -g num Number of blocks in a block group" \
  2300. "\n -i ratio The bytes/inode ratio" \
  2301. "\n -j Create a journal (ext3)" \
  2302. "\n -J opts Set journal options (size/device)" \
  2303. "\n -l file Read bad blocks list from file" \
  2304. "\n -L lbl Set the volume label" \
  2305. "\n -m percent Percent of fs blocks to reserve for admin" \
  2306. "\n -M dir Set last mounted directory" \
  2307. "\n -n Do not actually create anything" \
  2308. "\n -N num Number of inodes to create" \
  2309. "\n -o os Set the 'creator os' field" \
  2310. "\n -O features Dir_index/filetype/has_journal/journal_dev/sparse_super" \
  2311. "\n -q Quiet" \
  2312. "\n -r rev Set filesystem revision" \
  2313. "\n -S Write superblock and group descriptors only" \
  2314. "\n -T fs-type Set usage type (news/largefile/largefile4)" \
  2315. "\n -v Verbose" \
  2316. #define mkfifo_trivial_usage \
  2317. "[OPTIONS] name"
  2318. #define mkfifo_full_usage "\n\n" \
  2319. "Create named pipe (identical to 'mknod name p')\n" \
  2320. "\nOptions:" \
  2321. "\n -m MODE Mode (default a=rw)" \
  2322. USE_SELINUX( \
  2323. "\n -Z Set security context" \
  2324. )
  2325. #define mkfs_minix_trivial_usage \
  2326. "[-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]"
  2327. #define mkfs_minix_full_usage "\n\n" \
  2328. "Make a MINIX filesystem\n" \
  2329. "\nOptions:" \
  2330. "\n -c Check device for bad blocks" \
  2331. "\n -n [14|30] Maximum length of filenames" \
  2332. "\n -i INODES Number of inodes for the filesystem" \
  2333. "\n -l FILENAME Read bad blocks list from FILENAME" \
  2334. "\n -v Make version 2 filesystem" \
  2335. #define mknod_trivial_usage \
  2336. "[OPTIONS] NAME TYPE MAJOR MINOR"
  2337. #define mknod_full_usage "\n\n" \
  2338. "Create a special file (block, character, or pipe)\n" \
  2339. "\nOptions:" \
  2340. "\n -m Create the special file using the specified mode (default a=rw)" \
  2341. "\nTYPEs include:" \
  2342. "\n b: Make a block device" \
  2343. "\n c or u: Make a character device" \
  2344. "\n p: Make a named pipe (MAJOR and MINOR are ignored)" \
  2345. USE_SELINUX( \
  2346. "\n -Z Set security context" \
  2347. )
  2348. #define mknod_example_usage \
  2349. "$ mknod /dev/fd0 b 2 0\n" \
  2350. "$ mknod -m 644 /tmp/pipe p\n"
  2351. #define mkswap_trivial_usage \
  2352. "DEVICE"
  2353. #define mkswap_full_usage "\n\n" \
  2354. "Prepare block device to be used as swap partition"
  2355. #if 0
  2356. "[-c] [-v0|-v1] DEVICE [BLOCKS]"
  2357. "\nOptions:"
  2358. "\n -c Check for readability"
  2359. "\n -v0 Make swap version 0 (max 128M)"
  2360. "\n -v1 Make swap version 1 (default for kernels > 2.1.117)"
  2361. "\n BLOCKS Number of blocks to use (default is entire partition)"
  2362. #endif
  2363. #define mktemp_trivial_usage \
  2364. "[-dt] [-p DIR] [TEMPLATE]"
  2365. #define mktemp_full_usage "\n\n" \
  2366. "Create a temporary file with name based on TEMPLATE and print its name.\n" \
  2367. "TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX).\n" \
  2368. "\nOptions:" \
  2369. "\n -d Make a directory instead of a file" \
  2370. /* "\n -q Fail silently if an error occurs" - we ignore it */ \
  2371. "\n -t Generate a path rooted in temporary directory" \
  2372. "\n -p DIR Use DIR as a temporary directory (implies -t)" \
  2373. "\n" \
  2374. "\nFor -t or -p, directory is chosen as follows:" \
  2375. "\n$TMPDIR if set, else -p DIR, else /tmp" \
  2376. #define mktemp_example_usage \
  2377. "$ mktemp /tmp/temp.XXXXXX\n" \
  2378. "/tmp/temp.mWiLjM\n" \
  2379. "$ ls -la /tmp/temp.mWiLjM\n" \
  2380. "-rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM\n"
  2381. #define modprobe_trivial_usage \
  2382. "[-knqrsv] MODULE [symbol=value...]"
  2383. #define modprobe_full_usage "\n\n" \
  2384. "Options:" \
  2385. USE_FEATURE_2_4_MODULES( \
  2386. "\n -k Make module autoclean-able" \
  2387. ) \
  2388. "\n -n Dry run" \
  2389. "\n -q Quiet" \
  2390. "\n -r Remove module (stacks) or do autoclean" \
  2391. "\n -s Report via syslog instead of stderr" \
  2392. "\n -v Verbose" \
  2393. USE_FEATURE_MODPROBE_BLACKLIST( \
  2394. "\n -b Apply blacklist to module names too" \
  2395. )
  2396. #define modprobe_notes_usage \
  2397. "modprobe can (un)load a stack of modules, passing each module options (when\n" \
  2398. "loading). modprobe uses a configuration file to determine what option(s) to\n" \
  2399. "pass each module it loads.\n" \
  2400. "\n" \
  2401. "The configuration file is searched (in order) amongst:\n" \
  2402. "\n" \
  2403. " /etc/modprobe.conf (2.6 only)\n" \
  2404. " /etc/modules.conf\n" \
  2405. " /etc/conf.modules (deprecated)\n" \
  2406. "\n" \
  2407. "They all have the same syntax (see below). If none is present, it is\n" \
  2408. "_not_ an error; each loaded module is then expected to load without\n" \
  2409. "options. Once a file is found, the others are tested for.\n" \
  2410. "\n" \
  2411. "/etc/modules.conf entry format:\n" \
  2412. "\n" \
  2413. " alias <alias_name> <mod_name>\n" \
  2414. " Makes it possible to modprobe alias_name, when there is no such module.\n" \
  2415. " It makes sense if your mod_name is long, or you want a more representative\n" \
  2416. " name for that module (eg. 'scsi' in place of 'aha7xxx').\n" \
  2417. " This makes it also possible to use a different set of options (below) for\n" \
  2418. " the module and the alias.\n" \
  2419. " A module can be aliased more than once.\n" \
  2420. "\n" \
  2421. " options <mod_name|alias_name> <symbol=value...>\n" \
  2422. " When loading module mod_name (or the module aliased by alias_name), pass\n" \
  2423. " the \"symbol=value\" pairs as option to that module.\n" \
  2424. "\n" \
  2425. "Sample /etc/modules.conf file:\n" \
  2426. "\n" \
  2427. " options tulip irq=3\n" \
  2428. " alias tulip tulip2\n" \
  2429. " options tulip2 irq=4 io=0x308\n" \
  2430. "\n" \
  2431. "Other functionality offered by 'classic' modprobe is not available in\n" \
  2432. "this implementation.\n" \
  2433. "\n" \
  2434. "If module options are present both in the config file, and on the command line,\n" \
  2435. "then the options from the command line will be passed to the module _after_\n" \
  2436. "the options from the config file. That way, you can have defaults in the config\n" \
  2437. "file, and override them for a specific usage from the command line.\n"
  2438. #define modprobe_example_usage \
  2439. "(with the above /etc/modules.conf):\n\n" \
  2440. "$ modprobe tulip\n" \
  2441. " will load the module 'tulip' with default option 'irq=3'\n\n" \
  2442. "$ modprobe tulip irq=5\n" \
  2443. " will load the module 'tulip' with option 'irq=5', thus overriding the default\n\n" \
  2444. "$ modprobe tulip2\n" \
  2445. " will load the module 'tulip' with default options 'irq=4 io=0x308',\n" \
  2446. " which are the default for alias 'tulip2'\n\n" \
  2447. "$ modprobe tulip2 irq=8\n" \
  2448. " will load the module 'tulip' with default options 'irq=4 io=0x308 irq=8',\n" \
  2449. " which are the default for alias 'tulip2' overridden by the option 'irq=8'\n\n" \
  2450. " from the command line\n\n" \
  2451. "$ modprobe tulip2 irq=2 io=0x210\n" \
  2452. " will load the module 'tulip' with default options 'irq=4 io=0x308 irq=4 io=0x210',\n" \
  2453. " which are the default for alias 'tulip2' overridden by the options 'irq=2 io=0x210'\n\n" \
  2454. " from the command line\n"
  2455. #define more_trivial_usage \
  2456. "[FILE...]"
  2457. #define more_full_usage "\n\n" \
  2458. "View FILE or standard input one screenful at a time"
  2459. #define more_example_usage \
  2460. "$ dmesg | more\n"
  2461. #define mount_trivial_usage \
  2462. "[flags] DEVICE NODE [-o options,more-options]"
  2463. #define mount_full_usage "\n\n" \
  2464. "Mount a filesystem. Filesystem autodetection requires /proc be mounted.\n" \
  2465. "\nOptions:" \
  2466. "\n -a Mount all filesystems in fstab" \
  2467. USE_FEATURE_MOUNT_FAKE( \
  2468. "\n -f "USE_FEATURE_MTAB_SUPPORT("Update /etc/mtab, but ")"don't mount" \
  2469. ) \
  2470. USE_FEATURE_MTAB_SUPPORT( \
  2471. "\n -n Don't update /etc/mtab" \
  2472. ) \
  2473. "\n -r Read-only mount" \
  2474. "\n -t fs-type Filesystem type" \
  2475. "\n -w Read-write mount (default)" \
  2476. "\n" \
  2477. "-o option:\n" \
  2478. USE_FEATURE_MOUNT_LOOP( \
  2479. " loop Ignored (loop devices are autodetected)\n" \
  2480. ) \
  2481. USE_FEATURE_MOUNT_FLAGS( \
  2482. " [a]sync Writes are asynchronous / synchronous\n" \
  2483. " [no]atime Disable / enable updates to inode access times\n" \
  2484. " [no]diratime Disable / enable atime updates to directories\n" \
  2485. " [no]relatime Disable / enable atime updates relative to modification time\n" \
  2486. " [no]dev Allow use of special device files / disallow them\n" \
  2487. " [no]exec Allow use of executable files / disallow them\n" \
  2488. " [no]suid Allow set-user-id-root programs / disallow them\n" \
  2489. " [r]shared Convert [recursively] to a shared subtree\n" \
  2490. " [r]slave Convert [recursively] to a slave subtree\n" \
  2491. " [r]private Convert [recursively] to a private subtree\n" \
  2492. " [un]bindable Make mount point [un]able to be bind mounted\n" \
  2493. " bind Bind a directory to an additional location\n" \
  2494. " move Relocate an existing mount point\n" \
  2495. ) \
  2496. " remount Remount a mounted filesystem, changing its flags\n" \
  2497. " ro/rw Mount for read-only / read-write\n" \
  2498. "\n" \
  2499. "There are EVEN MORE flags that are specific to each filesystem\n" \
  2500. "You'll have to see the written documentation for those filesystems" \
  2501. #define mount_example_usage \
  2502. "$ mount\n" \
  2503. "/dev/hda3 on / type minix (rw)\n" \
  2504. "proc on /proc type proc (rw)\n" \
  2505. "devpts on /dev/pts type devpts (rw)\n" \
  2506. "$ mount /dev/fd0 /mnt -t msdos -o ro\n" \
  2507. "$ mount /tmp/diskimage /opt -t ext2 -o loop\n" \
  2508. "$ mount cd_image.iso mydir\n"
  2509. #define mount_notes_usage \
  2510. "Returns 0 for success, number of failed mounts for -a, or errno for one mount."
  2511. #define mountpoint_trivial_usage \
  2512. "[-q] <[-d] DIR | -x DEVICE>"
  2513. #define mountpoint_full_usage "\n\n" \
  2514. "mountpoint checks if the directory is a mountpoint\n" \
  2515. "\nOptions:" \
  2516. "\n -q Quiet" \
  2517. "\n -d Print major/minor device number of the filesystem" \
  2518. "\n -x Print major/minor device number of the blockdevice" \
  2519. #define mountpoint_example_usage \
  2520. "$ mountpoint /proc\n" \
  2521. "/proc is not a mountpoint\n" \
  2522. "$ mountpoint /sys\n" \
  2523. "/sys is a mountpoint\n"
  2524. #define mt_trivial_usage \
  2525. "[-f device] opcode value"
  2526. #define mt_full_usage "\n\n" \
  2527. "Control magnetic tape drive operation\n" \
  2528. "\n" \
  2529. "Available Opcodes:\n" \
  2530. "\n" \
  2531. "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n" \
  2532. "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n" \
  2533. "ras3 reset retension rewind rewoffline seek setblk setdensity\n" \
  2534. "setpart tell unload unlock weof wset" \
  2535. #define mv_trivial_usage \
  2536. "[OPTION]... SOURCE DEST\n" \
  2537. "or: mv [OPTION]... SOURCE... DIRECTORY"
  2538. #define mv_full_usage "\n\n" \
  2539. "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY\n" \
  2540. "\nOptions:" \
  2541. "\n -f Don't prompt before overwriting" \
  2542. "\n -i Interactive, prompt before overwrite" \
  2543. #define mv_example_usage \
  2544. "$ mv /tmp/foo /bin/bar\n"
  2545. #define nameif_trivial_usage \
  2546. "[-s] [-c FILE] [{IFNAME MACADDR}]"
  2547. #define nameif_full_usage "\n\n" \
  2548. "Rename network interface while it in the down state\n" \
  2549. "\nOptions:" \
  2550. "\n -c FILE Use configuration file (default is /etc/mactab)" \
  2551. "\n -s Use syslog (LOCAL0 facility)" \
  2552. "\n IFNAME MACADDR new_interface_name interface_mac_address" \
  2553. #define nameif_example_usage \
  2554. "$ nameif -s dmz0 00:A0:C9:8C:F6:3F\n" \
  2555. " or\n" \
  2556. "$ nameif -c /etc/my_mactab_file\n" \
  2557. #if !ENABLE_DESKTOP
  2558. #if ENABLE_NC_SERVER || ENABLE_NC_EXTRA
  2559. #define NC_OPTIONS_STR "\n\nOptions:"
  2560. #else
  2561. #define NC_OPTIONS_STR
  2562. #endif
  2563. #define nc_trivial_usage \
  2564. USE_NC_EXTRA("[-iN] [-wN] ")USE_NC_SERVER("[-l] [-p PORT] ") \
  2565. "["USE_NC_EXTRA("-f FILENAME|")"IPADDR PORTNUM]"USE_NC_EXTRA(" [-e COMMAND]")
  2566. #define nc_full_usage "\n\n" \
  2567. "Open a pipe to IP:port" USE_NC_EXTRA(" or file") \
  2568. NC_OPTIONS_STR \
  2569. USE_NC_EXTRA( \
  2570. "\n -e Exec rest of command line after connect" \
  2571. "\n -i SECS Delay interval for lines sent" \
  2572. "\n -w SECS Timeout for connect" \
  2573. "\n -f FILE Use file (ala /dev/ttyS0) instead of network" \
  2574. ) \
  2575. USE_NC_SERVER( \
  2576. "\n -l Listen mode, for inbound connects" \
  2577. USE_NC_EXTRA( \
  2578. "\n (use -l twice with -e for persistent server)") \
  2579. "\n -p PORT Local port number" \
  2580. )
  2581. #define nc_notes_usage "" \
  2582. USE_NC_EXTRA( \
  2583. "To use netcat as a terminal emulator on a serial port:\n\n" \
  2584. "$ stty 115200 -F /dev/ttyS0\n" \
  2585. "$ stty raw -echo -ctlecho && nc -f /dev/ttyS0\n" \
  2586. )
  2587. #define nc_example_usage \
  2588. "$ nc foobar.somedomain.com 25\n" \
  2589. "220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600\n" \
  2590. "help\n" \
  2591. "214-Commands supported:\n" \
  2592. "214- HELO EHLO MAIL RCPT DATA AUTH\n" \
  2593. "214 NOOP QUIT RSET HELP\n" \
  2594. "quit\n" \
  2595. "221 foobar closing connection\n"
  2596. #else /* DESKTOP nc - much more compatible with nc 1.10 */
  2597. #define nc_trivial_usage \
  2598. "[-options] hostname port - connect" \
  2599. USE_NC_SERVER("\n" \
  2600. "nc [-options] -l -p port [hostname] [port] - listen")
  2601. #define nc_full_usage "\n\n" \
  2602. "Options:" \
  2603. "\n -e prog [args] Program to exec after connect (must be last)" \
  2604. USE_NC_SERVER( \
  2605. "\n -l Listen mode, for inbound connects" \
  2606. ) \
  2607. "\n -n Don't do DNS resolution" \
  2608. "\n -s addr Local address" \
  2609. "\n -p port Local port" \
  2610. "\n -u UDP mode" \
  2611. "\n -v Verbose (cumulative: -vv)" \
  2612. "\n -w secs Timeout for connects and final net reads" \
  2613. USE_NC_EXTRA( \
  2614. "\n -i sec Delay interval for lines sent" /* ", ports scanned" */ \
  2615. "\n -o file Hex dump of traffic" \
  2616. "\n -z Zero-I/O mode (scanning)" \
  2617. ) \
  2618. /* "\n -r Randomize local and remote ports" */
  2619. /* "\n -g gateway Source-routing hop point[s], up to 8" */
  2620. /* "\n -G num Source-routing pointer: 4, 8, 12, ..." */
  2621. /* "\nport numbers can be individual or ranges: lo-hi [inclusive]" */
  2622. #endif
  2623. #define netstat_trivial_usage \
  2624. "[-laentuwxr"USE_FEATURE_NETSTAT_WIDE("W")USE_FEATURE_NETSTAT_PRG("p")"]"
  2625. #define netstat_full_usage "\n\n" \
  2626. "Display networking information\n" \
  2627. "\nOptions:" \
  2628. "\n -l Display listening server sockets" \
  2629. "\n -a Display all sockets (default: connected)" \
  2630. "\n -e Display other/more information" \
  2631. "\n -n Don't resolve names" \
  2632. "\n -t Tcp sockets" \
  2633. "\n -u Udp sockets" \
  2634. "\n -w Raw sockets" \
  2635. "\n -x Unix sockets" \
  2636. "\n -r Display routing table" \
  2637. USE_FEATURE_NETSTAT_WIDE( \
  2638. "\n -W Display with no column truncation" \
  2639. ) \
  2640. USE_FEATURE_NETSTAT_PRG( \
  2641. "\n -p Display PID/Program name for sockets" \
  2642. )
  2643. #define nice_trivial_usage \
  2644. "[-n ADJUST] [COMMAND [ARG]...]"
  2645. #define nice_full_usage "\n\n" \
  2646. "Run a program with modified scheduling priority\n" \
  2647. "\nOptions:" \
  2648. "\n -n ADJUST Adjust the scheduling priority by ADJUST" \
  2649. #define nmeter_trivial_usage \
  2650. "format_string"
  2651. #define nmeter_full_usage "\n\n" \
  2652. "Monitor system in real time\n\n" \
  2653. "Format specifiers:\n" \
  2654. "%Nc or %[cN] Monitor CPU. N - bar size, default 10\n" \
  2655. " (displays: S:system U:user N:niced D:iowait I:irq i:softirq)\n" \
  2656. "%[niface] Monitor network interface 'iface'\n" \
  2657. "%m Monitor allocated memory\n" \
  2658. "%[mf] Monitor free memory\n" \
  2659. "%[mt] Monitor total memory\n" \
  2660. "%s Monitor allocated swap\n" \
  2661. "%f Monitor number of used file descriptors\n" \
  2662. "%Ni Monitor total/specific IRQ rate\n" \
  2663. "%x Monitor context switch rate\n" \
  2664. "%p Monitor forks\n" \
  2665. "%[pn] Monitor # of processes\n" \
  2666. "%b Monitor block io\n" \
  2667. "%Nt Show time (with N decimal points)\n" \
  2668. "%Nd Milliseconds between updates (default=1000)\n" \
  2669. "%r Print <cr> instead of <lf> at EOL" \
  2670. #define nmeter_example_usage \
  2671. "nmeter '%250d%t %20c int %i bio %b mem %m forks%p'"
  2672. #define nohup_trivial_usage \
  2673. "COMMAND [ARGS]"
  2674. #define nohup_full_usage "\n\n" \
  2675. "Run a command immune to hangups, with output to a non-tty"
  2676. #define nohup_example_usage \
  2677. "$ nohup make &"
  2678. #define nslookup_trivial_usage \
  2679. "[HOST] [SERVER]"
  2680. #define nslookup_full_usage "\n\n" \
  2681. "Query the nameserver for the IP address of the given HOST\n" \
  2682. "optionally using a specified DNS server"
  2683. #define nslookup_example_usage \
  2684. "$ nslookup localhost\n" \
  2685. "Server: default\n" \
  2686. "Address: default\n" \
  2687. "\n" \
  2688. "Name: debian\n" \
  2689. "Address: 127.0.0.1\n"
  2690. #define od_trivial_usage \
  2691. "[-aBbcDdeFfHhIiLlOovXx] " USE_DESKTOP("[-t TYPE] ") "[FILE]"
  2692. #define od_full_usage "\n\n" \
  2693. "Write an unambiguous representation, octal bytes by default, of FILE\n" \
  2694. "to standard output. With no FILE or when FILE is -, read standard input."
  2695. #define openvt_trivial_usage \
  2696. "[-c NUM] [-sw] [COMMAND [ARGS]]"
  2697. #define openvt_full_usage "\n\n" \
  2698. "Start COMMAND on a new virtual terminal\n" \
  2699. "\nOptions:" \
  2700. "\n -c Use specified VT" \
  2701. "\n -s Switch to the VT" \
  2702. /* "\n -l Run COMMAND as login shell (by prepending '-')" */ \
  2703. "\n -w Wait for COMMAND to exit" \
  2704. #define openvt_example_usage \
  2705. "openvt 2 /bin/ash\n"
  2706. #define parse_trivial_usage \
  2707. "[-n maxtokens] [-m mintokens] [-d delims] [-f flags] file ..."
  2708. #define parse_full_usage "\n\n" \
  2709. "[-n maxtokens] [-m mintokens] [-d delims] [-f flags] file ..."
  2710. #define passwd_trivial_usage \
  2711. "[OPTION] [name]"
  2712. #define passwd_full_usage "\n\n" \
  2713. "Change user's password. If no name is specified,\n" \
  2714. "changes the password for the current user.\n" \
  2715. "\nOptions:" \
  2716. "\n -a Algorithm to use for password (choices: des, md5)" /* ", sha1)" */ \
  2717. "\n -d Delete password for the account" \
  2718. "\n -l Lock (disable) account" \
  2719. "\n -u Unlock (re-enable) account" \
  2720. #define chpasswd_trivial_usage \
  2721. USE_GETOPT_LONG("[--md5|--encrypted]") SKIP_GETOPT_LONG("[-m|-e]")
  2722. #define chpasswd_full_usage "\n\n" \
  2723. "Read user:password information from stdin " \
  2724. "and update /etc/passwd accordingly.\n" \
  2725. "\nOptions:" \
  2726. USE_GETOPT_LONG( \
  2727. "\n -e,--encrypted Supplied passwords are in encrypted form" \
  2728. "\n -m,--md5 Use MD5 encryption instead of DES" \
  2729. ) \
  2730. SKIP_GETOPT_LONG( \
  2731. "\n -e Supplied passwords are in encrypted form" \
  2732. "\n -m Use MD5 encryption instead of DES" \
  2733. )
  2734. #define patch_trivial_usage \
  2735. "[-p NUM] [-i DIFF] [-R]"
  2736. #define patch_full_usage "\n\n" \
  2737. " -p NUM Strip NUM leading components from file names" \
  2738. "\n -i DIFF Read DIFF instead of stdin" \
  2739. "\n -R Reverse patch" \
  2740. #define patch_example_usage \
  2741. "$ patch -p1 < example.diff\n" \
  2742. "$ patch -p0 -i example.diff"
  2743. #define pgrep_trivial_usage \
  2744. "[-flnovx] pattern"
  2745. #define pgrep_full_usage "\n\n" \
  2746. "Display process(es) selected by regex pattern\n" \
  2747. "\nOptions:" \
  2748. "\n -l Show command name too" \
  2749. "\n -f Match against entire command line" \
  2750. "\n -n Show the newest process only" \
  2751. "\n -o Show the oldest process only" \
  2752. "\n -v Negate the matching" \
  2753. "\n -x Match whole name (not substring)" \
  2754. #if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT)
  2755. #define pidof_trivial_usage \
  2756. "[OPTION] [NAME...]"
  2757. #define USAGE_PIDOF "\n\nOptions:"
  2758. #else
  2759. #define pidof_trivial_usage \
  2760. "[NAME...]"
  2761. #define USAGE_PIDOF /* none */
  2762. #endif
  2763. #define pidof_full_usage "\n\n" \
  2764. "List PIDs of all processes with names that match NAMEs" \
  2765. USAGE_PIDOF \
  2766. USE_FEATURE_PIDOF_SINGLE( \
  2767. "\n -s Show only one PID") \
  2768. USE_FEATURE_PIDOF_OMIT( \
  2769. "\n -o PID Omit given pid" \
  2770. "\n Use %PPID to omit pid of pidof's parent") \
  2771. #define pidof_example_usage \
  2772. "$ pidof init\n" \
  2773. "1\n" \
  2774. USE_FEATURE_PIDOF_OMIT( \
  2775. "$ pidof /bin/sh\n20351 5973 5950\n") \
  2776. USE_FEATURE_PIDOF_OMIT( \
  2777. "$ pidof /bin/sh -o %PPID\n20351 5950")
  2778. #if !ENABLE_FEATURE_FANCY_PING
  2779. #define ping_trivial_usage \
  2780. "host"
  2781. #define ping_full_usage "\n\n" \
  2782. "Send ICMP ECHO_REQUEST packets to network hosts"
  2783. #define ping6_trivial_usage \
  2784. "host"
  2785. #define ping6_full_usage "\n\n" \
  2786. "Send ICMP ECHO_REQUEST packets to network hosts"
  2787. #else
  2788. #define ping_trivial_usage \
  2789. "[OPTION]... host"
  2790. #define ping_full_usage "\n\n" \
  2791. "Send ICMP ECHO_REQUEST packets to network hosts\n" \
  2792. "\nOptions:" \
  2793. "\n -4, -6 Force IPv4 or IPv6 hostname resolution" \
  2794. "\n -c CNT Send only CNT pings" \
  2795. "\n -s SIZE Send SIZE data bytes in packets (default=56)" \
  2796. "\n -I iface/IP Use interface or IP address as source" \
  2797. "\n -W timeout Seconds to wait for the first response (default:10)" \
  2798. "\n (after all -c CNT packets are sent)" \
  2799. "\n -w deadline Seconds until ping exits (default:infinite)" \
  2800. "\n (can exit earlier with -c CNT)" \
  2801. "\n -q Quiet, only displays output at start" \
  2802. "\n and when finished" \
  2803. #define ping6_trivial_usage \
  2804. "[OPTION]... host"
  2805. #define ping6_full_usage "\n\n" \
  2806. "Send ICMP ECHO_REQUEST packets to network hosts\n" \
  2807. "\nOptions:" \
  2808. "\n -c CNT Send only CNT pings" \
  2809. "\n -s SIZE Send SIZE data bytes in packets (default=56)" \
  2810. "\n -I iface/IP Use interface or IP address as source" \
  2811. "\n -q Quiet, only displays output at start" \
  2812. "\n and when finished" \
  2813. #endif
  2814. #define ping_example_usage \
  2815. "$ ping localhost\n" \
  2816. "PING slag (127.0.0.1): 56 data bytes\n" \
  2817. "64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms\n" \
  2818. "\n" \
  2819. "--- debian ping statistics ---\n" \
  2820. "1 packets transmitted, 1 packets received, 0% packet loss\n" \
  2821. "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
  2822. #define ping6_example_usage \
  2823. "$ ping6 ip6-localhost\n" \
  2824. "PING ip6-localhost (::1): 56 data bytes\n" \
  2825. "64 bytes from ::1: icmp6_seq=0 ttl=64 time=20.1 ms\n" \
  2826. "\n" \
  2827. "--- ip6-localhost ping statistics ---\n" \
  2828. "1 packets transmitted, 1 packets received, 0% packet loss\n" \
  2829. "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
  2830. #define pipe_progress_trivial_usage NOUSAGE_STR
  2831. #define pipe_progress_full_usage ""
  2832. #define pivot_root_trivial_usage \
  2833. "NEW_ROOT PUT_OLD"
  2834. #define pivot_root_full_usage "\n\n" \
  2835. "Move the current root file system to PUT_OLD and make NEW_ROOT\n" \
  2836. "the new root file system"
  2837. #define pkill_trivial_usage \
  2838. "[-l] | [-fnovx] [-signal] pattern"
  2839. #define pkill_full_usage "\n\n" \
  2840. "Send a signal to process(es) selected by regex pattern\n" \
  2841. "\nOptions:" \
  2842. "\n -l List all signals" \
  2843. "\n -f Match against entire command line" \
  2844. "\n -n Signal the newest process only" \
  2845. "\n -o Signal the oldest process only" \
  2846. "\n -v Negate the matching" \
  2847. "\n -x Match whole name (not substring)" \
  2848. #define popmaildir_trivial_usage \
  2849. "[OPTIONS] Maildir [connection-helper ...]"
  2850. #define popmaildir_full_usage "\n\n" \
  2851. "Fetch content of remote mailbox to local maildir\n" \
  2852. "\nOptions:" \
  2853. "\n -b Binary mode. Ignored" \
  2854. "\n -d Debug. Ignored" \
  2855. "\n -m Show used memory. Ignored" \
  2856. "\n -V Show version. Ignored" \
  2857. "\n -c Use tcpclient. Ignored" \
  2858. "\n -a Use APOP protocol. Implied. If server supports APOP -> use it" \
  2859. "\n -s Skip authorization" \
  2860. "\n -T Get messages with TOP instead with RETR" \
  2861. "\n -k Keep retrieved messages on the server" \
  2862. "\n -t timeout Set network timeout" \
  2863. USE_FEATURE_POPMAILDIR_DELIVERY( \
  2864. "\n -F \"program arg1 arg2 ...\" Filter by program. May be multiple" \
  2865. "\n -M \"program arg1 arg2 ...\" Deliver by program" \
  2866. ) \
  2867. "\n -R size Remove old messages on the server >= size (in bytes). Ignored" \
  2868. "\n -Z N1-N2 Remove messages from N1 to N2 (dangerous). Ignored" \
  2869. "\n -L size Do not retrieve new messages >= size (in bytes). Ignored" \
  2870. "\n -H lines Type specified number of lines of a message. Ignored"
  2871. #define popmaildir_example_usage \
  2872. "$ popmaildir -k ~/Maildir -- nc pop.drvv.ru 110 [<password_file]\n" \
  2873. "$ popmaildir ~/Maildir -- openssl s_client -quiet -connect pop.gmail.com:995 [<password_file]\n"
  2874. #define poweroff_trivial_usage \
  2875. "[-d delay] [-n] [-f]"
  2876. #define poweroff_full_usage "\n\n" \
  2877. "Halt and shut off power\n" \
  2878. "\nOptions:" \
  2879. "\n -d Delay interval for halting" \
  2880. "\n -n No call to sync()" \
  2881. "\n -f Force power off (don't go through init)" \
  2882. #define printenv_trivial_usage \
  2883. "[VARIABLES...]"
  2884. #define printenv_full_usage "\n\n" \
  2885. "Print all or part of environment.\n" \
  2886. "If no environment VARIABLE specified, print them all."
  2887. #define printf_trivial_usage \
  2888. "FORMAT [ARGUMENT...]"
  2889. #define printf_full_usage "\n\n" \
  2890. "Format and print ARGUMENT(s) according to FORMAT,\n" \
  2891. "where FORMAT controls the output exactly as in C printf"
  2892. #define printf_example_usage \
  2893. "$ printf \"Val=%d\\n\" 5\n" \
  2894. "Val=5\n"
  2895. #if ENABLE_DESKTOP
  2896. #define ps_trivial_usage \
  2897. ""
  2898. #define ps_full_usage "\n\n" \
  2899. "Report process status\n" \
  2900. "\nOptions:" \
  2901. "\n -o col1,col2=header Select columns for display" \
  2902. #else /* !ENABLE_DESKTOP */
  2903. #if !ENABLE_SELINUX && !ENABLE_FEATURE_PS_WIDE
  2904. #define USAGE_PS "\nThis version of ps accepts no options"
  2905. #else
  2906. #define USAGE_PS "\nOptions:"
  2907. #endif
  2908. #define ps_trivial_usage \
  2909. ""
  2910. #define ps_full_usage "\n\n" \
  2911. "Report process status\n" \
  2912. USAGE_PS \
  2913. USE_SELINUX( \
  2914. "\n -Z Show SE Linux context" \
  2915. ) \
  2916. USE_FEATURE_PS_WIDE( \
  2917. "\n w Wide output" \
  2918. )
  2919. #endif /* ENABLE_DESKTOP */
  2920. #define ps_example_usage \
  2921. "$ ps\n" \
  2922. " PID Uid Gid State Command\n" \
  2923. " 1 root root S init\n" \
  2924. " 2 root root S [kflushd]\n" \
  2925. " 3 root root S [kupdate]\n" \
  2926. " 4 root root S [kpiod]\n" \
  2927. " 5 root root S [kswapd]\n" \
  2928. " 742 andersen andersen S [bash]\n" \
  2929. " 743 andersen andersen S -bash\n" \
  2930. " 745 root root S [getty]\n" \
  2931. " 2990 andersen andersen R ps\n" \
  2932. #define pscan_trivial_usage \
  2933. "[-cb] [-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST"
  2934. #define pscan_full_usage "\n\n" \
  2935. "Scan a host, print all open ports\n" \
  2936. "\nOptions:" \
  2937. "\n -c Show closed ports too" \
  2938. "\n -b Show blocked ports too" \
  2939. "\n -p Scan from this port (default 1)" \
  2940. "\n -P Scan up to this port (default 1024)" \
  2941. "\n -t Timeout (default 5000 ms)" \
  2942. "\n -T Minimum rtt (default 5 ms, increase for congested hosts)" \
  2943. #define pwd_trivial_usage \
  2944. ""
  2945. #define pwd_full_usage "\n\n" \
  2946. "Print the full filename of the current working directory"
  2947. #define pwd_example_usage \
  2948. "$ pwd\n" \
  2949. "/root\n"
  2950. #define raidautorun_trivial_usage \
  2951. "DEVICE"
  2952. #define raidautorun_full_usage "\n\n" \
  2953. "Tell the kernel to automatically search and start RAID arrays"
  2954. #define raidautorun_example_usage \
  2955. "$ raidautorun /dev/md0"
  2956. #define rdate_trivial_usage \
  2957. "[-sp] HOST"
  2958. #define rdate_full_usage "\n\n" \
  2959. "Get and possibly set the system date and time from a remote HOST\n" \
  2960. "\nOptions:" \
  2961. "\n -s Set the system date and time (default)" \
  2962. "\n -p Print the date and time" \
  2963. #define rdev_trivial_usage \
  2964. ""
  2965. #define rdev_full_usage "\n\n" \
  2966. "Print the device node associated with the filesystem mounted at '/'"
  2967. #define rdev_example_usage \
  2968. "$ rdev\n" \
  2969. "/dev/mtdblock9 /\n"
  2970. #define readahead_trivial_usage \
  2971. "[FILE]..."
  2972. #define readahead_full_usage "\n\n" \
  2973. "Preload FILE(s) in RAM cache so that subsequent reads for those" \
  2974. "files do not block on disk I/O"
  2975. #define readlink_trivial_usage \
  2976. USE_FEATURE_READLINK_FOLLOW("[-f] ") "FILE"
  2977. #define readlink_full_usage "\n\n" \
  2978. "Display the value of a symlink" \
  2979. USE_FEATURE_READLINK_FOLLOW( "\n" \
  2980. "\nOptions:" \
  2981. "\n -f Canonicalize by following all symlinks") \
  2982. #define readprofile_trivial_usage \
  2983. "[OPTIONS]..."
  2984. #define readprofile_full_usage "\n\n" \
  2985. "Options:" \
  2986. "\n -m mapfile (Default: /boot/System.map)" \
  2987. "\n -p profile (Default: /proc/profile)" \
  2988. "\n -M mult Set the profiling multiplier to mult" \
  2989. "\n -i Print only info about the sampling step" \
  2990. "\n -v Verbose" \
  2991. "\n -a Print all symbols, even if count is 0" \
  2992. "\n -b Print individual histogram-bin counts" \
  2993. "\n -s Print individual counters within functions" \
  2994. "\n -r Reset all the counters (root only)" \
  2995. "\n -n Disable byte order auto-detection" \
  2996. #define realpath_trivial_usage \
  2997. "pathname..."
  2998. #define realpath_full_usage "\n\n" \
  2999. "Return the absolute pathnames of given argument"
  3000. #define reboot_trivial_usage \
  3001. "[-d delay] [-n] [-f]"
  3002. #define reboot_full_usage "\n\n" \
  3003. "Reboot the system\n" \
  3004. "\nOptions:" \
  3005. "\n -d Delay interval for rebooting" \
  3006. "\n -n No call to sync()" \
  3007. "\n -f Force reboot (don't go through init)" \
  3008. #define reformime_trivial_usage \
  3009. "[OPTION]... [FILE]..."
  3010. #define reformime_full_usage "\n\n" \
  3011. "Parse MIME-encoded message\n" \
  3012. "\nOptions:" \
  3013. "\n -x prefix Extract content of MIME sections to files" \
  3014. "\n -X prog [args] Filter content of MIME sections through prog." \
  3015. "\n Must be the last option" \
  3016. "\n" \
  3017. "\nOther options are silently ignored." \
  3018. #define renice_trivial_usage \
  3019. "{{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...]"
  3020. #define renice_full_usage "\n\n" \
  3021. "Change priority of running processes\n" \
  3022. "\nOptions:" \
  3023. "\n -n Adjust current nice value (smaller is faster)" \
  3024. "\n -p Process id(s) (default)" \
  3025. "\n -g Process group id(s)" \
  3026. "\n -u Process user name(s) and/or id(s)" \
  3027. #define reset_trivial_usage \
  3028. ""
  3029. #define reset_full_usage "\n\n" \
  3030. "Reset the screen"
  3031. #define resize_trivial_usage \
  3032. ""
  3033. #define resize_full_usage "\n\n" \
  3034. "Resize the screen"
  3035. #define restorecon_trivial_usage \
  3036. "[-iFnrRv] [-e excludedir]... [-o filename] [-f filename | pathname]"
  3037. #define restorecon_full_usage "\n\n" \
  3038. "Reset security contexts of files in pathname\n" \
  3039. "\n -i Ignore files that do not exist" \
  3040. "\n -f file File with list of files to process. Use - for stdin" \
  3041. "\n -e directory Directory to exclude" \
  3042. "\n -R,-r Recurse directories" \
  3043. "\n -n Don't change any file labels" \
  3044. "\n -o file Save list of files with incorrect context" \
  3045. "\n -v Verbose" \
  3046. "\n -vv Show changed labels" \
  3047. "\n -F Force reset of context to match file_context" \
  3048. "\n for customizable files, or the user section," \
  3049. "\n if it has changed" \
  3050. #define rm_trivial_usage \
  3051. "[OPTION]... FILE..."
  3052. #define rm_full_usage "\n\n" \
  3053. "Remove (unlink) the FILE(s). Use '--' to\n" \
  3054. "indicate that all following arguments are non-options.\n" \
  3055. "\nOptions:" \
  3056. "\n -i Always prompt before removing" \
  3057. "\n -f Never prompt" \
  3058. "\n -r,-R Remove directories recursively" \
  3059. #define rm_example_usage \
  3060. "$ rm -rf /tmp/foo\n"
  3061. #define rmdir_trivial_usage \
  3062. "[OPTION]... DIRECTORY..."
  3063. #define rmdir_full_usage "\n\n" \
  3064. "Remove the DIRECTORY, if it is empty.\n" \
  3065. "\nOptions:" \
  3066. USE_FEATURE_RMDIR_LONG_OPTIONS( \
  3067. "\n -p|--parents Include parents" \
  3068. "\n -ignore-fail-on-non-empty" \
  3069. ) \
  3070. SKIP_FEATURE_RMDIR_LONG_OPTIONS( \
  3071. "\n -p Include parents" \
  3072. )
  3073. #define rmdir_example_usage \
  3074. "# rmdir /tmp/foo\n"
  3075. #define rmmod_trivial_usage \
  3076. "[OPTION]... [MODULE]..."
  3077. #define rmmod_full_usage "\n\n" \
  3078. "Unload the specified kernel modules from the kernel\n" \
  3079. "\nOptions:" \
  3080. "\n -w Wait until the module is no longer used" \
  3081. "\n -f Force unloading" \
  3082. "\n -a Remove all unused modules (recursively)" \
  3083. #define rmmod_example_usage \
  3084. "$ rmmod tulip\n"
  3085. #define route_trivial_usage \
  3086. "[{add|del|delete}]"
  3087. #define route_full_usage "\n\n" \
  3088. "Edit kernel routing tables\n" \
  3089. "\nOptions:" \
  3090. "\n -n Don't resolve names" \
  3091. "\n -e Display other/more information" \
  3092. "\n -A inet" USE_FEATURE_IPV6("{6}") " Select address family" \
  3093. #define rpm_trivial_usage \
  3094. "-i -q[ildc]p package.rpm"
  3095. #define rpm_full_usage "\n\n" \
  3096. "Manipulate RPM packages\n" \
  3097. "\nOptions:" \
  3098. "\n -i Install package" \
  3099. "\n -q Query package" \
  3100. "\n -p Query uninstalled package" \
  3101. "\n -i Show information" \
  3102. "\n -l List contents" \
  3103. "\n -d List documents" \
  3104. "\n -c List config files" \
  3105. #define rpm2cpio_trivial_usage \
  3106. "package.rpm"
  3107. #define rpm2cpio_full_usage "\n\n" \
  3108. "Output a cpio archive of the rpm file"
  3109. #define rtcwake_trivial_usage \
  3110. "[-a | -l | -u] [-d DEV] [-m MODE] [-s SECS | -t TIME]"
  3111. #define rtcwake_full_usage "\n\n" \
  3112. "Enter a system sleep state until specified wakeup time\n" \
  3113. USE_GETOPT_LONG( \
  3114. "\n -a,--auto Read clock mode from adjtime" \
  3115. "\n -l,--local Clock is set to local time" \
  3116. "\n -u,--utc Clock is set to UTC time" \
  3117. "\n -d,--device=DEV Specify the RTC device" \
  3118. "\n -m,--mode=MODE Set the sleep state (default: standby)" \
  3119. "\n -s,--seconds=SEC Set the timeout in SEC seconds from now" \
  3120. "\n -t,--time=TIME Set the timeout to TIME seconds from epoch" \
  3121. ) \
  3122. SKIP_GETOPT_LONG( \
  3123. "\n -a Read clock mode from adjtime" \
  3124. "\n -l Clock is set to local time" \
  3125. "\n -u Clock is set to UTC time" \
  3126. "\n -d DEV Specify the RTC device" \
  3127. "\n -m MODE Set the sleep state (default: standby)" \
  3128. "\n -s SEC Set the timeout in SEC seconds from now" \
  3129. "\n -t TIME Set the timeout to TIME seconds from epoch" \
  3130. )
  3131. #define runcon_trivial_usage \
  3132. "[-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]\n" \
  3133. " runcon CONTEXT COMMAND [args]"
  3134. #define runcon_full_usage "\n\n" \
  3135. "Run a program in a different security context\n" \
  3136. "\n CONTEXT Complete security context\n" \
  3137. USE_FEATURE_RUNCON_LONG_OPTIONS( \
  3138. "\n -c,--compute Compute process transition context before modifying" \
  3139. "\n -t,--type=TYPE Type (for same role as parent)" \
  3140. "\n -u,--user=USER User identity" \
  3141. "\n -r,--role=ROLE Role" \
  3142. "\n -l,--range=RNG Levelrange" \
  3143. ) \
  3144. SKIP_FEATURE_RUNCON_LONG_OPTIONS( \
  3145. "\n -c Compute process transition context before modifying" \
  3146. "\n -t TYPE Type (for same role as parent)" \
  3147. "\n -u USER User identity" \
  3148. "\n -r ROLE Role" \
  3149. "\n -l RNG Levelrange" \
  3150. )
  3151. #define run_parts_trivial_usage \
  3152. "[-t] "USE_FEATURE_RUN_PARTS_FANCY("[-l] ")"[-a ARG] [-u MASK] DIRECTORY"
  3153. #define run_parts_full_usage "\n\n" \
  3154. "Run a bunch of scripts in a directory\n" \
  3155. "\nOptions:" \
  3156. "\n -t Print what would be run, but don't actually run anything" \
  3157. "\n -a ARG Pass ARG as argument for every program" \
  3158. "\n -u MASK Set the umask to MASK before running every program" \
  3159. USE_FEATURE_RUN_PARTS_FANCY( \
  3160. "\n -l Print names of all matching files even if they are not executable" \
  3161. )
  3162. #define run_parts_example_usage \
  3163. "$ run-parts -a start /etc/init.d\n" \
  3164. "$ run-parts -a stop=now /etc/init.d\n\n" \
  3165. "Let's assume you have a script foo/dosomething:\n" \
  3166. "#!/bin/sh\n" \
  3167. "for i in $*; do eval $i; done; unset i\n" \
  3168. "case \"$1\" in\n" \
  3169. "start*) echo starting something;;\n" \
  3170. "stop*) set -x; shutdown -h $stop;;\n" \
  3171. "esac\n\n" \
  3172. "Running this yields:\n" \
  3173. "$run-parts -a stop=+4m foo/\n" \
  3174. "+ shutdown -h +4m"
  3175. #define runlevel_trivial_usage \
  3176. "[utmp]"
  3177. #define runlevel_full_usage "\n\n" \
  3178. "Find the current and previous system runlevel.\n\n" \
  3179. "If no utmp file exists or if no runlevel record can be found,\n" \
  3180. "print \"unknown\""
  3181. #define runlevel_example_usage \
  3182. "$ runlevel /var/run/utmp\n" \
  3183. "N 2"
  3184. #define runsv_trivial_usage \
  3185. "dir"
  3186. #define runsv_full_usage "\n\n" \
  3187. "Start and monitor a service and optionally an appendant log service"
  3188. #define runsvdir_trivial_usage \
  3189. "[-P] [-s SCRIPT] dir"
  3190. #define runsvdir_full_usage "\n\n" \
  3191. "Start a runsv process for each subdirectory. If it exits, restart it.\n" \
  3192. "\n -P Put each runsv in a new session" \
  3193. "\n -s SCRIPT Run SCRIPT <signo> after signal is processed" \
  3194. #define rx_trivial_usage \
  3195. "FILE"
  3196. #define rx_full_usage "\n\n" \
  3197. "Receive a file using the xmodem protocol"
  3198. #define rx_example_usage \
  3199. "$ rx /tmp/foo\n"
  3200. #define script_trivial_usage \
  3201. "[-afq] [-c COMMAND] [OUTFILE]"
  3202. #define script_full_usage "\n\n" \
  3203. "Options:" \
  3204. "\n -a Append output" \
  3205. "\n -c Run COMMAND, not shell" \
  3206. "\n -f Flush output after each write" \
  3207. "\n -q Quiet" \
  3208. #define sed_trivial_usage \
  3209. "[-efinr] pattern [files...]"
  3210. #define sed_full_usage "\n\n" \
  3211. "Options:" \
  3212. "\n -e script Add the script to the commands to be executed" \
  3213. "\n -f scriptfile Add scriptfile contents to the" \
  3214. "\n commands to be executed" \
  3215. "\n -i Edit files in-place" \
  3216. "\n -n Suppress automatic printing of pattern space" \
  3217. "\n -r Use extended regular expression syntax" \
  3218. "\n" \
  3219. "\nIf no -e or -f is given, the first non-option argument is taken as the sed" \
  3220. "\nscript to interpret. All remaining arguments are names of input files; if no" \
  3221. "\ninput files are specified, then the standard input is read. Source files" \
  3222. "\nwill not be modified unless -i option is given." \
  3223. #define sed_example_usage \
  3224. "$ echo \"foo\" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \
  3225. "bar\n"
  3226. #define selinuxenabled_trivial_usage NOUSAGE_STR
  3227. #define selinuxenabled_full_usage ""
  3228. #define sendmail_trivial_usage \
  3229. "[OPTIONS] [rcpt]..."
  3230. #define sendmail_full_usage "\n\n" \
  3231. "Send an email\n" \
  3232. "\nOptions:" \
  3233. "\n -w timeout Network timeout" \
  3234. "\n -H [user:pass@]server[:port] Server" \
  3235. "\n -S Use openssl connection helper for secure servers" \
  3236. "\n -N type Request delivery notification. Type is ignored" \
  3237. "\n -f sender Sender" \
  3238. "\n -F fullname Sender full name. Overrides $NAME" \
  3239. USE_FEATURE_SENDMAIL_MAILX( \
  3240. "\n -s subject Subject" \
  3241. "\n -j charset Assume charset for body and subject (" CONFIG_FEATURE_MIME_CHARSET ")" \
  3242. "\n -a file File to attach. May be multiple" \
  3243. "\n -H \"prog args...\" Use external connection helper. E.g. openssl for secure servers" \
  3244. "\n -S server[:port] Server" \
  3245. ) \
  3246. USE_FEATURE_SENDMAIL_MAILXX( \
  3247. "\n -c rcpt Cc: recipient. May be multiple" \
  3248. "\n -e rcpt Errors-To: recipient" \
  3249. )
  3250. "\n -t Read recipients and subject from body" \
  3251. "\n" \
  3252. "\nOther options are silently ignored; -oi is implied" \
  3253. #define seq_trivial_usage \
  3254. "[first [increment]] last"
  3255. #define seq_full_usage "\n\n" \
  3256. "Print numbers from FIRST to LAST, in steps of INCREMENT.\n" \
  3257. "FIRST, INCREMENT default to 1\n" \
  3258. "\nArguments:" \
  3259. "\n LAST" \
  3260. "\n FIRST LAST" \
  3261. "\n FIRST INCREMENT LAST" \
  3262. #define sestatus_trivial_usage \
  3263. "[-vb]"
  3264. #define sestatus_full_usage "\n\n" \
  3265. " -v Verbose" \
  3266. "\n -b Display current state of booleans" \
  3267. #define setconsole_trivial_usage \
  3268. "[-r" USE_FEATURE_SETCONSOLE_LONG_OPTIONS("|--reset") "] [DEVICE]"
  3269. #define setconsole_full_usage "\n\n" \
  3270. "Redirect system console output to DEVICE (default: /dev/tty)\n" \
  3271. "\nOptions:" \
  3272. "\n -r Reset output to /dev/console" \
  3273. #define setenforce_trivial_usage \
  3274. "[Enforcing | Permissive | 1 | 0]"
  3275. #define setenforce_full_usage ""
  3276. #define setfiles_trivial_usage \
  3277. "[-dnpqsvW] [-e dir]... [-o file] [-r alt_root_path]" \
  3278. USE_FEATURE_SETFILES_CHECK_OPTION( \
  3279. " [-c policyfile] spec_file" \
  3280. ) \
  3281. " pathname"
  3282. #define setfiles_full_usage "\n\n" \
  3283. "Reset file contexts under pathname according to spec_file\n" \
  3284. USE_FEATURE_SETFILES_CHECK_OPTION( \
  3285. "\n -c file Check the validity of the contexts against the specified binary policy" \
  3286. ) \
  3287. "\n -d Show which specification matched each file" \
  3288. "\n -l Log changes in file labels to syslog" \
  3289. "\n -n Don't change any file labels" \
  3290. "\n -q Suppress warnings" \
  3291. "\n -r dir Use an altenate root path" \
  3292. "\n -e dir Exclude directory" \
  3293. "\n -F Force reset of context to match file_context for customizable files" \
  3294. "\n -o file Save list of files with incorrect context" \
  3295. "\n -s Take a list of files from standard input (instead of command line)" \
  3296. "\n -v Show changes in file labels, if type or role are changing" \
  3297. "\n -vv Show changes in file labels, if type, role, or user are changing" \
  3298. "\n -W Display warnings about entries that had no matching files" \
  3299. #define setfont_trivial_usage \
  3300. "FONT [-m MAPFILE] [-C TTY]"
  3301. #define setfont_full_usage "\n\n" \
  3302. "Load a console font\n" \
  3303. "\nOptions:" \
  3304. "\n -m MAPFILE Load console screen map" \
  3305. "\n -C TTY Affect TTY instead of /dev/tty" \
  3306. #define setfont_example_usage \
  3307. "$ setfont -m koi8-r /etc/i18n/fontname\n"
  3308. #define setkeycodes_trivial_usage \
  3309. "SCANCODE KEYCODE..."
  3310. #define setkeycodes_full_usage "\n\n" \
  3311. "Set entries into the kernel's scancode-to-keycode map,\n" \
  3312. "allowing unusual keyboards to generate usable keycodes.\n\n" \
  3313. "SCANCODE may be either xx or e0xx (hexadecimal),\n" \
  3314. "and KEYCODE is given in decimal" \
  3315. #define setkeycodes_example_usage \
  3316. "$ setkeycodes e030 127\n"
  3317. #define setlogcons_trivial_usage \
  3318. "N"
  3319. #define setlogcons_full_usage "\n\n" \
  3320. "Redirect the kernel output to console N (0 for current)"
  3321. #define setsebool_trivial_usage \
  3322. "boolean value"
  3323. #define setsebool_full_usage "\n\n" \
  3324. "Change boolean setting"
  3325. #define setsid_trivial_usage \
  3326. "PROG [ARG...]"
  3327. #define setsid_full_usage "\n\n" \
  3328. "Run PROG in a new session. PROG will have no controlling terminal\n" \
  3329. "and will not be affected by keyboard signals (Ctrl-C etc).\n" \
  3330. "See setsid(2) for details." \
  3331. #define lash_trivial_usage \
  3332. "[FILE]...\n" \
  3333. "or: sh -c command [args]..."
  3334. #define lash_full_usage "\n\n" \
  3335. "lash is deprecated, please use hush"
  3336. #define last_trivial_usage \
  3337. ""USE_FEATURE_LAST_FANCY("[-HW] [-f file]")
  3338. #define last_full_usage "\n\n" \
  3339. "Show listing of the last users that logged into the system" \
  3340. USE_FEATURE_LAST_FANCY( "\n" \
  3341. "\nOptions:" \
  3342. /* "\n -H Show header line" */ \
  3343. "\n -W Display with no host column truncation" \
  3344. "\n -f file Read from file instead of /var/log/wtmp" \
  3345. )
  3346. #define sha1sum_trivial_usage \
  3347. "[OPTION] [FILEs...]" \
  3348. USE_FEATURE_MD5_SHA1_SUM_CHECK("\n or: sha1sum [OPTION] -c [FILE]")
  3349. #define sha1sum_full_usage "\n\n" \
  3350. "Print" USE_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA1 checksums." \
  3351. USE_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
  3352. "\nOptions:" \
  3353. "\n -c Check SHA1 sums against given list" \
  3354. "\n -s Don't output anything, status code shows success" \
  3355. "\n -w Warn about improperly formatted SHA1 checksum lines" \
  3356. )
  3357. #define showkey_trivial_usage \
  3358. "[-a | -k | -s]"
  3359. #define showkey_full_usage "\n\n" \
  3360. "Show keys pressed\n" \
  3361. "\nOptions:" \
  3362. "\n -a Display decimal/octal/hex values of the keys" \
  3363. "\n -k Display interpreted keycodes (default)" \
  3364. "\n -s Display raw scan-codes" \
  3365. #define slattach_trivial_usage \
  3366. "[-cehmLF] [-s speed] [-p protocol] DEVICEs"
  3367. #define slattach_full_usage "\n\n" \
  3368. "Attach network interface(s) to serial line(s)\n" \
  3369. "\nOptions:" \
  3370. "\n -p Set protocol (slip, cslip, slip6, clisp6 or adaptive)" \
  3371. "\n -s Set line speed" \
  3372. "\n -e Exit after initializing device" \
  3373. "\n -h Exit when the carrier is lost" \
  3374. "\n -c Execute a command when the line is hung up" \
  3375. "\n -m Do NOT initialize the line in raw 8 bits mode" \
  3376. "\n -L Enable 3-wire operation" \
  3377. "\n -F Disable RTS/CTS flow control" \
  3378. #define sleep_trivial_usage \
  3379. USE_FEATURE_FANCY_SLEEP("[") "N" USE_FEATURE_FANCY_SLEEP("]...")
  3380. #define sleep_full_usage "\n\n" \
  3381. SKIP_FEATURE_FANCY_SLEEP("Pause for N seconds") \
  3382. USE_FEATURE_FANCY_SLEEP( \
  3383. "Pause for a time equal to the total of the args given, where each arg can\n" \
  3384. "have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays")
  3385. #define sleep_example_usage \
  3386. "$ sleep 2\n" \
  3387. "[2 second delay results]\n" \
  3388. USE_FEATURE_FANCY_SLEEP( \
  3389. "$ sleep 1d 3h 22m 8s\n" \
  3390. "[98528 second delay results]\n")
  3391. #define sort_trivial_usage \
  3392. "[-nru" \
  3393. USE_FEATURE_SORT_BIG("gMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR") \
  3394. "] [FILE]..."
  3395. #define sort_full_usage "\n\n" \
  3396. "Sort lines of text\n" \
  3397. "\nOptions:" \
  3398. USE_FEATURE_SORT_BIG( \
  3399. "\n -b Ignore leading blanks" \
  3400. "\n -c Check whether input is sorted" \
  3401. "\n -d Dictionary order (blank or alphanumeric only)" \
  3402. "\n -f Ignore case" \
  3403. "\n -g General numerical sort" \
  3404. "\n -i Ignore unprintable characters" \
  3405. "\n -k Sort key" \
  3406. "\n -M Sort month" \
  3407. ) \
  3408. "\n -n Sort numbers" \
  3409. USE_FEATURE_SORT_BIG( \
  3410. "\n -o Output to file" \
  3411. "\n -k Sort by key" \
  3412. "\n -t CHAR Key separator" \
  3413. ) \
  3414. "\n -r Reverse sort order" \
  3415. USE_FEATURE_SORT_BIG( \
  3416. "\n -s Stable (don't sort ties alphabetically)" \
  3417. ) \
  3418. "\n -u Suppress duplicate lines" \
  3419. USE_FEATURE_SORT_BIG( \
  3420. "\n -z Lines are terminated by NUL, not newline" \
  3421. "\n -mST Ignored for GNU compatibility") \
  3422. #define sort_example_usage \
  3423. "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \
  3424. "a\n" \
  3425. "b\n" \
  3426. "c\n" \
  3427. "d\n" \
  3428. "e\n" \
  3429. "f\n" \
  3430. USE_FEATURE_SORT_BIG( \
  3431. "$ echo -e \"c 3\\nb 2\\nd 2\" | $SORT -k 2,2n -k 1,1r\n" \
  3432. "d 2\n" \
  3433. "b 2\n" \
  3434. "c 3\n" \
  3435. ) \
  3436. ""
  3437. #define split_trivial_usage \
  3438. "[OPTION] [INPUT [PREFIX]]"
  3439. #define split_full_usage "\n\n" \
  3440. "Options:" \
  3441. "\n -b n[k|m] Split by bytes" \
  3442. "\n -l n Split by lines" \
  3443. "\n -a n Use n letters as suffix" \
  3444. #define split_example_usage \
  3445. "$ split TODO foo\n" \
  3446. "$ cat TODO | split -a 2 -l 2 TODO_\n"
  3447. #define start_stop_daemon_trivial_usage \
  3448. "[OPTIONS] [-S|-K] ... [-- arguments...]"
  3449. #define start_stop_daemon_full_usage "\n\n" \
  3450. "Search for matching processes, and then\n" \
  3451. "-K: stop all matching processes.\n" \
  3452. "-S: start a process unless a matching process is found.\n" \
  3453. USE_FEATURE_START_STOP_DAEMON_LONG_OPTIONS( \
  3454. "\nProcess matching:" \
  3455. "\n -u,--user USERNAME|UID Match only this user's processes" \
  3456. "\n -n,--name NAME Match processes with NAME" \
  3457. "\n in comm field in /proc/PID/stat" \
  3458. "\n -x,--exec EXECUTABLE Match processes with this command" \
  3459. "\n in /proc/PID/cmdline" \
  3460. "\n -p,--pidfile FILE Match a process with PID from the file" \
  3461. "\n All specified conditions must match" \
  3462. "\n-S only:" \
  3463. "\n -x,--exec EXECUTABLE Program to run" \
  3464. "\n -a,--startas NAME Zeroth argument" \
  3465. "\n -b,--background Background" \
  3466. USE_FEATURE_START_STOP_DAEMON_FANCY( \
  3467. "\n -N,--nicelevel N Change nice level" \
  3468. ) \
  3469. "\n -c,--chuid USER[:[GRP]] Change to user/group" \
  3470. "\n -m,--make-pidfile Write PID to the pidfile specified by -p" \
  3471. "\n-K only:" \
  3472. "\n -s,--signal SIG Signal to send" \
  3473. "\n -t,--test Match only, exit with 0 if a process is found" \
  3474. "\nOther:" \
  3475. USE_FEATURE_START_STOP_DAEMON_FANCY( \
  3476. "\n -o,--oknodo Exit with status 0 if nothing is done" \
  3477. "\n -v,--verbose Verbose" \
  3478. ) \
  3479. "\n -q,--quiet Quiet" \
  3480. ) \
  3481. SKIP_FEATURE_START_STOP_DAEMON_LONG_OPTIONS( \
  3482. "\nProcess matching:" \
  3483. "\n -u USERNAME|UID Match only this user's processes" \
  3484. "\n -n NAME Match processes with NAME" \
  3485. "\n in comm field in /proc/PID/stat" \
  3486. "\n -x EXECUTABLE Match processes with this command" \
  3487. "\n command in /proc/PID/cmdline" \
  3488. "\n -p FILE Match a process with PID from the file" \
  3489. "\n All specified conditions must match" \
  3490. "\n-S only:" \
  3491. "\n -x EXECUTABLE Program to run" \
  3492. "\n -a NAME Zeroth argument" \
  3493. "\n -b Background" \
  3494. USE_FEATURE_START_STOP_DAEMON_FANCY( \
  3495. "\n -N N Change nice level" \
  3496. ) \
  3497. "\n -c USER[:[GRP]] Change to user/group" \
  3498. "\n -m Write PID to the pidfile specified by -p" \
  3499. "\n-K only:" \
  3500. "\n -s SIG Signal to send" \
  3501. "\n -t Match only, exit with 0 if a process is found" \
  3502. "\nOther:" \
  3503. USE_FEATURE_START_STOP_DAEMON_FANCY( \
  3504. "\n -o Exit with status 0 if nothing is done" \
  3505. "\n -v Verbose" \
  3506. ) \
  3507. "\n -q Quiet" \
  3508. ) \
  3509. #define stat_trivial_usage \
  3510. "[OPTION] FILE..."
  3511. #define stat_full_usage "\n\n" \
  3512. "Display file (default) or filesystem status\n" \
  3513. "\nOptions:" \
  3514. USE_FEATURE_STAT_FORMAT( \
  3515. "\n -c fmt Use the specified format" \
  3516. ) \
  3517. "\n -f Display filesystem status" \
  3518. "\n -L Dereference links" \
  3519. "\n -t Display info in terse form" \
  3520. USE_SELINUX( \
  3521. "\n -Z Print security context" \
  3522. ) \
  3523. USE_FEATURE_STAT_FORMAT( \
  3524. "\n\nValid format sequences for files:\n" \
  3525. " %a Access rights in octal\n" \
  3526. " %A Access rights in human readable form\n" \
  3527. " %b Number of blocks allocated (see %B)\n" \
  3528. " %B The size in bytes of each block reported by %b\n" \
  3529. " %d Device number in decimal\n" \
  3530. " %D Device number in hex\n" \
  3531. " %f Raw mode in hex\n" \
  3532. " %F File type\n" \
  3533. " %g Group ID of owner\n" \
  3534. " %G Group name of owner\n" \
  3535. " %h Number of hard links\n" \
  3536. " %i Inode number\n" \
  3537. " %n File name\n" \
  3538. " %N Quoted file name with dereference if symlink\n" \
  3539. " %o I/O block size\n" \
  3540. " %s Total size, in bytes\n" \
  3541. " %t Major device type in hex\n" \
  3542. " %T Minor device type in hex\n" \
  3543. " %u User ID of owner\n" \
  3544. " %U User name of owner\n" \
  3545. " %x Time of last access\n" \
  3546. " %X Time of last access as seconds since Epoch\n" \
  3547. " %y Time of last modification\n" \
  3548. " %Y Time of last modification as seconds since Epoch\n" \
  3549. " %z Time of last change\n" \
  3550. " %Z Time of last change as seconds since Epoch\n" \
  3551. "\nValid format sequences for file systems:\n" \
  3552. " %a Free blocks available to non-superuser\n" \
  3553. " %b Total data blocks in file system\n" \
  3554. " %c Total file nodes in file system\n" \
  3555. " %d Free file nodes in file system\n" \
  3556. " %f Free blocks in file system\n" \
  3557. USE_SELINUX( \
  3558. " %C Security context in SELinux\n" \
  3559. ) \
  3560. " %i File System ID in hex\n" \
  3561. " %l Maximum length of filenames\n" \
  3562. " %n File name\n" \
  3563. " %s Block size (for faster transfer)\n" \
  3564. " %S Fundamental block size (for block counts)\n" \
  3565. " %t Type in hex\n" \
  3566. " %T Type in human readable form" \
  3567. ) \
  3568. #define strings_trivial_usage \
  3569. "[-afo] [-n length] [file...]"
  3570. #define strings_full_usage "\n\n" \
  3571. "Display printable strings in a binary file\n" \
  3572. "\nOptions:" \
  3573. "\n -a Scan whole file (default)" \
  3574. "\n -f Precede strings with filenames" \
  3575. "\n -n N At least N characters form a string (default 4)" \
  3576. "\n -o Precede strings with decimal offsets" \
  3577. #define stty_trivial_usage \
  3578. "[-a|g] [-F DEVICE] [SETTING]..."
  3579. #define stty_full_usage "\n\n" \
  3580. "Without arguments, prints baud rate, line discipline,\n" \
  3581. "and deviations from stty sane\n" \
  3582. "\nOptions:" \
  3583. "\n -F DEVICE Open device instead of stdin" \
  3584. "\n -a Print all current settings in human-readable form" \
  3585. "\n -g Print in stty-readable form" \
  3586. "\n [SETTING] See manpage" \
  3587. #define su_trivial_usage \
  3588. "[OPTION]... [-] [username]"
  3589. #define su_full_usage "\n\n" \
  3590. "Change user id or become root\n" \
  3591. "\nOptions:" \
  3592. "\n -p, -m Preserve environment" \
  3593. "\n -c Command to pass to 'sh -c'" \
  3594. "\n -s Shell to use instead of default shell" \
  3595. #define sulogin_trivial_usage \
  3596. "[OPTION]... [tty-device]"
  3597. #define sulogin_full_usage "\n\n" \
  3598. "Single user login\n" \
  3599. "\nOptions:" \
  3600. "\n -t Timeout" \
  3601. #define sum_trivial_usage \
  3602. "[rs] [files...]"
  3603. #define sum_full_usage "\n\n" \
  3604. "Checksum and count the blocks in a file\n" \
  3605. "\nOptions:" \
  3606. "\n -r Use BSD sum algorithm (1K blocks)" \
  3607. "\n -s Use System V sum algorithm (512byte blocks)" \
  3608. #define sv_trivial_usage \
  3609. "[-v] [-w sec] command service..."
  3610. #define sv_full_usage "\n\n" \
  3611. "Control services monitored by runsv supervisor.\n" \
  3612. "Commands (only first character is enough):\n" \
  3613. "\n" \
  3614. "status: query service status\n" \
  3615. "up: if service isn't running, start it. If service stops, restart it\n" \
  3616. "once: like 'up', but if service stops, don't restart it\n" \
  3617. "down: send TERM and CONT signals. If ./run exits, start ./finish\n" \
  3618. " if it exists. After it stops, do not restart service\n" \
  3619. "exit: send TERM and CONT signals to service and log service. If they exit,\n" \
  3620. " runsv exits too\n" \
  3621. "pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send\n" \
  3622. "STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service" \
  3623. #define svlogd_trivial_usage \
  3624. "[-ttv] [-r c] [-R abc] [-l len] [-b buflen] dir..."
  3625. #define svlogd_full_usage "\n\n" \
  3626. "Continuously read log data from standard input, optionally " \
  3627. "filter log messages, and write the data to one or more automatically " \
  3628. "rotated logs" \
  3629. #define swapoff_trivial_usage \
  3630. "[-a] [DEVICE]"
  3631. #define swapoff_full_usage "\n\n" \
  3632. "Stop swapping on DEVICE\n" \
  3633. "\nOptions:" \
  3634. "\n -a Stop swapping on all swap devices" \
  3635. #define swapon_trivial_usage \
  3636. "[-a]" USE_FEATURE_SWAPON_PRI(" [-p pri]") " [DEVICE]"
  3637. #define swapon_full_usage "\n\n" \
  3638. "Start swapping on DEVICE\n" \
  3639. "\nOptions:" \
  3640. "\n -a Start swapping on all swap devices" \
  3641. USE_FEATURE_SWAPON_PRI( \
  3642. "\n -p pri Set swap device priority" \
  3643. ) \
  3644. #define switch_root_trivial_usage \
  3645. "[-c /dev/console] NEW_ROOT NEW_INIT [ARGUMENTS_TO_INIT]"
  3646. #define switch_root_full_usage "\n\n" \
  3647. "Use from PID 1 under initramfs to free initramfs, chroot to NEW_ROOT,\n" \
  3648. "and exec NEW_INIT\n" \
  3649. "\nOptions:" \
  3650. "\n -c Redirect console to device on new root" \
  3651. #define sync_trivial_usage \
  3652. ""
  3653. #define sync_full_usage "\n\n" \
  3654. "Write all buffered filesystem blocks to disk"
  3655. #define sysctl_trivial_usage \
  3656. "[OPTIONS]... [VALUE]..."
  3657. #define sysctl_full_usage "\n\n" \
  3658. "Configure kernel parameters at runtime\n" \
  3659. "\nOptions:" \
  3660. "\n -n Disable printing of key names" \
  3661. "\n -e Don't warn about unknown keys" \
  3662. "\n -w Change sysctl setting" \
  3663. "\n -p FILE Load sysctl settings from FILE (default /etc/sysctl.conf)" \
  3664. "\n -a Display all values" \
  3665. "\n -A Display all values in table form" \
  3666. #define sysctl_example_usage \
  3667. "sysctl [-n] [-e] variable...\n" \
  3668. "sysctl [-n] [-e] -w variable=value...\n" \
  3669. "sysctl [-n] [-e] -a\n" \
  3670. "sysctl [-n] [-e] -p file (default /etc/sysctl.conf)\n" \
  3671. "sysctl [-n] [-e] -A\n"
  3672. #define syslogd_trivial_usage \
  3673. "[OPTION]..."
  3674. #define syslogd_full_usage "\n\n" \
  3675. "System logging utility.\n" \
  3676. "Note that this version of syslogd ignores /etc/syslog.conf.\n" \
  3677. "\nOptions:" \
  3678. "\n -n Run in foreground" \
  3679. "\n -O FILE Log to given file (default=/var/log/messages)" \
  3680. "\n -l n Set local log level" \
  3681. "\n -S Smaller logging output" \
  3682. USE_FEATURE_ROTATE_LOGFILE( \
  3683. "\n -s SIZE Max size (KB) before rotate (default=200KB, 0=off)" \
  3684. "\n -b NUM Number of rotated logs to keep (default=1, max=99, 0=purge)") \
  3685. USE_FEATURE_REMOTE_LOG( \
  3686. "\n -R HOST[:PORT] Log to IP or hostname on PORT (default PORT=514/UDP)" \
  3687. "\n -L Log locally and via network (default is network only if -R)") \
  3688. USE_FEATURE_SYSLOGD_DUP( \
  3689. "\n -D Drop duplicates") \
  3690. USE_FEATURE_IPC_SYSLOG( \
  3691. "\n -C[size(KiB)] Log to shared mem buffer (read it using logread)") \
  3692. /* NB: -Csize shouldn't have space (because size is optional) */
  3693. /* "\n -m MIN Minutes between MARK lines (default=20, 0=off)" */
  3694. #define syslogd_example_usage \
  3695. "$ syslogd -R masterlog:514\n" \
  3696. "$ syslogd -R 192.168.1.1:601\n"
  3697. #define tac_trivial_usage \
  3698. "[FILE]..."
  3699. #define tac_full_usage "\n\n" \
  3700. "Concatenate FILE(s) and print them in reverse"
  3701. #define tail_trivial_usage \
  3702. "[OPTION]... [FILE]..."
  3703. #define tail_full_usage "\n\n" \
  3704. "Print last 10 lines of each FILE to standard output.\n" \
  3705. "With more than one FILE, precede each with a header giving the\n" \
  3706. "file name. With no FILE, or when FILE is -, read standard input.\n" \
  3707. "\nOptions:" \
  3708. USE_FEATURE_FANCY_TAIL( \
  3709. "\n -c N[kbm] Output the last N bytes") \
  3710. "\n -n N[kbm] Print last N lines instead of last 10" \
  3711. "\n -f Output data as the file grows" \
  3712. USE_FEATURE_FANCY_TAIL( \
  3713. "\n -q Never output headers giving file names" \
  3714. "\n -s SEC Wait SEC seconds between reads with -f" \
  3715. "\n -v Always output headers giving file names" \
  3716. "\n" \
  3717. "\nIf the first character of N (bytes or lines) is a '+', output begins with" \
  3718. "\nthe Nth item from the start of each file, otherwise, print the last N items" \
  3719. "\nin the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)." ) \
  3720. #define tail_example_usage \
  3721. "$ tail -n 1 /etc/resolv.conf\n" \
  3722. "nameserver 10.0.0.1\n"
  3723. #define tar_trivial_usage \
  3724. "-[" USE_FEATURE_TAR_CREATE("c") USE_FEATURE_SEAMLESS_GZ("z") \
  3725. USE_FEATURE_SEAMLESS_BZ2("j") USE_FEATURE_SEAMLESS_LZMA("a") \
  3726. USE_FEATURE_SEAMLESS_Z("Z") "xtvO] " \
  3727. USE_FEATURE_TAR_FROM("[-X FILE] ") \
  3728. "[-f TARFILE] [-C DIR] [FILE(s)]..."
  3729. #define tar_full_usage "\n\n" \
  3730. "Create, extract, or list files from a tar file\n" \
  3731. "\nOptions:" \
  3732. USE_FEATURE_TAR_CREATE( \
  3733. "\n c Create") \
  3734. "\n x Extract" \
  3735. "\n t List" \
  3736. "\nArchive format selection:" \
  3737. USE_FEATURE_SEAMLESS_GZ( \
  3738. "\n z Filter the archive through gzip" \
  3739. ) \
  3740. USE_FEATURE_SEAMLESS_BZ2( \
  3741. "\n j Filter the archive through bzip2" \
  3742. ) \
  3743. USE_FEATURE_SEAMLESS_LZMA( \
  3744. "\n a Filter the archive through lzma" \
  3745. ) \
  3746. USE_FEATURE_SEAMLESS_Z( \
  3747. "\n Z Filter the archive through compress" \
  3748. ) \
  3749. "\nFile selection:" \
  3750. "\n f Name of TARFILE or \"-\" for stdin" \
  3751. "\n O Extract to stdout" \
  3752. USE_FEATURE_TAR_FROM( \
  3753. "\n exclude File to exclude" \
  3754. "\n X File with names to exclude" \
  3755. ) \
  3756. "\n C Change to directory DIR before operation" \
  3757. "\n v Verbose" \
  3758. #define tar_example_usage \
  3759. "$ zcat /tmp/tarball.tar.gz | tar -xf -\n" \
  3760. "$ tar -cf /tmp/tarball.tar /usr/local\n"
  3761. #define taskset_trivial_usage \
  3762. "[-p] [mask] [pid | command [arg]...]"
  3763. #define taskset_full_usage "\n\n" \
  3764. "Set or get CPU affinity\n" \
  3765. "\nOptions:" \
  3766. "\n -p Operate on an existing PID" \
  3767. #define taskset_example_usage \
  3768. "$ taskset 0x7 ./dgemm_test&\n" \
  3769. "$ taskset -p 0x1 $!\n" \
  3770. "pid 4790's current affinity mask: 7\n" \
  3771. "pid 4790's new affinity mask: 1\n" \
  3772. "$ taskset 0x7 /bin/sh -c './taskset -p 0x1 $$'\n" \
  3773. "pid 6671's current affinity mask: 1\n" \
  3774. "pid 6671's new affinity mask: 1\n" \
  3775. "$ taskset -p 1\n" \
  3776. "pid 1's current affinity mask: 3\n"
  3777. #define tee_trivial_usage \
  3778. "[OPTION]... [FILE]..."
  3779. #define tee_full_usage "\n\n" \
  3780. "Copy standard input to each FILE, and also to standard output\n" \
  3781. "\nOptions:" \
  3782. "\n -a Append to the given FILEs, do not overwrite" \
  3783. "\n -i Ignore interrupt signals (SIGINT)" \
  3784. #define tee_example_usage \
  3785. "$ echo \"Hello\" | tee /tmp/foo\n" \
  3786. "$ cat /tmp/foo\n" \
  3787. "Hello\n"
  3788. #if ENABLE_FEATURE_TELNET_AUTOLOGIN
  3789. #define telnet_trivial_usage \
  3790. "[-a] [-l USER] HOST [PORT]"
  3791. #define telnet_full_usage "\n\n" \
  3792. "Connect to telnet server\n" \
  3793. "\nOptions:" \
  3794. "\n -a Automatic login with $USER variable" \
  3795. "\n -l USER Automatic login as USER" \
  3796. #else
  3797. #define telnet_trivial_usage \
  3798. "HOST [PORT]"
  3799. #define telnet_full_usage "\n\n" \
  3800. "Connect to telnet server"
  3801. #endif
  3802. #define telnetd_trivial_usage \
  3803. "[OPTION]"
  3804. #define telnetd_full_usage "\n\n" \
  3805. "Handle incoming telnet connections" \
  3806. SKIP_FEATURE_TELNETD_STANDALONE(" via inetd") "\n" \
  3807. "\nOptions:" \
  3808. "\n -l LOGIN Exec LOGIN on connect" \
  3809. "\n -f issue_file Display issue_file instead of /etc/issue" \
  3810. "\n -K Close connection as soon as login exits" \
  3811. "\n (normally wait until all programs close slave pty)" \
  3812. USE_FEATURE_TELNETD_STANDALONE( \
  3813. "\n -p PORT Port to listen on" \
  3814. "\n -b ADDR Address to bind to" \
  3815. "\n -F Run in foreground" \
  3816. "\n -i Run as inetd subservice" \
  3817. )
  3818. /* "test --help" does not print help (POSIX compat), only "[ --help" does.
  3819. * We display "<applet> EXPRESSION ]" here (not "<applet> EXPRESSION") */
  3820. #define test_trivial_usage \
  3821. "EXPRESSION ]"
  3822. #define test_full_usage "\n\n" \
  3823. "Check file types, compare values etc. Return a 0/1 exit code\n" \
  3824. "depending on logical value of EXPRESSION"
  3825. #define test_example_usage \
  3826. "$ test 1 -eq 2\n" \
  3827. "$ echo $?\n" \
  3828. "1\n" \
  3829. "$ test 1 -eq 1\n" \
  3830. "$ echo $?\n" \
  3831. "0\n" \
  3832. "$ [ -d /etc ]\n" \
  3833. "$ echo $?\n" \
  3834. "0\n" \
  3835. "$ [ -d /junk ]\n" \
  3836. "$ echo $?\n" \
  3837. "1\n"
  3838. #define tc_trivial_usage \
  3839. /*"[OPTIONS] "*/"OBJECT CMD [dev STRING]"
  3840. #define tc_full_usage "\n\n" \
  3841. "OBJECT: {qdisc|class|filter}\n" \
  3842. "CMD: {add|del|change|replace|show}\n" \
  3843. "\n" \
  3844. "qdisc [ handle QHANDLE ] [ root |"USE_FEATURE_TC_INGRESS(" ingress |")" parent CLASSID ]\n" \
  3845. /* "\t[ estimator INTERVAL TIME_CONSTANT ]\n" */ \
  3846. "\t[ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" \
  3847. "\tQDISC_KIND := { [p|b]fifo | tbf | prio | cbq | red | etc. }\n" \
  3848. "qdisc show [ dev STRING ]"USE_FEATURE_TC_INGRESS(" [ingress]")"\n" \
  3849. "class [ classid CLASSID ] [ root | parent CLASSID ]\n" \
  3850. "\t[ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" \
  3851. "class show [ dev STRING ] [ root | parent CLASSID ]\n" \
  3852. "filter [ pref PRIO ] [ protocol PROTO ]\n" \
  3853. /* "\t[ estimator INTERVAL TIME_CONSTANT ]\n" */ \
  3854. "\t[ root | classid CLASSID ] [ handle FILTERID ]\n" \
  3855. "\t[ [ FILTER_TYPE ] [ help | OPTIONS ] ]\n" \
  3856. "filter show [ dev STRING ] [ root | parent CLASSID ]"
  3857. #define tcpsvd_trivial_usage \
  3858. "[-hEv] [-c n] [-C n:msg] [-b n] [-u user] [-l name] ip port prog..."
  3859. /* with not-implemented options: */
  3860. /* "[-hpEvv] [-c n] [-C n:msg] [-b n] [-u user] [-l name] [-i dir|-x cdb] [-t sec] ip port prog..." */
  3861. #define tcpsvd_full_usage "\n\n" \
  3862. "Create TCP socket, bind it to ip:port and listen\n" \
  3863. "for incoming connection. Run PROG for each connection.\n" \
  3864. "\nip IP to listen on. '0' = all" \
  3865. "\nport Port to listen on" \
  3866. "\nprog [arg] Program to run" \
  3867. "\n-l name Local hostname (else looks up local hostname in DNS)" \
  3868. "\n-u user[:group] Change to user/group after bind" \
  3869. "\n-c n Handle up to n connections simultaneously" \
  3870. "\n-b n Allow a backlog of approximately n TCP SYNs" \
  3871. "\n-C n[:msg] Allow only up to n connections from the same IP" \
  3872. "\n New connections from this IP address are closed" \
  3873. "\n immediately. 'msg' is written to the peer before close" \
  3874. "\n-h Look up peer's hostname" \
  3875. "\n-E Do not set up environment variables" \
  3876. "\n-v Verbose" \
  3877. #define udpsvd_trivial_usage \
  3878. "[-hEv] [-c n] [-u user] [-l name] ip port prog"
  3879. #define udpsvd_full_usage "\n\n" \
  3880. "Create UDP socket, bind it to ip:port and wait\n" \
  3881. "for incoming packets. Run PROG for each packet,\n" \
  3882. "redirecting all further packets with same peer ip:port to it\n" \
  3883. "\nip IP to listen on. '0' = all" \
  3884. "\nport Port to listen on" \
  3885. "\nprog [arg] Program to run" \
  3886. "\n-l name Local hostname (else looks up local hostname in DNS)" \
  3887. "\n-u user[:group] Change to user/group after bind" \
  3888. "\n-c n Handle up to n connections simultaneously" \
  3889. "\n-h Look up peer's hostname" \
  3890. "\n-E Do not set up environment variables" \
  3891. "\n-v Verbose" \
  3892. #define tftp_trivial_usage \
  3893. "[OPTION]... HOST [PORT]"
  3894. #define tftp_full_usage "\n\n" \
  3895. "Transfer a file from/to tftp server\n" \
  3896. "\nOptions:" \
  3897. "\n -l FILE Local FILE" \
  3898. "\n -r FILE Remote FILE" \
  3899. USE_FEATURE_TFTP_GET( \
  3900. "\n -g Get file" \
  3901. ) \
  3902. USE_FEATURE_TFTP_PUT( \
  3903. "\n -p Put file" \
  3904. ) \
  3905. USE_FEATURE_TFTP_BLOCKSIZE( \
  3906. "\n -b SIZE Transfer blocks of SIZE octets" \
  3907. )
  3908. #define tftpd_trivial_usage \
  3909. "[-cr] [-u USER] [DIR]"
  3910. #define tftpd_full_usage "\n\n" \
  3911. "Transfer a file on tftp client's request.\n" \
  3912. "\n" \
  3913. "tftpd should be used as an inetd service.\n" \
  3914. "tftpd's line for inetd.conf:\n" \
  3915. " 69 dgram udp nowait root tftpd tftpd /files/to/serve\n" \
  3916. "It also can be ran from udpsvd:\n" \
  3917. " udpsvd -vE 0.0.0.0 69 tftpd /files/to/serve\n" \
  3918. "\nOptions:" \
  3919. "\n -r Prohibit upload" \
  3920. "\n -c Allow file creation via upload" \
  3921. "\n -u Access files as USER" \
  3922. #define time_trivial_usage \
  3923. "[OPTION]... COMMAND [ARGS...]"
  3924. #define time_full_usage "\n\n" \
  3925. "Run the program COMMAND with arguments ARGS. When COMMAND finishes,\n" \
  3926. "COMMAND's resource usage information is displayed.\n" \
  3927. "\nOptions:" \
  3928. "\n -v Verbose" \
  3929. #define top_trivial_usage \
  3930. "[-b] [-nCOUNT] [-dSECONDS]"
  3931. #define top_full_usage "\n\n" \
  3932. "Provide a view of process activity in real time.\n" \
  3933. "Read the status of all processes from /proc each SECONDS\n" \
  3934. "and show the status for however many processes will fit on the screen." \
  3935. #define touch_trivial_usage \
  3936. "[-c] FILE [FILE...]"
  3937. #define touch_full_usage "\n\n" \
  3938. "Update the last-modified date on the given FILE[s]\n" \
  3939. "\nOptions:" \
  3940. "\n -c Do not create any files" \
  3941. #define touch_example_usage \
  3942. "$ ls -l /tmp/foo\n" \
  3943. "/bin/ls: /tmp/foo: No such file or directory\n" \
  3944. "$ touch /tmp/foo\n" \
  3945. "$ ls -l /tmp/foo\n" \
  3946. "-rw-rw-r-- 1 andersen andersen 0 Apr 15 01:11 /tmp/foo\n"
  3947. #define tr_trivial_usage \
  3948. "[-cds] STRING1 [STRING2]"
  3949. #define tr_full_usage "\n\n" \
  3950. "Translate, squeeze, and/or delete characters from\n" \
  3951. "standard input, writing to standard output\n" \
  3952. "\nOptions:" \
  3953. "\n -c Take complement of STRING1" \
  3954. "\n -d Delete input characters coded STRING1" \
  3955. "\n -s Squeeze multiple output characters of STRING2 into one character" \
  3956. #define tr_example_usage \
  3957. "$ echo \"gdkkn vnqkc\" | tr [a-y] [b-z]\n" \
  3958. "hello world\n"
  3959. #define traceroute_trivial_usage \
  3960. "[-FIldnrv] [-f 1st_ttl] [-m max_ttl] [-p port#] [-q nqueries]\n" \
  3961. " [-s src_addr] [-t tos] [-w wait] [-g gateway] [-i iface]\n" \
  3962. " [-z pausemsecs] HOST [data size]"
  3963. #define traceroute_full_usage "\n\n" \
  3964. "Trace the route to HOST\n" \
  3965. "\nOptions:" \
  3966. "\n -F Set the don't fragment bit" \
  3967. "\n -I Use ICMP ECHO instead of UDP datagrams" \
  3968. "\n -l Display the ttl value of the returned packet" \
  3969. "\n -d Set SO_DEBUG options to socket" \
  3970. "\n -n Print hop addresses numerically rather than symbolically" \
  3971. "\n -r Bypass the normal routing tables and send directly to a host" \
  3972. "\n -v Verbose" \
  3973. "\n -m max_ttl Max time-to-live (max number of hops)" \
  3974. "\n -p port# Base UDP port number used in probes" \
  3975. "\n (default is 33434)" \
  3976. "\n -q nqueries Number of probes per 'ttl' (default 3)" \
  3977. "\n -s src_addr IP address to use as the source address" \
  3978. "\n -t tos Type-of-service in probe packets (default 0)" \
  3979. "\n -w wait Time in seconds to wait for a response" \
  3980. "\n (default 3 sec)" \
  3981. "\n -g Loose source route gateway (8 max)" \
  3982. #define true_trivial_usage \
  3983. ""
  3984. #define true_full_usage "\n\n" \
  3985. "Return an exit code of TRUE (0)"
  3986. #define true_example_usage \
  3987. "$ true\n" \
  3988. "$ echo $?\n" \
  3989. "0\n"
  3990. #define tty_trivial_usage \
  3991. ""
  3992. #define tty_full_usage "\n\n" \
  3993. "Print file name of standard input's terminal" \
  3994. USE_INCLUDE_SUSv2( "\n" \
  3995. "\nOptions:" \
  3996. "\n -s Print nothing, only return exit status" \
  3997. )
  3998. #define tty_example_usage \
  3999. "$ tty\n" \
  4000. "/dev/tty2\n"
  4001. #define ttysize_trivial_usage \
  4002. "[w] [h]"
  4003. #define ttysize_full_usage "\n\n" \
  4004. "Print dimension(s) of standard input's terminal, on error return 80x25"
  4005. #define tune2fs_trivial_usage \
  4006. "[-c max-mounts-count] [-e errors-behavior] [-g group] " \
  4007. "[-i interval[d|m|w]] [-j] [-J journal-options] [-l] [-s sparse-flag] " \
  4008. "[-m reserved-blocks-percent] [-o [^]mount-options[,...]] " \
  4009. "[-r reserved-blocks-count] [-u user] [-C mount-count] " \
  4010. "[-L volume-label] [-M last-mounted-dir] [-O [^]feature[,...]] " \
  4011. "[-T last-check-time] [-U UUID] device"
  4012. #define tune2fs_full_usage "\n\n" \
  4013. "Adjust filesystem options on ext[23] filesystems"
  4014. #define udhcpc_trivial_usage \
  4015. "[-Cfbnqtvo] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n" \
  4016. " [-p pidfile] [-r IP] [-s script] [-O dhcp-option]..." USE_FEATURE_UDHCP_PORT(" [-P N]")
  4017. #define udhcpc_full_usage "\n\n" \
  4018. USE_GETOPT_LONG( \
  4019. " -V,--vendorclass=CLASSID Vendor class identifier" \
  4020. "\n -i,--interface=INTERFACE Interface to use (default eth0)" \
  4021. "\n -H,-h,--hostname=HOSTNAME Client hostname" \
  4022. "\n -c,--clientid=CLIENTID Client identifier" \
  4023. "\n -C,--clientid-none Suppress default client identifier" \
  4024. "\n -p,--pidfile=file Create pidfile" \
  4025. "\n -r,--request=IP IP address to request" \
  4026. "\n -s,--script=file Run file at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \
  4027. "\n -t,--retries=N Send up to N request packets" \
  4028. "\n -T,--timeout=N Try to get a lease for N seconds (default 3)" \
  4029. "\n -A,--tryagain=N Wait N seconds (default 20) after failure" \
  4030. "\n -O,--request-option=OPT Request DHCP option OPT (cumulative)" \
  4031. "\n -o,--no-default-options Do not request any options (unless -O is also given)" \
  4032. "\n -f,--foreground Run in foreground" \
  4033. USE_FOR_MMU( \
  4034. "\n -b,--background Background if lease is not immediately obtained" \
  4035. ) \
  4036. "\n -S,--syslog Log to syslog too" \
  4037. "\n -n,--now Exit with failure if lease is not immediately obtained" \
  4038. "\n -q,--quit Quit after obtaining lease" \
  4039. "\n -R,--release Release IP on quit" \
  4040. USE_FEATURE_UDHCP_PORT( \
  4041. "\n -P,--client-port N Use port N instead of default 68" \
  4042. ) \
  4043. USE_FEATURE_UDHCPC_ARPING( \
  4044. "\n -a,--arping Use arping to validate offered address" \
  4045. ) \
  4046. ) \
  4047. SKIP_GETOPT_LONG( \
  4048. " -V CLASSID Vendor class identifier" \
  4049. "\n -i INTERFACE Interface to use (default: eth0)" \
  4050. "\n -H,-h HOSTNAME Client hostname" \
  4051. "\n -c CLIENTID Client identifier" \
  4052. "\n -C Suppress default client identifier" \
  4053. "\n -p file Create pidfile" \
  4054. "\n -r IP IP address to request" \
  4055. "\n -s file Run file at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \
  4056. "\n -t N Send up to N request packets" \
  4057. "\n -T N Try to get a lease for N seconds (default 3)" \
  4058. "\n -A N Wait N seconds (default 20) after failure" \
  4059. "\n -O OPT Request DHCP option OPT (cumulative)" \
  4060. "\n -o Do not request any options (unless -O is also given)" \
  4061. "\n -f Run in foreground" \
  4062. USE_FOR_MMU( \
  4063. "\n -b Background if lease is not immediately obtained" \
  4064. ) \
  4065. "\n -S Log to syslog too" \
  4066. "\n -n Exit with failure if lease is not immediately obtained" \
  4067. "\n -q Quit after obtaining lease" \
  4068. "\n -R Release IP on quit" \
  4069. USE_FEATURE_UDHCP_PORT( \
  4070. "\n -P N Use port N instead of default 68" \
  4071. ) \
  4072. USE_FEATURE_UDHCPC_ARPING( \
  4073. "\n -a Use arping to validate offered address" \
  4074. ) \
  4075. )
  4076. #define udhcpd_trivial_usage \
  4077. "[-fS]" USE_FEATURE_UDHCP_PORT(" [-P N]") " [configfile]" \
  4078. #define udhcpd_full_usage "\n\n" \
  4079. "DHCP server\n" \
  4080. "\n -f Run in foreground" \
  4081. "\n -S Log to syslog too" \
  4082. USE_FEATURE_UDHCP_PORT( \
  4083. "\n -P N Use port N instead of default 67" \
  4084. )
  4085. #define umount_trivial_usage \
  4086. "[flags] FILESYSTEM|DIRECTORY"
  4087. #define umount_full_usage "\n\n" \
  4088. "Unmount file systems\n" \
  4089. "\nOptions:" \
  4090. USE_FEATURE_UMOUNT_ALL( \
  4091. "\n -a Unmount all file systems" USE_FEATURE_MTAB_SUPPORT(" in /etc/mtab") \
  4092. ) \
  4093. USE_FEATURE_MTAB_SUPPORT( \
  4094. "\n -n Don't erase /etc/mtab entries" \
  4095. ) \
  4096. "\n -r Try to remount devices as read-only if mount is busy" \
  4097. "\n -l Lazy umount (detach filesystem)" \
  4098. "\n -f Force umount (i.e., unreachable NFS server)" \
  4099. USE_FEATURE_MOUNT_LOOP( \
  4100. "\n -d Free loop device if it has been used" \
  4101. )
  4102. #define umount_example_usage \
  4103. "$ umount /dev/hdc1\n"
  4104. #define uname_trivial_usage \
  4105. "[-amnrspv]"
  4106. #define uname_full_usage "\n\n" \
  4107. "Print system information.\n" \
  4108. "\nOptions:" \
  4109. "\n -a Print all" \
  4110. "\n -m The machine (hardware) type" \
  4111. "\n -n Hostname" \
  4112. "\n -r OS release" \
  4113. "\n -s OS name (default)" \
  4114. "\n -p Processor type" \
  4115. "\n -v OS version" \
  4116. #define uname_example_usage \
  4117. "$ uname -a\n" \
  4118. "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 GNU/Linux\n"
  4119. #define uncompress_trivial_usage \
  4120. "[-c] [-f] [name...]"
  4121. #define uncompress_full_usage "\n\n" \
  4122. "Uncompress .Z file[s]\n" \
  4123. "\nOptions:" \
  4124. "\n -c Extract to stdout" \
  4125. "\n -f Overwrite an existing file" \
  4126. #define unexpand_trivial_usage \
  4127. "[-f][-a][-t NUM] [FILE|-]"
  4128. #define unexpand_full_usage "\n\n" \
  4129. "Convert spaces to tabs, writing to standard output.\n" \
  4130. "\nOptions:" \
  4131. USE_FEATURE_UNEXPAND_LONG_OPTIONS( \
  4132. "\n -a,--all Convert all blanks" \
  4133. "\n -f,--first-only Convert only leading blanks" \
  4134. "\n -t,--tabs=N Tabstops every N chars" \
  4135. ) \
  4136. SKIP_FEATURE_UNEXPAND_LONG_OPTIONS( \
  4137. "\n -a Convert all blanks" \
  4138. "\n -f Convert only leading blanks" \
  4139. "\n -t N Tabstops every N chars" \
  4140. )
  4141. #define uniq_trivial_usage \
  4142. "[-fscduw]... [INPUT [OUTPUT]]"
  4143. #define uniq_full_usage "\n\n" \
  4144. "Discard duplicate lines\n" \
  4145. "\nOptions:" \
  4146. "\n -c Prefix lines by the number of occurrences" \
  4147. "\n -d Only print duplicate lines" \
  4148. "\n -u Only print unique lines" \
  4149. "\n -f N Skip first N fields" \
  4150. "\n -s N Skip first N chars (after any skipped fields)" \
  4151. "\n -w N Compare N characters in line" \
  4152. #define uniq_example_usage \
  4153. "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \
  4154. "a\n" \
  4155. "b\n" \
  4156. "c\n"
  4157. #define unix2dos_trivial_usage \
  4158. "[option] [FILE]"
  4159. #define unix2dos_full_usage "\n\n" \
  4160. "Convert FILE from unix to dos format.\n" \
  4161. "When no file is given, use stdin/stdout.\n" \
  4162. "\nOptions:" \
  4163. "\n -u dos2unix" \
  4164. "\n -d unix2dos" \
  4165. #define unzip_trivial_usage \
  4166. "[-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]"
  4167. #define unzip_full_usage "\n\n" \
  4168. "Extract files from ZIP archives\n" \
  4169. "\nOptions:" \
  4170. "\n -l List archive contents (with -q for short form)" \
  4171. "\n -n Never overwrite existing files (default)" \
  4172. "\n -o Overwrite files without prompting" \
  4173. "\n -p Send output to stdout" \
  4174. "\n -q Quiet" \
  4175. "\n -x Exclude these files" \
  4176. "\n -d Extract files into this directory" \
  4177. #define uptime_trivial_usage \
  4178. ""
  4179. #define uptime_full_usage "\n\n" \
  4180. "Display the time since the last boot"
  4181. #define uptime_example_usage \
  4182. "$ uptime\n" \
  4183. " 1:55pm up 2:30, load average: 0.09, 0.04, 0.00\n"
  4184. #define usleep_trivial_usage \
  4185. "N"
  4186. #define usleep_full_usage "\n\n" \
  4187. "Pause for N microseconds"
  4188. #define usleep_example_usage \
  4189. "$ usleep 1000000\n" \
  4190. "[pauses for 1 second]\n"
  4191. #define uudecode_trivial_usage \
  4192. "[-o outfile] [infile]"
  4193. #define uudecode_full_usage "\n\n" \
  4194. "Uudecode a file\n" \
  4195. "Finds outfile name in uuencoded source unless -o is given"
  4196. #define uudecode_example_usage \
  4197. "$ uudecode -o busybox busybox.uu\n" \
  4198. "$ ls -l busybox\n" \
  4199. "-rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox\n"
  4200. #define uuencode_trivial_usage \
  4201. "[-m] [infile] stored_filename"
  4202. #define uuencode_full_usage "\n\n" \
  4203. "Uuencode a file to stdout\n" \
  4204. "\nOptions:" \
  4205. "\n -m Use base64 encoding per RFC1521" \
  4206. #define uuencode_example_usage \
  4207. "$ uuencode busybox busybox\n" \
  4208. "begin 755 busybox\n" \
  4209. "<encoded file snipped>\n" \
  4210. "$ uudecode busybox busybox > busybox.uu\n" \
  4211. "$\n"
  4212. #define vconfig_trivial_usage \
  4213. "COMMAND [OPTIONS]..."
  4214. #define vconfig_full_usage "\n\n" \
  4215. "Create and remove virtual ethernet devices\n" \
  4216. "\nOptions:" \
  4217. "\n add [interface-name] [vlan_id]" \
  4218. "\n rem [vlan-name]" \
  4219. "\n set_flag [interface-name] [flag-num] [0 | 1]" \
  4220. "\n set_egress_map [vlan-name] [skb_priority] [vlan_qos]" \
  4221. "\n set_ingress_map [vlan-name] [skb_priority] [vlan_qos]" \
  4222. "\n set_name_type [name-type]" \
  4223. #define vi_trivial_usage \
  4224. "[OPTION] [FILE]..."
  4225. #define vi_full_usage "\n\n" \
  4226. "Edit FILE\n" \
  4227. "\nOptions:" \
  4228. USE_FEATURE_VI_COLON( \
  4229. "\n -c Initial command to run ($EXINIT also available)") \
  4230. USE_FEATURE_VI_READONLY( \
  4231. "\n -R Read-only - do not write to the file") \
  4232. "\n -H Short help regarding available features" \
  4233. #define vlock_trivial_usage \
  4234. "[OPTIONS]"
  4235. #define vlock_full_usage "\n\n" \
  4236. "Lock a virtual terminal. A password is required to unlock.\n" \
  4237. "\nOptions:" \
  4238. "\n -a Lock all VTs" \
  4239. #define watch_trivial_usage \
  4240. "[-n seconds] [-t] COMMAND..."
  4241. #define watch_full_usage "\n\n" \
  4242. "Execute a program periodically\n" \
  4243. "\nOptions:" \
  4244. "\n -n Loop period in seconds (default 2)" \
  4245. "\n -t Don't print header" \
  4246. #define watch_example_usage \
  4247. "$ watch date\n" \
  4248. "Mon Dec 17 10:31:40 GMT 2000\n" \
  4249. "Mon Dec 17 10:31:42 GMT 2000\n" \
  4250. "Mon Dec 17 10:31:44 GMT 2000"
  4251. #define watchdog_trivial_usage \
  4252. "[-t N[ms]] [-T N[ms]] [-F] DEV"
  4253. #define watchdog_full_usage "\n\n" \
  4254. "Periodically write to watchdog device DEV\n" \
  4255. "\nOptions:" \
  4256. "\n -T N Reboot after N seconds if not reset (default 60)" \
  4257. "\n -t N Reset every N seconds (default 30)" \
  4258. "\n -F Run in foreground" \
  4259. "\n" \
  4260. "\nUse 500ms to specify period in milliseconds" \
  4261. #define wc_trivial_usage \
  4262. "[OPTION]... [FILE]..."
  4263. #define wc_full_usage "\n\n" \
  4264. "Print line, word, and byte counts for each FILE, and a total line if\n" \
  4265. "more than one FILE is specified. With no FILE, read standard input.\n" \
  4266. "\nOptions:" \
  4267. "\n -c Print the byte counts" \
  4268. "\n -l Print the newline counts" \
  4269. "\n -L Print the length of the longest line" \
  4270. "\n -w Print the word counts" \
  4271. #define wc_example_usage \
  4272. "$ wc /etc/passwd\n" \
  4273. " 31 46 1365 /etc/passwd\n"
  4274. #define wget_trivial_usage \
  4275. USE_FEATURE_WGET_LONG_OPTIONS( \
  4276. "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document file]\n" \
  4277. " [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \
  4278. " [-U|--user-agent agent] url" \
  4279. ) \
  4280. SKIP_FEATURE_WGET_LONG_OPTIONS( \
  4281. "[-csq] [-O file] [-Y on/off] [-P DIR] [-U agent] url" \
  4282. )
  4283. #define wget_full_usage "\n\n" \
  4284. "Retrieve files via HTTP or FTP\n" \
  4285. "\nOptions:" \
  4286. "\n -s Spider mode - only check file existence" \
  4287. "\n -c Continue retrieval of aborted transfer" \
  4288. "\n -q Quiet" \
  4289. "\n -P Set directory prefix to DIR" \
  4290. "\n -O Save to filename ('-' for stdout)" \
  4291. "\n -U Adjust 'User-Agent' field" \
  4292. "\n -Y Use proxy ('on' or 'off')" \
  4293. #define which_trivial_usage \
  4294. "[COMMAND...]"
  4295. #define which_full_usage "\n\n" \
  4296. "Locate a COMMAND"
  4297. #define which_example_usage \
  4298. "$ which login\n" \
  4299. "/bin/login\n"
  4300. #define who_trivial_usage \
  4301. "[-a]"
  4302. #define who_full_usage "\n\n" \
  4303. "Show who is logged on\n" \
  4304. "\nOptions:" \
  4305. "\n -a show all" \
  4306. #define whoami_trivial_usage \
  4307. ""
  4308. #define whoami_full_usage "\n\n" \
  4309. "Print the user name associated with the current effective user id"
  4310. #define xargs_trivial_usage \
  4311. "[OPTIONS] [COMMAND] [ARGS...]"
  4312. #define xargs_full_usage "\n\n" \
  4313. "Execute COMMAND on every item given by standard input\n" \
  4314. "\nOptions:" \
  4315. USE_FEATURE_XARGS_SUPPORT_CONFIRMATION( \
  4316. "\n -p Ask user whether to run each command") \
  4317. "\n -r Do not run command if input is empty" \
  4318. USE_FEATURE_XARGS_SUPPORT_ZERO_TERM( \
  4319. "\n -0 Input is separated by NUL characters") \
  4320. "\n -t Print the command on stderr before execution" \
  4321. "\n -e[STR] STR stops input processing" \
  4322. "\n -n N Pass no more than N args to COMMAND" \
  4323. "\n -s N Pass command line of no more than N bytes" \
  4324. USE_FEATURE_XARGS_SUPPORT_TERMOPT( \
  4325. "\n -x Exit if size is exceeded") \
  4326. #define xargs_example_usage \
  4327. "$ ls | xargs gzip\n" \
  4328. "$ find . -name '*.c' -print | xargs rm\n"
  4329. #define yes_trivial_usage \
  4330. "[OPTION]... [STRING]..."
  4331. #define yes_full_usage "\n\n" \
  4332. "Repeatedly output a line with all specified STRING(s), or 'y'"
  4333. #define zcat_trivial_usage \
  4334. "FILE"
  4335. #define zcat_full_usage "\n\n" \
  4336. "Uncompress to stdout"
  4337. #define zcip_trivial_usage \
  4338. "[OPTIONS] ifname script"
  4339. #define zcip_full_usage "\n\n" \
  4340. "Manage a ZeroConf IPv4 link-local address\n" \
  4341. "\nOptions:" \
  4342. "\n -f Run in foreground" \
  4343. "\n -q Quit after obtaining address" \
  4344. "\n -r 169.254.x.x Request this address first" \
  4345. "\n -v Verbose" \
  4346. "\n" \
  4347. "\nWith no -q, runs continuously monitoring for ARP conflicts," \
  4348. "\nexits only on I/O errors (link down etc)" \
  4349. #endif /* __BB_USAGE_H__ */