usage.src.h 157 KB

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