usage.h 161 KB

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