usage.h 138 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495
  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. */
  10. #ifndef __BB_USAGE_H__
  11. #define __BB_USAGE_H__
  12. #define addgroup_trivial_usage \
  13. "[-g GID] group_name [user_name]"
  14. #define addgroup_full_usage \
  15. "Adds a group to the system\n\n" \
  16. "Options:\n" \
  17. " -g GID specify gid"
  18. #define adduser_trivial_usage \
  19. "[OPTIONS] user_name"
  20. #define adduser_full_usage \
  21. "Adds a user to the system\n\n" \
  22. "Options:\n" \
  23. " -h DIR Assign home directory DIR\n" \
  24. " -g GECOS Assign gecos field GECOS\n" \
  25. " -s SHELL Assign login shell SHELL\n" \
  26. " -G Add the user to existing group GROUP\n" \
  27. " -S create a system user (ignored)\n" \
  28. " -D Do not assign a password (logins still possible via ssh)\n" \
  29. " -H Do not create the home directory"
  30. #define adjtimex_trivial_usage \
  31. "[-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]"
  32. #define adjtimex_full_usage \
  33. "Reads and optionally sets system timebase parameters.\n" \
  34. "See adjtimex(2).\n\n" \
  35. "Options:\n" \
  36. " -q quiet mode - do not print\n" \
  37. " -o offset time offset, microseconds\n" \
  38. " -f frequency frequency adjust, integer kernel units (65536 is 1ppm)\n" \
  39. " (positive values make the system clock run fast)\n" \
  40. " -t tick microseconds per tick, usually 10000\n" \
  41. " -p timeconstant"
  42. #define ar_trivial_usage \
  43. "[-o] [-v] [-p] [-t] [-x] ARCHIVE FILES"
  44. #define ar_full_usage \
  45. "Extract or list FILES from an ar archive.\n\n" \
  46. "Options:\n" \
  47. " -o preserve original dates\n" \
  48. " -p extract to stdout\n" \
  49. " -t list\n" \
  50. " -x extract\n" \
  51. " -v verbosely list files processed"
  52. #define arping_trivial_usage \
  53. "[-fqbDUA] [-c count] [-w timeout] [-i device] [-s sender] target"
  54. #define arping_full_usage \
  55. "Ping hosts by ARP requests/replies.\n\n" \
  56. "Options:\n" \
  57. " -f Quit on first ARP reply\n" \
  58. " -q Be quiet\n" \
  59. " -b Keep broadcasting, don't go unicast\n" \
  60. " -D Duplicated address detection mode\n" \
  61. " -U Unsolicited ARP mode, update your neighbours\n" \
  62. " -A ARP answer mode, update your neighbours\n" \
  63. " -c count Stop after sending count ARP request packets\n" \
  64. " -w timeout Time to wait for ARP reply, in seconds\n" \
  65. " -i device Outgoing interface name, default is eth0\n" \
  66. " -s sender Set specific sender IP address\n" \
  67. " target Target IP address of ARP request"
  68. #define ash_trivial_usage \
  69. "[FILE]...\n" \
  70. "or: ash -c command [args]..."
  71. #define ash_full_usage \
  72. "The ash shell (command interpreter)"
  73. #define awk_trivial_usage \
  74. "[OPTION]... [program-text] [FILE ...]"
  75. #define awk_full_usage \
  76. "Options:\n" \
  77. " -v var=val assign value 'val' to variable 'var'\n" \
  78. " -F sep use 'sep' as field separator\n" \
  79. " -f progname read program source from file 'progname'"
  80. #define basename_trivial_usage \
  81. "FILE [SUFFIX]"
  82. #define basename_full_usage \
  83. "Strips directory path and suffixes from FILE.\n" \
  84. "If specified, also removes any trailing SUFFIX."
  85. #define basename_example_usage \
  86. "$ basename /usr/local/bin/foo\n" \
  87. "foo\n" \
  88. "$ basename /usr/local/bin/\n" \
  89. "bin\n" \
  90. "$ basename /foo/bar.txt .txt\n" \
  91. "bar"
  92. #define bunzip2_trivial_usage \
  93. "[OPTION]... [FILE]"
  94. #define bunzip2_full_usage \
  95. "Uncompress FILE (or standard input if FILE is '-' or omitted).\n\n" \
  96. "Options:\n" \
  97. " -c Write output to standard output\n" \
  98. " -f Force"
  99. #define busybox_notes_usage \
  100. "Hello world!\n"
  101. #define bzcat_trivial_usage \
  102. "FILE"
  103. #define bzcat_full_usage \
  104. "Uncompress to stdout."
  105. #define unlzma_trivial_usage \
  106. "[OPTION]... [FILE]"
  107. #define unlzma_full_usage \
  108. "Uncompress FILE (or standard input if FILE is '-' or omitted).\n\n" \
  109. "Options:\n" \
  110. " -c Write output to standard output\n" \
  111. " -f Force"
  112. #define lzmacat_trivial_usage \
  113. "FILE"
  114. #define lzmacat_full_usage \
  115. "Uncompress to stdout."
  116. #define cal_trivial_usage \
  117. "[-jy] [[month] year]"
  118. #define cal_full_usage \
  119. "Display a calendar.\n" \
  120. "\nOptions:\n" \
  121. " -j Use julian dates\n" \
  122. " -y Display the entire year"
  123. #define cat_trivial_usage \
  124. "[-u] [FILE]..."
  125. #define cat_full_usage \
  126. "Concatenates FILE(s) and prints them to stdout.\n\n" \
  127. "Options:\n" \
  128. " -u ignored since unbuffered i/o is always used"
  129. #define cat_example_usage \
  130. "$ cat /proc/uptime\n" \
  131. "110716.72 17.67"
  132. #define catv_trivial_usage \
  133. "[-etv] [FILE]..."
  134. #define catv_full_usage \
  135. "Display nonprinting characters as ^x or M-x.\n\n"\
  136. " -e End each line with $\n" \
  137. " -t Show tabs as ^I\n" \
  138. " -v Don't use ^x or M-x escapes."
  139. #define chattr_trivial_usage \
  140. "[-R] [-+=AacDdijsStTu] [-v version] files..."
  141. #define chattr_full_usage \
  142. "change file attributes on an ext2 fs\n\n" \
  143. "Modifiers:\n" \
  144. " - remove attributes\n" \
  145. " + add attributes\n" \
  146. " = set attributes\n" \
  147. "Attributes:\n" \
  148. " A don't track atime\n" \
  149. " a append mode only\n" \
  150. " c enable compress\n" \
  151. " D write dir contents synchronously\n" \
  152. " d do not backup with dump\n" \
  153. " i cannot be modified (immutable)\n" \
  154. " j write all data to journal first\n" \
  155. " s zero disk storage when deleted\n" \
  156. " S write file contents synchronously\n" \
  157. " t disable tail-merging of partial blocks with other files\n" \
  158. " u allow file to be undeleted\n" \
  159. "Options:\n" \
  160. " -R recursively list subdirectories\n" \
  161. " -v set the file's version/generation number"
  162. #define chgrp_trivial_usage \
  163. "[-Rh"USE_DESKTOP("cvf")"]... GROUP FILE..."
  164. #define chgrp_full_usage \
  165. "Change the group membership of each FILE to GROUP.\n" \
  166. "\nOptions:\n" \
  167. " -R Changes files and directories recursively\n" \
  168. " -h Do not dereference symbolic links" \
  169. USE_DESKTOP( \
  170. "\n -c List changed files" \
  171. "\n -v List all files" \
  172. "\n -f Hide errors" \
  173. )
  174. #define chgrp_example_usage \
  175. "$ ls -l /tmp/foo\n" \
  176. "-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" \
  177. "$ chgrp root /tmp/foo\n" \
  178. "$ ls -l /tmp/foo\n" \
  179. "-r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo\n"
  180. #define chmod_trivial_usage \
  181. "[-R"USE_DESKTOP("cvf")"] MODE[,MODE]... FILE..."
  182. #define chmod_full_usage \
  183. "Each MODE is one or more of the letters ugoa, one of the\n" \
  184. "symbols +-= and one or more of the letters rwxst.\n\n" \
  185. "Options:\n" \
  186. " -R Changes files and directories recursively" \
  187. USE_DESKTOP( \
  188. "\n -c List changed files" \
  189. "\n -v List all files" \
  190. "\n -f Hide errors" \
  191. )
  192. #define chmod_example_usage \
  193. "$ ls -l /tmp/foo\n" \
  194. "-rw-rw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" \
  195. "$ chmod u+x /tmp/foo\n" \
  196. "$ ls -l /tmp/foo\n" \
  197. "-rwxrw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo*\n" \
  198. "$ chmod 444 /tmp/foo\n" \
  199. "$ ls -l /tmp/foo\n" \
  200. "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n"
  201. #define chown_trivial_usage \
  202. "[-Rh"USE_DESKTOP("cvf")"]... OWNER[<.|:>[GROUP]] FILE..."
  203. #define chown_full_usage \
  204. "Change the owner and/or group of each FILE to OWNER and/or GROUP.\n" \
  205. "\nOptions:\n" \
  206. " -R Changes files and directories recursively\n" \
  207. " -h Do not dereference symbolic links" \
  208. USE_DESKTOP( \
  209. "\n -c List changed files" \
  210. "\n -v List all files" \
  211. "\n -f Hide errors" \
  212. )
  213. #define chown_example_usage \
  214. "$ ls -l /tmp/foo\n" \
  215. "-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" \
  216. "$ chown root /tmp/foo\n" \
  217. "$ ls -l /tmp/foo\n" \
  218. "-r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo\n" \
  219. "$ chown root.root /tmp/foo\n" \
  220. "ls -l /tmp/foo\n" \
  221. "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n"
  222. #define chpst_trivial_usage \
  223. "[-vP012] [-u user[:group]] [-U user[:group]] [-e dir] " \
  224. "[-/ dir] [-n nice] [-m bytes] [-d bytes] [-o files] " \
  225. "[-p processes] [-f bytes] [-c bytes] prog args"
  226. #define chpst_full_usage \
  227. "Change the process state and run specified program.\n\n" \
  228. "-u user[:grp] set uid and gid\n" \
  229. "-U user[:grp] set environment variables UID and GID\n" \
  230. "-e dir set environment variables as specified by files\n" \
  231. " in the directory: file=1st_line_of_file\n" \
  232. "-/ dir chroot to dir\n" \
  233. "-n inc add inc to nice value\n" \
  234. "-m bytes limit data segment, stack segment, locked physical pages,\n" \
  235. " and total of all segment per process to bytes bytes each\n" \
  236. "-d bytes limit data segment\n" \
  237. "-o n limit the number of open file descriptors per process to n\n" \
  238. "-p n limit number of processes per uid to n\n" \
  239. "-f bytes limit output file size to bytes bytes\n" \
  240. "-c bytes limit core file size to bytes bytes\n" \
  241. "-v verbose\n" \
  242. "-P run prog in a new process group\n" \
  243. "-0 close standard input\n" \
  244. "-1 close standard output\n" \
  245. "-2 close standard error"
  246. #define setuidgid_trivial_usage \
  247. "account prog args"
  248. #define setuidgid_full_usage \
  249. "Sets uid and gid to account's uid and gid, removing all supplementary\n" \
  250. "groups, then runs prog"
  251. #define envuidgid_trivial_usage \
  252. "account prog args"
  253. #define envuidgid_full_usage \
  254. "Sets $UID to account's uid and $GID to account's gid, then runs prog"
  255. #define envdir_trivial_usage \
  256. "dir prog args"
  257. #define envdir_full_usage \
  258. "Sets various environment variables as specified by files\n" \
  259. "in the directory dir, then runs prog"
  260. #define softlimit_trivial_usage \
  261. "[-a allbytes] [-c corebytes] [-d databytes] [-f filebytes] " \
  262. "[-l lockbytes] [-m membytes] [-o openfiles] [-p processes] " \
  263. "[-r residentbytes] [-s stackbytes] [-t cpusecs] prog args"
  264. #define softlimit_full_usage \
  265. "Sets soft resource limits as specified by options, then runs prog\n" \
  266. "\n" \
  267. "-m n Same as -d n -s n -l n -a n\n" \
  268. "-d n Limit the data segment per process to n bytes\n" \
  269. "-s n Limit the stack segment per process to n bytes\n" \
  270. "-l n Limit the locked physical pages per process to n bytes\n" \
  271. "-a n Limit the total of all segments per process to n bytes\n" \
  272. "-o n Limit the number of open file descriptors per process to n\n" \
  273. "-p n Limit the number of processes per uid to n\n" \
  274. "Options controlling file sizes:\n" \
  275. "-f n Limit output file sizes to n bytes\n" \
  276. "-c n Limit core file sizes to n bytes\n" \
  277. "Efficiency opts:\n" \
  278. "-r n Limit the resident set size to n bytes. This limit is not\n" \
  279. " enforced unless physical memory is full\n" \
  280. "-t n Limit the CPU time to n seconds. This limit is not enforced\n" \
  281. " except that the process receives a SIGXCPU signal after n seconds\n" \
  282. "\n" \
  283. "Some options may have no effect on some operating systems\n" \
  284. "n may be =, indicating that soft limit should be set equal to hard limit"
  285. #define chroot_trivial_usage \
  286. "NEWROOT [COMMAND...]"
  287. #define chroot_full_usage \
  288. "Run COMMAND with root directory set to NEWROOT."
  289. #define chroot_example_usage \
  290. "$ ls -l /bin/ls\n" \
  291. "lrwxrwxrwx 1 root root 12 Apr 13 00:46 /bin/ls -> /BusyBox\n" \
  292. "# mount /dev/hdc1 /mnt -t minix\n" \
  293. "# chroot /mnt\n" \
  294. "# ls -l /bin/ls\n" \
  295. "-rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls*\n"
  296. #define chvt_trivial_usage \
  297. "N"
  298. #define chvt_full_usage \
  299. "Changes the foreground virtual terminal to /dev/ttyN"
  300. #define cksum_trivial_usage \
  301. "FILES..."
  302. #define cksum_full_usage \
  303. "Calculates the CRC32 checksums of FILES."
  304. #define clear_trivial_usage \
  305. ""
  306. #define clear_full_usage \
  307. "Clear screen."
  308. #define cmp_trivial_usage \
  309. "[-l] [-s] FILE1 [FILE2]"
  310. #define cmp_full_usage \
  311. "Compares FILE1 vs stdin if FILE2 is not specified.\n\n" \
  312. "Options:\n" \
  313. " -l Write the byte numbers (decimal) and values (octal)\n" \
  314. " for all differing bytes\n" \
  315. " -s quiet mode - do not print"
  316. #define comm_trivial_usage \
  317. "[-123] FILE1 FILE2"
  318. #define comm_full_usage \
  319. "Compares FILE1 to FILE2, or to stdin if = is specified.\n\n" \
  320. "Options:\n" \
  321. " -1 Suppress lines unique to FILE1\n" \
  322. " -2 Suppress lines unique to FILE2\n" \
  323. " -3 Suppress lines common to both files"
  324. #define bbconfig_trivial_usage \
  325. ""
  326. #define bbconfig_full_usage \
  327. "Print the config file which built busybox"
  328. #define bbsh_trivial_usage \
  329. "[FILE]...\n" \
  330. "or: bbsh -c command [args]..."
  331. #define bbsh_full_usage \
  332. "The bbsh shell (command interpreter)"
  333. #define cp_trivial_usage \
  334. "[OPTION]... SOURCE DEST"
  335. #define cp_full_usage \
  336. "Copies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n" \
  337. "\n" \
  338. " -a Same as -dpR\n" \
  339. " -d,-P Preserve links\n" \
  340. " -H,-L Dereference all symlinks (implied by default)\n" \
  341. " -p Preserve file attributes if possible\n" \
  342. " -f force, overwrite\n" \
  343. " -i interactive, prompt before overwrite\n" \
  344. " -R,-r Copy directories recursively\n" \
  345. " -l,-s Create (sym)links"
  346. #define cpio_trivial_usage \
  347. "-[dimtuv][F cpiofile]"
  348. #define cpio_full_usage \
  349. "Extract or list files from a cpio archive\n" \
  350. "Main operation mode:\n" \
  351. " d make leading directories\n" \
  352. " i extract\n" \
  353. " m preserve mtime\n" \
  354. " t list\n" \
  355. " v verbose\n" \
  356. " u unconditional overwrite\n" \
  357. " F input from file"
  358. #define crond_trivial_usage \
  359. "-d[#] -c <crondir> -f -b"
  360. #define crond_full_usage \
  361. " -d [#] -l [#] -S -L logfile -f -b -c dir\n" \
  362. " -d num debug level\n" \
  363. " -l num log level (8 - default)\n" \
  364. " -S log to syslogd (default)\n" \
  365. " -L file log to file\n" \
  366. " -f run in foreground\n" \
  367. " -b run in background (default)\n" \
  368. " -c dir working dir"
  369. #define crontab_trivial_usage \
  370. "[-c dir] {file|-}|[-u|-l|-e|-d user]"
  371. #define crontab_full_usage \
  372. " file <opts> replace crontab from file\n" \
  373. " - <opts> replace crontab from stdin\n" \
  374. " -u user specify user\n" \
  375. " -l [user] list crontab for user\n" \
  376. " -e [user] edit crontab for user\n" \
  377. " -d [user] delete crontab for user\n" \
  378. " -c dir specify crontab directory"
  379. #define cut_trivial_usage \
  380. "[OPTION]... [FILE]..."
  381. #define cut_full_usage \
  382. "Prints selected fields from each input FILE to standard output.\n\n" \
  383. "Options:\n" \
  384. " -b LIST Output only bytes from LIST\n" \
  385. " -c LIST Output only characters from LIST\n" \
  386. " -d CHAR Use CHAR instead of tab as the field delimiter\n" \
  387. " -s Output only the lines containing delimiter\n" \
  388. " -f N Print only these fields\n" \
  389. " -n Ignored"
  390. #define cut_example_usage \
  391. "$ echo \"Hello world\" | cut -f 1 -d ' '\n" \
  392. "Hello\n" \
  393. "$ echo \"Hello world\" | cut -f 2 -d ' '\n" \
  394. "world\n"
  395. #define date_trivial_usage \
  396. "[OPTION]... [MMDDhhmm[[CC]YY][.ss]] [+FORMAT]"
  397. #define date_full_usage \
  398. "Displays the current time in the given FORMAT, or sets the system date.\n" \
  399. "\nOptions:\n" \
  400. " -R Outputs RFC-822 compliant date string\n" \
  401. " -d STRING Displays time described by STRING, not 'now'\n" \
  402. USE_FEATURE_DATE_ISOFMT( \
  403. " -I[TIMESPEC] Outputs an ISO-8601 compliant date/time string\n" \
  404. " TIMESPEC='date' (or missing) for date only,\n" \
  405. " 'hours', 'minutes', or 'seconds' for date and,\n" \
  406. " time to the indicated precision\n" \
  407. " -D hint Use 'hint' as date format, via strptime()\n" \
  408. ) \
  409. " -s Sets time described by STRING\n" \
  410. " -r FILE Displays the last modification time of FILE\n" \
  411. " -u Prints or sets Coordinated Universal Time"
  412. #define date_example_usage \
  413. "$ date\n" \
  414. "Wed Apr 12 18:52:41 MDT 2000\n"
  415. #define dc_trivial_usage \
  416. "expression ..."
  417. #define dc_full_usage \
  418. "This is a Tiny RPN calculator that understands the\n" \
  419. "following operations: +, add, -, sub, *, mul, /, div, %, mod, " \
  420. "**, exp, and, or, not, eor.\n" \
  421. "For example: 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16.\n" \
  422. "\nOptions:\n" \
  423. "p - Prints the value on the top of the stack, without altering the stack\n" \
  424. "f - Prints the entire contents of the stack without altering anything\n" \
  425. "o - Pops the value off the top of the stack and uses it to set the output radix\n" \
  426. " Only 10 and 16 are supported"
  427. #define dc_example_usage \
  428. "$ dc 2 2 + p\n" \
  429. "4\n" \
  430. "$ dc 8 8 \\* 2 2 + / p\n" \
  431. "16\n" \
  432. "$ dc 0 1 and p\n" \
  433. "0\n" \
  434. "$ dc 0 1 or p\n" \
  435. "1\n" \
  436. "$ echo 72 9 div 8 mul p | dc\n" \
  437. "64\n"
  438. #define dd_trivial_usage \
  439. "[if=FILE] [of=FILE] " USE_FEATURE_DD_IBS_OBS("[ibs=N] [obs=N] ") "[bs=N] [count=N] [skip=N]\n" \
  440. " [seek=N]" USE_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync]")
  441. #define dd_full_usage \
  442. "Copy a file, converting and formatting according to options\n\n" \
  443. " if=FILE read from FILE instead of stdin\n" \
  444. " of=FILE write to FILE instead of stdout\n" \
  445. " bs=N read and write N bytes at a time\n" \
  446. USE_FEATURE_DD_IBS_OBS( \
  447. " ibs=N read N bytes at a time\n") \
  448. USE_FEATURE_DD_IBS_OBS( \
  449. " obs=N write N bytes at a time\n") \
  450. " count=N copy only N input blocks\n" \
  451. " skip=N skip N input blocks\n" \
  452. " seek=N skip N output blocks\n" \
  453. USE_FEATURE_DD_IBS_OBS( \
  454. " conv=notrunc don't truncate output file\n" \
  455. " conv=noerror continue after read errors\n" \
  456. " conv=sync pad blocks with zeros\n") \
  457. "\n" \
  458. "Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),\n" \
  459. "MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)"
  460. #define dd_example_usage \
  461. "$ dd if=/dev/zero of=/dev/ram1 bs=1M count=4\n" \
  462. "4+0 records in\n" \
  463. "4+0 records out\n"
  464. #define deallocvt_trivial_usage \
  465. "[N]"
  466. #define deallocvt_full_usage \
  467. "Deallocate unused virtual terminal /dev/ttyN"
  468. #define delgroup_trivial_usage \
  469. "GROUP"
  470. #define delgroup_full_usage \
  471. "Deletes group GROUP from the system"
  472. #define deluser_trivial_usage \
  473. "USER"
  474. #define deluser_full_usage \
  475. "Deletes user USER from the system"
  476. #define devfsd_trivial_usage \
  477. "mntpnt [-v]" \
  478. USE_DEVFSD_FG_NP("[-fg][-np]" )
  479. #define devfsd_full_usage \
  480. "Optional daemon for managing devfs permissions and old device name symlinks.\n" \
  481. "\nOptions:\n" \
  482. " mntpnt The mount point where devfs is mounted.\n\n" \
  483. " -v Print the protocol version numbers for devfsd\n" \
  484. " and the kernel-side protocol version and exits." \
  485. USE_DEVFSD_FG_NP( "\n\n -fg Run the daemon in the foreground.\n\n" \
  486. " -np Exit after parsing the configuration file\n" \
  487. " and processing synthetic REGISTER events.\n" \
  488. " Do not poll for events.")
  489. #define df_trivial_usage \
  490. "[-" USE_FEATURE_HUMAN_READABLE("hm") "k] [FILESYSTEM ...]"
  491. #define df_full_usage \
  492. "Print the filesystem space used and space available.\n\n" \
  493. "Options:\n" \
  494. USE_FEATURE_HUMAN_READABLE( \
  495. "\n -h print sizes in human readable format (e.g., 1K 243M 2G )\n" \
  496. " -m print sizes in megabytes\n" \
  497. " -k print sizes in kilobytes(default)") \
  498. SKIP_FEATURE_HUMAN_READABLE("\n -k ignored")
  499. #define df_example_usage \
  500. "$ df\n" \
  501. "Filesystem 1k-blocks Used Available Use% Mounted on\n" \
  502. "/dev/sda3 8690864 8553540 137324 98% /\n" \
  503. "/dev/sda1 64216 36364 27852 57% /boot\n" \
  504. "$ df /dev/sda3\n" \
  505. "Filesystem 1k-blocks Used Available Use% Mounted on\n" \
  506. "/dev/sda3 8690864 8553540 137324 98% /\n"
  507. #define dhcprelay_trivial_usage \
  508. "[client_device_list] [server_device]"
  509. #define dhcprelay_full_usage \
  510. "Relays dhcp requests from client devices to server device"
  511. #define dhcprelay_trivial_usage \
  512. "[client_device_list] [server_device]"
  513. #define dhcprelay_full_usage \
  514. "Relays dhcp requests from client devices to server device"
  515. #define diff_trivial_usage \
  516. "[-abdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2"
  517. #define diff_full_usage \
  518. "Compare files line by line and output the differences between them.\n" \
  519. "This diff implementation only supports unified diffs.\n\n" \
  520. "Options:\n" \
  521. " -a Treat all files as text\n" \
  522. " -b Ignore changes in the amount of whitespace\n" \
  523. " -d Try hard to find a smaller set of changes\n" \
  524. " -i Ignore case differences\n" \
  525. " -L Use LABEL instead of the filename in the unified header\n" \
  526. " -N Treat absent files as empty\n" \
  527. " -q Output only whether files differ\n" \
  528. " -r Recursively compare any subdirectories\n" \
  529. " -S Start with FILE when comparing directories\n" \
  530. " -T Make tabs line up by prefixing a tab when necessary\n" \
  531. " -s Report when two files are the same\n" \
  532. " -t Expand tabs to spaces in output\n" \
  533. " -U Output LINES lines of context\n" \
  534. " -w Ignore all whitespace\n"
  535. #define dirname_trivial_usage \
  536. "FILENAME"
  537. #define dirname_full_usage \
  538. "Strips non-directory suffix from FILENAME"
  539. #define dirname_example_usage \
  540. "$ dirname /tmp/foo\n" \
  541. "/tmp\n" \
  542. "$ dirname /tmp/foo/\n" \
  543. "/tmp\n"
  544. #define dmesg_trivial_usage \
  545. "[-c] [-n LEVEL] [-s SIZE]"
  546. #define dmesg_full_usage \
  547. "Prints or controls the kernel ring buffer\n\n" \
  548. "Options:\n" \
  549. " -c Clears the ring buffer's contents after printing\n" \
  550. " -n LEVEL Sets console logging level\n" \
  551. " -s SIZE Use a buffer of size SIZE"
  552. #define dnsd_trivial_usage \
  553. "[-c config] [-t seconds] [-p port] [-i iface-ip] [-d]"
  554. #define dnsd_full_usage \
  555. "Small and static DNS server daemon\n\n" \
  556. "Options:\n" \
  557. " -c config filename\n" \
  558. " -t TTL in seconds\n" \
  559. " -p listening port\n" \
  560. " -i listening iface ip (default all)\n" \
  561. " -d daemonize"
  562. #define dos2unix_trivial_usage \
  563. "[option] [FILE]"
  564. #define dos2unix_full_usage \
  565. "Converts FILE from dos format to unix format. When no option\n" \
  566. "is given, the input is converted to the opposite output format.\n" \
  567. "When no file is given, uses stdin for input and stdout for output.\n\n" \
  568. "Options:\n" \
  569. " -u output will be in UNIX format\n" \
  570. " -d output will be in DOS format"
  571. #define dpkg_trivial_usage \
  572. "[-ilCPru] [-F option] package_name"
  573. #define dpkg_full_usage \
  574. "dpkg is a utility to install, remove and manage Debian packages.\n\n" \
  575. "Options:\n" \
  576. " -i Install the package\n" \
  577. " -l List of installed packages\n" \
  578. " -C Configure an unpackaged package\n" \
  579. " -F depends Ignore dependency problems\n" \
  580. " -P Purge all files of a package\n" \
  581. " -r Remove all but the configuration files for a package\n" \
  582. " -u Unpack a package, but don't configure it"
  583. #define dpkg_deb_trivial_usage \
  584. "[-cefxX] FILE [argument]"
  585. #define dpkg_deb_full_usage \
  586. "Perform actions on Debian packages (.debs)\n\n" \
  587. "Options:\n" \
  588. " -c List contents of filesystem tree\n" \
  589. " -e Extract control files to [argument] directory\n" \
  590. " -f Display control field name starting with [argument]\n" \
  591. " -x Extract packages filesystem tree to directory\n" \
  592. " -X Verbose extract"
  593. #define dpkg_deb_example_usage \
  594. "$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp\n"
  595. #define du_trivial_usage \
  596. "[-aHLdclsx" USE_FEATURE_HUMAN_READABLE("hm") "k] [FILE]..."
  597. #define du_full_usage \
  598. "Summarizes disk space used for each FILE and/or directory.\n" \
  599. "Disk space is printed in units of " \
  600. USE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("1024") \
  601. SKIP_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("512") \
  602. " bytes.\n\n" \
  603. "Options:\n" \
  604. " -a show sizes of files in addition to directories\n" \
  605. " -H follow symbolic links that are FILE command line args\n" \
  606. " -L follow all symbolic links encountered\n" \
  607. " -d N limit output to directories (and files with -a) of depth < N\n" \
  608. " -c output a grand total\n" \
  609. " -l count sizes many times if hard linked\n" \
  610. " -s display only a total for each argument\n" \
  611. " -x skip directories on different filesystems\n" \
  612. USE_FEATURE_HUMAN_READABLE( \
  613. " -h print sizes in human readable format (e.g., 1K 243M 2G )\n" \
  614. " -m print sizes in megabytes\n" \
  615. ) \
  616. " -k print sizes in kilobytes" \
  617. USE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("(default)")
  618. #define du_example_usage \
  619. "$ du\n" \
  620. "16 ./CVS\n" \
  621. "12 ./kernel-patches/CVS\n" \
  622. "80 ./kernel-patches\n" \
  623. "12 ./tests/CVS\n" \
  624. "36 ./tests\n" \
  625. "12 ./scripts/CVS\n" \
  626. "16 ./scripts\n" \
  627. "12 ./docs/CVS\n" \
  628. "104 ./docs\n" \
  629. "2417 .\n"
  630. #define dumpkmap_trivial_usage \
  631. "> keymap"
  632. #define dumpkmap_full_usage \
  633. "Prints out a binary keyboard translation table to standard output."
  634. #define dumpkmap_example_usage \
  635. "$ dumpkmap > keymap\n"
  636. #define dumpleases_trivial_usage \
  637. "[-r|-a] [-f LEASEFILE]"
  638. #define dumpleases_full_usage \
  639. "Displays the DHCP leases granted by udhcpd.\n\n" \
  640. "Options:\n" \
  641. " -f, --file=FILENAME Leases file to load\n" \
  642. " -r, --remaining Interpret lease times as time remaining\n" \
  643. " -a, --absolute Interpret lease times as expire time"
  644. #define e2fsck_trivial_usage \
  645. "[-panyrcdfvstDFSV] [-b superblock] [-B blocksize] " \
  646. "[-I inode_buffer_blocks] [-P process_inode_size] " \
  647. "[-l|-L bad_blocks_file] [-C fd] [-j external_journal] " \
  648. "[-E extended-options] device"
  649. #define e2fsck_full_usage \
  650. "Check a Linux ext2/ext3 file system.\n\n" \
  651. "Options:\n" \
  652. " -p Automatic repair (no questions)\n" \
  653. " -n Make no changes to the filesystem\n" \
  654. " -y Assume 'yes' to all questions\n" \
  655. " -c Check for bad blocks and add them to the badblock list\n" \
  656. " -f Force checking even if filesystem is marked clean\n" \
  657. " -v Be verbose\n" \
  658. " -b superblock Use alternative superblock\n" \
  659. " -B blocksize Force blocksize when looking for superblock\n" \
  660. " -j journal Set location of the external journal\n" \
  661. " -l file Add to badblocks list\n" \
  662. " -L file Set badblocks list"
  663. #define echo_trivial_usage \
  664. USE_FEATURE_FANCY_ECHO("[-neE] ") "[ARG ...]"
  665. #define echo_full_usage \
  666. "Prints the specified ARGs to stdout\n\n" \
  667. USE_FEATURE_FANCY_ECHO( \
  668. "Options:\n" \
  669. " -n suppress trailing newline\n" \
  670. " -e interpret backslash-escaped characters (i.e., \\t=tab)\n" \
  671. " -E disable interpretation of backslash-escaped characters" \
  672. )
  673. #define echo_example_usage \
  674. "$ echo \"Erik is cool\"\n" \
  675. "Erik is cool\n" \
  676. USE_FEATURE_FANCY_ECHO("$ echo -e \"Erik\\nis\\ncool\"\n" \
  677. "Erik\n" \
  678. "is\n" \
  679. "cool\n" \
  680. "$ echo \"Erik\\nis\\ncool\"\n" \
  681. "Erik\\nis\\ncool\n")
  682. #define eject_trivial_usage \
  683. "[-t] [-T] [DEVICE]"
  684. #define eject_full_usage \
  685. "Eject specified DEVICE (or default /dev/cdrom).\n\n" \
  686. "Options:\n" \
  687. " -t close tray\n" \
  688. " -T open/close tray (toggle)"
  689. #define ed_trivial_usage ""
  690. #define ed_full_usage ""
  691. #define env_trivial_usage \
  692. "[-iu] [-] [name=value]... [command]"
  693. #define env_full_usage \
  694. "Prints the current environment or runs a program after setting\n" \
  695. "up the specified environment.\n\n" \
  696. "Options:\n" \
  697. " -, -i start with an empty environment\n" \
  698. " -u remove variable from the environment"
  699. #define ether_wake_trivial_usage \
  700. "[-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC"
  701. #define ether_wake_full_usage \
  702. "Send a magic packet to wake up sleeping machines.\n" \
  703. "MAC must be a station address (00:11:22:33:44:55) or\n" \
  704. " a hostname with a known 'ethers' entry.\n\n" \
  705. "Options:\n" \
  706. " -b Send wake-up packet to the broadcast address\n" \
  707. " -i iface Use interface ifname instead of the default \"eth0\"\n" \
  708. " -p pass Append the four or six byte password PW to the packet"
  709. #define expr_trivial_usage \
  710. "EXPRESSION"
  711. #define expr_full_usage \
  712. "Prints the value of EXPRESSION to standard output.\n\n" \
  713. "EXPRESSION may be:\n" \
  714. " ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" \
  715. " ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0\n" \
  716. " ARG1 < ARG2 ARG1 is less than ARG2\n" \
  717. " ARG1 <= ARG2 ARG1 is less than or equal to ARG2\n" \
  718. " ARG1 = ARG2 ARG1 is equal to ARG2\n" \
  719. " ARG1 != ARG2 ARG1 is unequal to ARG2\n" \
  720. " ARG1 >= ARG2 ARG1 is greater than or equal to ARG2\n" \
  721. " ARG1 > ARG2 ARG1 is greater than ARG2\n" \
  722. " ARG1 + ARG2 arithmetic sum of ARG1 and ARG2\n" \
  723. " ARG1 - ARG2 arithmetic difference of ARG1 and ARG2\n" \
  724. " ARG1 * ARG2 arithmetic product of ARG1 and ARG2\n" \
  725. " ARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2\n" \
  726. " ARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2\n" \
  727. " STRING : REGEXP anchored pattern match of REGEXP in STRING\n" \
  728. " match STRING REGEXP same as STRING : REGEXP\n" \
  729. " substr STRING POS LENGTH substring of STRING, POS counted from 1\n" \
  730. " index STRING CHARS index in STRING where any CHARS is found,\n" \
  731. " or 0\n" \
  732. " length STRING length of STRING\n" \
  733. " quote TOKEN interpret TOKEN as a string, even if\n" \
  734. " it is a keyword like 'match' or an\n" \
  735. " operator like '/'\n" \
  736. " ( EXPRESSION ) value of EXPRESSION\n\n" \
  737. "Beware that many operators need to be escaped or quoted for shells.\n" \
  738. "Comparisons are arithmetic if both ARGs are numbers, else\n" \
  739. "lexicographical. Pattern matches return the string matched between\n" \
  740. "\\( and \\) or null; if \\( and \\) are not used, they return the number\n" \
  741. "of characters matched or 0."
  742. #define fakeidentd_trivial_usage \
  743. "[-b ip] [STRING]"
  744. #define fakeidentd_full_usage \
  745. "Returns a set string to auth requests\n\n" \
  746. " -b Bind to ip address\n" \
  747. " STRING The ident answer string (default is nobody)"
  748. #define false_trivial_usage \
  749. ""
  750. #define false_full_usage \
  751. "Return an exit code of FALSE (1)."
  752. #define false_example_usage \
  753. "$ false\n" \
  754. "$ echo $?\n" \
  755. "1\n"
  756. #define fbset_trivial_usage \
  757. "[options] [mode]"
  758. #define fbset_full_usage \
  759. "Show and modify frame buffer settings"
  760. #define fbset_example_usage \
  761. "$ fbset\n" \
  762. "mode \"1024x768-76\"\n" \
  763. " # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz\n" \
  764. " geometry 1024 768 1024 768 16\n" \
  765. " timings 12714 128 32 16 4 128 4\n" \
  766. " accel false\n" \
  767. " rgba 5/11,6/5,5/0,0/0\n" \
  768. "endmode\n"
  769. #define fdflush_trivial_usage \
  770. "DEVICE"
  771. #define fdflush_full_usage \
  772. "Forces floppy disk drive to detect disk change"
  773. #define fdformat_trivial_usage \
  774. "[-n] DEVICE"
  775. #define fdformat_full_usage \
  776. "Low-level formats a floppy disk\n\n" \
  777. "Options:\n" \
  778. " -n Don't verify after format"
  779. #define fdisk_trivial_usage \
  780. "[-luv] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK"
  781. #define fdisk_full_usage \
  782. "Change partition table\n" \
  783. "Options:\n" \
  784. " -l List partition table(s)\n" \
  785. " -u Give Start and End in sector (instead of cylinder) units\n" \
  786. " -s PARTITION Give partition size(s) in blocks\n" \
  787. " -b 2048: (for certain MO disks) use 2048-byte sectors\n" \
  788. " -C CYLINDERS Set the number of cylinders\n" \
  789. " -H HEADS Set the number of heads\n" \
  790. " -S SECTORS Set the number of sectors\n" \
  791. " -v Give fdisk version"
  792. #define find_trivial_usage \
  793. "[PATH...] [EXPRESSION]"
  794. #define find_full_usage \
  795. "Search for files in a directory hierarchy. The default PATH is\n" \
  796. "the current directory; default EXPRESSION is '-print'\n" \
  797. "\nEXPRESSION may consist of:\n" \
  798. " -follow Dereference symbolic links\n" \
  799. " -name PATTERN File name (leading directories removed) matches PATTERN\n" \
  800. " -print Print (default and assumed)" \
  801. USE_FEATURE_FIND_PRINT0( \
  802. "\n -print0 Delimit output with null characters rather than" \
  803. "\n newlines" \
  804. ) USE_FEATURE_FIND_TYPE( \
  805. "\n -type X Filetype matches X (where X is one of: f,d,l,b,c,...)" \
  806. ) USE_FEATURE_FIND_PERM( \
  807. "\n -perm PERMS Permissions match any of (+NNN); all of (-NNN);" \
  808. "\n or exactly (NNN)" \
  809. ) USE_FEATURE_FIND_MTIME( \
  810. "\n -mtime DAYS Modified time is greater than (+N); less than (-N);" \
  811. "\n or exactly (N) days" \
  812. ) USE_FEATURE_FIND_MMIN( \
  813. "\n -mmin MINS Modified time is greater than (+N); less than (-N);" \
  814. "\n or exactly (N) minutes" \
  815. ) USE_FEATURE_FIND_NEWER( \
  816. "\n -newer FILE Modified time is more recent than FILE's" \
  817. ) USE_FEATURE_FIND_INUM( \
  818. "\n -inum N File has inode number N" \
  819. ) USE_FEATURE_FIND_EXEC( \
  820. "\n -exec CMD Execute CMD with all instances of {} replaced by the" \
  821. "\n files matching EXPRESSION" \
  822. ) USE_DESKTOP( \
  823. "\n -size N File size is N" \
  824. "\n -prune Stop traversing current subtree" \
  825. "\n (expr) Group" \
  826. )
  827. #define find_example_usage \
  828. "$ find / -name passwd\n" \
  829. "/etc/passwd\n"
  830. #define fold_trivial_usage \
  831. "[-bs] [-w WIDTH] [FILE]"
  832. #define fold_full_usage \
  833. "Wrap input lines in each FILE (standard input by default), writing to\n" \
  834. "standard output.\n\n" \
  835. "Options:\n" \
  836. " -b count bytes rather than columns\n" \
  837. " -s break at spaces\n" \
  838. " -w use WIDTH columns instead of 80"
  839. #define free_trivial_usage \
  840. ""
  841. #define free_full_usage \
  842. "Displays the amount of free and used system memory"
  843. #define free_example_usage \
  844. "$ free\n" \
  845. " total used free shared buffers\n" \
  846. " Mem: 257628 248724 8904 59644 93124\n" \
  847. " Swap: 128516 8404 120112\n" \
  848. "Total: 386144 257128 129016\n" \
  849. #define freeramdisk_trivial_usage \
  850. "DEVICE"
  851. #define freeramdisk_full_usage \
  852. "Frees all memory used by the specified ramdisk."
  853. #define freeramdisk_example_usage \
  854. "$ freeramdisk /dev/ram2\n"
  855. #define fsck_trivial_usage \
  856. "[-ANPRTV] [ -C [ fd ] ] [-t fstype] [fs-options] [filesys ...]"
  857. #define fsck_full_usage \
  858. "Check and repair filesystems.\n\n" \
  859. "Options:\n" \
  860. " -A Walk /etc/fstab and check all filesystems\n" \
  861. " -N Don't execute, just show what would be done\n" \
  862. " -P When using -A, check filesystems in parallel\n" \
  863. " -R When using -A, skip the root filesystem\n" \
  864. " -T Don't show title on startup\n" \
  865. " -V Verbose mode\n" \
  866. " -C Write status information to specified filedescriptor\n" \
  867. " -t List of filesystem types to check"
  868. #define fsck_minix_trivial_usage \
  869. "[-larvsmf] /dev/name"
  870. #define fsck_minix_full_usage \
  871. "Performs a consistency check for MINIX filesystems.\n\n" \
  872. "Options:\n" \
  873. " -l Lists all filenames\n" \
  874. " -r Perform interactive repairs\n" \
  875. " -a Perform automatic repairs\n" \
  876. " -v verbose\n" \
  877. " -s Outputs super-block information\n" \
  878. " -m Activates MINIX-like \"mode not cleared\" warnings\n" \
  879. " -f Force file system check"
  880. #define ftpget_trivial_usage \
  881. "[options] remote-host local-file remote-file"
  882. #define ftpget_full_usage \
  883. "Retrieve a remote file via FTP.\n\n" \
  884. "Options:\n" \
  885. " -c, --continue Continue a previous transfer\n" \
  886. " -v, --verbose Verbose\n" \
  887. " -u, --username Username to be used\n" \
  888. " -p, --password Password to be used\n" \
  889. " -P, --port Port number to be used"
  890. #define ftpput_trivial_usage \
  891. "[options] remote-host remote-file local-file"
  892. #define ftpput_full_usage \
  893. "Store a local file on a remote machine via FTP.\n\n" \
  894. "Options:\n" \
  895. " -v, --verbose Verbose\n" \
  896. " -u, --username Username to be used\n" \
  897. " -p, --password Password to be used\n" \
  898. " -P, --port Port number to be used"
  899. #define fuser_trivial_usage \
  900. "[options] file OR port/proto"
  901. #define fuser_full_usage \
  902. "Options:\n" \
  903. " -m Show all processes on the same mounted fs\n" \
  904. " -k Kill all processes that match.\n" \
  905. " -s Don't print or kill anything.\n" \
  906. " -4 When using port/proto only search IPv4 space\n" \
  907. " -6 When using port/proto only search IPv6 space\n" \
  908. " -SIGNAL When used with -k, this signal will be used to kill"
  909. #define getopt_trivial_usage \
  910. "[OPTIONS]..."
  911. #define getopt_full_usage \
  912. "Parse command options\n" \
  913. " -a, --alternative Allow long options starting with single -\n" \
  914. " -l, --longoptions=longopts Long options to be recognized\n" \
  915. " -n, --name=progname The name under which errors are reported\n" \
  916. " -o, --options=optstring Short options to be recognized\n" \
  917. " -q, --quiet Disable error reporting by getopt(3)\n" \
  918. " -Q, --quiet-output No normal output\n" \
  919. " -s, --shell=shell Set shell quoting conventions\n" \
  920. " -T, --test Test for getopt(1) version\n" \
  921. " -u, --unquoted Do not quote the output"
  922. #define getopt_example_usage \
  923. "$ cat getopt.test\n" \
  924. "#!/bin/sh\n" \
  925. "GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \\\n" \
  926. " -n 'example.busybox' -- \"$@\"`\n" \
  927. "if [ $? != 0 ] ; then exit 1 ; fi\n" \
  928. "eval set -- \"$GETOPT\"\n" \
  929. "while true ; do\n" \
  930. " case $1 in\n" \
  931. " -a|--a-long) echo \"Option a\" ; shift ;;\n" \
  932. " -b|--b-long) echo \"Option b, argument '$2'\" ; shift 2 ;;\n" \
  933. " -c|--c-long)\n" \
  934. " case \"$2\" in\n" \
  935. " \"\") echo \"Option c, no argument\"; shift 2 ;;\n" \
  936. " *) echo \"Option c, argument '$2'\" ; shift 2 ;;\n" \
  937. " esac ;;\n" \
  938. " --) shift ; break ;;\n" \
  939. " *) echo \"Internal error!\" ; exit 1 ;;\n" \
  940. " esac\n" \
  941. "done\n"
  942. #define getty_trivial_usage \
  943. "[OPTIONS]... baud_rate,... line [termtype]"
  944. #define getty_full_usage \
  945. "Opens a tty, prompts for a login name, then invokes /bin/login\n\n" \
  946. "Options:\n" \
  947. " -h Enable hardware (RTS/CTS) flow control\n" \
  948. " -i Do not display /etc/issue before running login\n" \
  949. " -L Local line, so do not do carrier detect\n" \
  950. " -m Get baud rate from modem's CONNECT status message\n" \
  951. " -w Wait for a CR or LF before sending /etc/issue\n" \
  952. " -n Do not prompt the user for a login name\n" \
  953. " -f issue_file Display issue_file instead of /etc/issue\n" \
  954. " -l login_app Invoke login_app instead of /bin/login\n" \
  955. " -t timeout Terminate after timeout if no username is read\n" \
  956. " -I initstring Sets the init string to send before anything else\n" \
  957. " -H login_host Log login_host into the utmp file as the hostname"
  958. #define grep_trivial_usage \
  959. "[-rihHnqvso" \
  960. USE_FEATURE_GREP_EGREP_ALIAS("E") \
  961. USE_FEATURE_GREP_CONTEXT("ABC") \
  962. "] PATTERN [FILEs...]"
  963. #define grep_full_usage \
  964. "Search for PATTERN in each FILE or standard input.\n\n" \
  965. "Options:\n" \
  966. " -H prefix output lines with filename where match was found\n" \
  967. " -h suppress the prefixing filename on output\n" \
  968. " -r recurse subdirectories\n" \
  969. " -i ignore case distinctions\n" \
  970. " -l list names of files that match\n" \
  971. " -L list names of files that do not match\n" \
  972. " -n print line number with output lines\n" \
  973. " -q be quiet. Returns 0 if PATTERN was found, 1 otherwise\n" \
  974. " -v select non-matching lines\n" \
  975. " -s suppress file open/read error messages\n" \
  976. " -c only print count of matching lines\n" \
  977. " -f read PATTERN from file\n" \
  978. " -o show only the part of a line that matches PATTERN\n" \
  979. " -e PATTERN is a regular expression\n" \
  980. " -F PATTERN is a set of newline-separated strings" \
  981. USE_FEATURE_GREP_EGREP_ALIAS("\n -E PATTERN is an extended regular expression") \
  982. USE_FEATURE_GREP_CONTEXT("\n -A print NUM lines of trailing context") \
  983. USE_FEATURE_GREP_CONTEXT("\n -B print NUM lines of leading context") \
  984. USE_FEATURE_GREP_CONTEXT("\n -C print NUM lines of output context")
  985. #define grep_example_usage \
  986. "$ grep root /etc/passwd\n" \
  987. "root:x:0:0:root:/root:/bin/bash\n" \
  988. "$ grep ^[rR]oo. /etc/passwd\n" \
  989. "root:x:0:0:root:/root:/bin/bash\n"
  990. #define gunzip_trivial_usage \
  991. "[OPTION]... FILE"
  992. #define gunzip_full_usage \
  993. "Uncompress FILE (or standard input if FILE is '-').\n\n" \
  994. "Options:\n" \
  995. " -c Write output to standard output\n" \
  996. " -f Force read when source is a terminal\n" \
  997. " -t Test compressed file integrity"
  998. #define gunzip_example_usage \
  999. "$ ls -la /tmp/BusyBox*\n" \
  1000. "-rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n" \
  1001. "$ gunzip /tmp/BusyBox-0.43.tar.gz\n" \
  1002. "$ ls -la /tmp/BusyBox*\n" \
  1003. "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n"
  1004. #define gzip_trivial_usage \
  1005. "[OPTION]... [FILE]..."
  1006. #define gzip_full_usage \
  1007. "Compress FILE(s) with maximum compression.\n" \
  1008. "When FILE is '-' or unspecified, reads standard input. Implies -c.\n\n" \
  1009. "Options:\n" \
  1010. " -c Write output to standard output instead of FILE.gz\n" \
  1011. " -d Decompress\n" \
  1012. " -f Force write when destination is a terminal"
  1013. #define gzip_example_usage \
  1014. "$ ls -la /tmp/busybox*\n" \
  1015. "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox.tar\n" \
  1016. "$ gzip /tmp/busybox.tar\n" \
  1017. "$ ls -la /tmp/busybox*\n" \
  1018. "-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"
  1019. #define halt_trivial_usage \
  1020. "[-d<delay>] [-n<nosync>] [-f<force>]"
  1021. #define halt_full_usage \
  1022. "Halt the system.\n" \
  1023. "Options:\n" \
  1024. " -d delay interval for halting\n" \
  1025. " -n no call to sync()\n" \
  1026. " -f force halt (don't go through init)"
  1027. #define hdparm_trivial_usage \
  1028. "[options] [device] .."
  1029. #define hdparm_full_usage \
  1030. USE_FEATURE_HDPARM_GET_IDENTITY(" If no device name is specified try to read from stdin.\n") \
  1031. "\nOptions:\n" \
  1032. " -a get/set fs readahead\n" \
  1033. " -A set drive read-lookahead flag (0/1)\n" \
  1034. " -b get/set bus state (0 == off, 1 == on, 2 == tristate)\n" \
  1035. " -B set Advanced Power Management setting (1-255)\n" \
  1036. " -c get/set IDE 32-bit IO setting\n" \
  1037. " -C check IDE power mode status\n" \
  1038. USE_FEATURE_HDPARM_HDIO_GETSET_DMA(" -d get/set using_dma flag\n") \
  1039. " -D enable/disable drive defect-mgmt\n" \
  1040. " -f flush buffer cache for device on exit\n" \
  1041. " -g display drive geometry\n" \
  1042. " -h display terse usage information\n" \
  1043. USE_FEATURE_HDPARM_GET_IDENTITY(" -i display drive identification\n") \
  1044. USE_FEATURE_HDPARM_GET_IDENTITY(" -I detailed/current information directly from drive\n") \
  1045. " -k get/set keep_settings_over_reset flag (0/1)\n" \
  1046. " -K set drive keep_features_over_reset flag (0/1)\n" \
  1047. " -L set drive doorlock (0/1) (removable harddisks only)\n" \
  1048. " -m get/set multiple sector count\n" \
  1049. " -n get/set ignore-write-errors flag (0/1)\n" \
  1050. " -p set PIO mode on IDE interface chipset (0,1,2,3,4,...)\n" \
  1051. " -P set drive prefetch count\n" \
  1052. " -q change next setting quietly\n" \
  1053. " -Q get/set DMA tagged-queuing depth (if supported)\n" \
  1054. " -r get/set readonly flag (DANGEROUS to set)\n" \
  1055. USE_FEATURE_HDPARM_HDIO_SCAN_HWIF(" -R register an IDE interface (DANGEROUS)\n") \
  1056. " -S set standby (spindown) timeout\n" \
  1057. " -t perform device read timings\n" \
  1058. " -T perform cache read timings\n" \
  1059. " -u get/set unmaskirq flag (0/1)\n" \
  1060. USE_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF(" -U un-register an IDE interface (DANGEROUS)\n") \
  1061. " -v defaults; same as -mcudkrag for IDE drives\n" \
  1062. " -V display program version and exit immediately\n" \
  1063. USE_FEATURE_HDPARM_HDIO_DRIVE_RESET(" -w perform device reset (DANGEROUS)\n") \
  1064. " -W set drive write-caching flag (0/1) (DANGEROUS)\n" \
  1065. USE_FEATURE_HDPARM_HDIO_TRISTATE_HWIF(" -x tristate device for hotswap (0/1) (DANGEROUS)\n") \
  1066. " -X set IDE xfer mode (DANGEROUS)\n" \
  1067. " -y put IDE drive in standby mode\n" \
  1068. " -Y put IDE drive to sleep\n" \
  1069. " -Z disable Seagate auto-powersaving mode\n" \
  1070. " -z re-read partition table"
  1071. #define head_trivial_usage \
  1072. "[OPTION]... [FILE]..."
  1073. #define head_full_usage \
  1074. "Print first 10 lines of each FILE to standard output.\n" \
  1075. "With more than one FILE, precede each with a header giving the\n" \
  1076. "file name. With no FILE, or when FILE is -, read standard input.\n\n" \
  1077. "Options:\n" \
  1078. " -n NUM Print first NUM lines instead of first 10" \
  1079. USE_FEATURE_FANCY_HEAD( \
  1080. "\n -c NUM output the first NUM bytes\n" \
  1081. " -q never output headers giving file names\n" \
  1082. " -v always output headers giving file names" )
  1083. #define head_example_usage \
  1084. "$ head -n 2 /etc/passwd\n" \
  1085. "root:x:0:0:root:/root:/bin/bash\n" \
  1086. "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n"
  1087. #define hexdump_trivial_usage \
  1088. "[-[bcCdefnosvx]] [OPTION] FILE"
  1089. #define hexdump_full_usage \
  1090. "The hexdump utility is a filter which displays the specified files,\n" \
  1091. "or the standard input, if no files are specified, in a user specified\n" \
  1092. "format\n" \
  1093. " -b One-byte octal display\n" \
  1094. " -c One-byte character display\n" \
  1095. " -C Canonical hex+ASCII, 16 bytes per line\n" \
  1096. " -d Two-byte decimal display\n" \
  1097. " -e FORMAT STRING\n" \
  1098. " -f FORMAT FILE\n" \
  1099. " -n LENGTH Interpret only length bytes of input\n" \
  1100. " -o Two-byte octal display\n" \
  1101. " -s OFFSET Skip offset byte\n" \
  1102. " -v display all input data\n" \
  1103. " -x Two-byte hexadecimal display"
  1104. #define hostid_trivial_usage \
  1105. ""
  1106. #define hostid_full_usage \
  1107. "Print out a unique 32-bit identifier for the machine."
  1108. #define hostname_trivial_usage \
  1109. "[OPTION] {hostname | -F FILE}"
  1110. #define hostname_full_usage \
  1111. "Get or set the hostname or DNS domain name. If a hostname is given\n" \
  1112. "(or FILE with the -F parameter), the host name will be set.\n\n" \
  1113. "Options:\n" \
  1114. " -s Short\n" \
  1115. " -i Addresses for the hostname\n" \
  1116. " -d DNS domain name\n" \
  1117. " -f Fully qualified domain name\n" \
  1118. " -F FILE Use the contents of FILE to specify the hostname"
  1119. #define hostname_example_usage \
  1120. "$ hostname\n" \
  1121. "sage\n"
  1122. #define httpd_trivial_usage \
  1123. "[-c <conf file>]" \
  1124. " [-p <port>]" \
  1125. " [-i] [-f]" \
  1126. USE_FEATURE_HTTPD_SETUID(" [-u user[:grp]]") \
  1127. USE_FEATURE_HTTPD_BASIC_AUTH(" [-r <realm>]") \
  1128. USE_FEATURE_HTTPD_AUTH_MD5(" [-m pass]") \
  1129. " [-h home]" \
  1130. " [-d/-e <string>]"
  1131. #define httpd_full_usage \
  1132. "Listens for incoming http server requests.\n\n" \
  1133. "Options:\n" \
  1134. " -c FILE Specifies configuration file. (default httpd.conf)\n" \
  1135. " -p PORT Server port (default 80)\n" \
  1136. " -i Assume that we are started from inetd\n" \
  1137. " -f Do not daemonize\n" \
  1138. USE_FEATURE_HTTPD_SETUID(" -u USER[:GRP] Set uid/gid after binding to port\n") \
  1139. USE_FEATURE_HTTPD_BASIC_AUTH(" -r REALM Authentication Realm for Basic Authentication\n") \
  1140. USE_FEATURE_HTTPD_AUTH_MD5(" -m PASS Crypt PASS with md5 algorithm\n") \
  1141. " -h HOME Specifies http HOME directory (default ./)\n" \
  1142. " -e STRING HTML encode STRING\n" \
  1143. " -d STRING URL decode STRING"
  1144. #define hwclock_trivial_usage \
  1145. "[-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc]"
  1146. #define hwclock_full_usage \
  1147. "Query and set the hardware clock (RTC)\n\n" \
  1148. "Options:\n" \
  1149. " -r read hardware clock and print result\n" \
  1150. " -s set the system time from the hardware clock\n" \
  1151. " -w set the hardware clock to the current system time\n" \
  1152. " -u the hardware clock is kept in coordinated universal time\n" \
  1153. " -l the hardware clock is kept in local time"
  1154. #define id_trivial_usage \
  1155. "[OPTIONS]... [USERNAME]"
  1156. #define id_full_usage \
  1157. "Print information for USERNAME or the current user\n\n" \
  1158. "Options:\n" \
  1159. USE_SELINUX(" -c prints only the security context\n") \
  1160. " -g prints only the group ID\n" \
  1161. " -u prints only the user ID\n" \
  1162. " -n print a name instead of a number\n" \
  1163. " -r prints the real user ID instead of the effective ID"
  1164. #define id_example_usage \
  1165. "$ id\n" \
  1166. "uid=1000(andersen) gid=1000(andersen)\n"
  1167. #define ifconfig_trivial_usage \
  1168. USE_FEATURE_IFCONFIG_STATUS("[-a]") " <interface> [<address>]"
  1169. #define ifconfig_full_usage \
  1170. "configure a network interface\n\n" \
  1171. "Options:\n" \
  1172. USE_FEATURE_IPV6(" [add <address>[/<prefixlen>]]\n") \
  1173. USE_FEATURE_IPV6(" [del <address>[/<prefixlen>]]\n") \
  1174. " [[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \
  1175. " [netmask <address>] [dstaddr <address>]\n" \
  1176. USE_FEATURE_IFCONFIG_SLIP(" [outfill <NN>] [keepalive <NN>]\n") \
  1177. " " USE_FEATURE_IFCONFIG_HW("[hw ether <address>] ") \
  1178. "[metric <NN>] [mtu <NN>]\n" \
  1179. " [[-]trailers] [[-]arp] [[-]allmulti]\n" \
  1180. " [multicast] [[-]promisc] [txqueuelen <NN>] [[-]dynamic]\n" \
  1181. USE_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ(" [mem_start <NN>] [io_addr <NN>] [irq <NN>]\n") \
  1182. " [up|down] ..."
  1183. #define ifup_trivial_usage \
  1184. "<-ahinv> <ifaces...>"
  1185. #define ifup_full_usage \
  1186. "ifup <options> <ifaces...>\n\n" \
  1187. "Options:\n" \
  1188. " -h this help\n" \
  1189. " -a de/configure all interfaces automatically\n" \
  1190. " -i FILE use FILE for interface definitions\n" \
  1191. " -n print out what would happen, but don't do it\n" \
  1192. " (note that this option doesn't disable mappings)\n" \
  1193. " -v print out what would happen before doing it\n" \
  1194. " -m don't run any mappings\n" \
  1195. " -f force de/configuration"
  1196. #define ifdown_trivial_usage \
  1197. "<-ahinv> <ifaces...>"
  1198. #define ifdown_full_usage \
  1199. "ifdown <options> <ifaces...>\n\n" \
  1200. "Options:\n" \
  1201. " -h this help\n" \
  1202. " -a de/configure all interfaces automatically\n" \
  1203. " -i FILE use FILE for interface definitions\n" \
  1204. " -n print out what would happen, but don't do it\n" \
  1205. " (note that this option doesn't disable mappings)\n" \
  1206. " -v print out what would happen before doing it\n" \
  1207. " -m don't run any mappings\n" \
  1208. " -f force de/configuration"
  1209. #define inetd_trivial_usage \
  1210. "[-f] [-q len] [conf]"
  1211. #define inetd_full_usage \
  1212. "Listens for network connections and launches programs\n\n" \
  1213. "Option:\n" \
  1214. " -f Run as a foreground progress\n" \
  1215. " -q Sets the size of the socket listen queue to\n" \
  1216. " the specified value. Default is 128"
  1217. #define init_trivial_usage \
  1218. ""
  1219. #define init_full_usage \
  1220. "Init is the parent of all processes."
  1221. #define init_notes_usage \
  1222. "This version of init is designed to be run only by the kernel.\n" \
  1223. "\n" \
  1224. "BusyBox init doesn't support multiple runlevels. The runlevels field of\n" \
  1225. "the /etc/inittab file is completely ignored by BusyBox init. If you want\n" \
  1226. "runlevels, use sysvinit.\n" \
  1227. "\n" \
  1228. "BusyBox init works just fine without an inittab. If no inittab is found,\n" \
  1229. "it has the following default behavior:\n" \
  1230. "\n" \
  1231. " ::sysinit:/etc/init.d/rcS\n" \
  1232. " ::askfirst:/bin/sh\n" \
  1233. " ::ctrlaltdel:/sbin/reboot\n" \
  1234. " ::shutdown:/sbin/swapoff -a\n" \
  1235. " ::shutdown:/bin/umount -a -r\n" \
  1236. " ::restart:/sbin/init\n" \
  1237. "\n" \
  1238. "if it detects that /dev/console is _not_ a serial console, it will also run:\n" \
  1239. "\n" \
  1240. " tty2::askfirst:/bin/sh\n" \
  1241. " tty3::askfirst:/bin/sh\n" \
  1242. " tty4::askfirst:/bin/sh\n" \
  1243. "\n" \
  1244. "If you choose to use an /etc/inittab file, the inittab entry format is as follows:\n" \
  1245. "\n" \
  1246. " <id>:<runlevels>:<action>:<process>\n" \
  1247. "\n" \
  1248. " <id>:\n" \
  1249. "\n" \
  1250. " WARNING: This field has a non-traditional meaning for BusyBox init!\n" \
  1251. " The id field is used by BusyBox init to specify the controlling tty for\n" \
  1252. " the specified process to run on. The contents of this field are\n" \
  1253. " appended to \"/dev/\" and used as-is. There is no need for this field to\n" \
  1254. " be unique, although if it isn't you may have strange results. If this\n" \
  1255. " field is left blank, the controlling tty is set to the console. Also\n" \
  1256. " note that if BusyBox detects that a serial console is in use, then only\n" \
  1257. " entries whose controlling tty is either the serial console or /dev/null\n" \
  1258. " will be run. BusyBox init does nothing with utmp. We don't need no\n" \
  1259. " stinkin' utmp.\n" \
  1260. "\n" \
  1261. " <runlevels>:\n" \
  1262. "\n" \
  1263. " The runlevels field is completely ignored.\n" \
  1264. "\n" \
  1265. " <action>:\n" \
  1266. "\n" \
  1267. " Valid actions include: sysinit, respawn, askfirst, wait,\n" \
  1268. " once, restart, ctrlaltdel, and shutdown.\n" \
  1269. "\n" \
  1270. " The available actions can be classified into two groups: actions\n" \
  1271. " that are run only once, and actions that are re-run when the specified\n" \
  1272. " process exits.\n" \
  1273. "\n" \
  1274. " Run only-once actions:\n" \
  1275. "\n" \
  1276. " 'sysinit' is the first item run on boot. init waits until all\n" \
  1277. " sysinit actions are completed before continuing. Following the\n" \
  1278. " completion of all sysinit actions, all 'wait' actions are run.\n" \
  1279. " 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \
  1280. " the specified task completes. 'once' actions are asynchronous,\n" \
  1281. " therefore, init does not wait for them to complete. 'restart' is\n" \
  1282. " the action taken to restart the init process. By default this should\n" \
  1283. " simply run /sbin/init, but can be a script which runs pivot_root or it\n" \
  1284. " can do all sorts of other interesting things. The 'ctrlaltdel' init\n" \
  1285. " actions are run when the system detects that someone on the system\n" \
  1286. " console has pressed the CTRL-ALT-DEL key combination. Typically one\n" \
  1287. " wants to run 'reboot' at this point to cause the system to reboot.\n" \
  1288. " Finally the 'shutdown' action specifies the actions to taken when\n" \
  1289. " init is told to reboot. Unmounting filesystems and disabling swap\n" \
  1290. " is a very good here\n" \
  1291. "\n" \
  1292. " Run repeatedly actions:\n" \
  1293. "\n" \
  1294. " 'respawn' actions are run after the 'once' actions. When a process\n" \
  1295. " started with a 'respawn' action exits, init automatically restarts\n" \
  1296. " it. Unlike sysvinit, BusyBox init does not stop processes from\n" \
  1297. " respawning out of control. The 'askfirst' actions acts just like\n" \
  1298. " respawn, except that before running the specified process it\n" \
  1299. " displays the line \"Please press Enter to activate this console.\"\n" \
  1300. " and then waits for the user to press enter before starting the\n" \
  1301. " specified process.\n" \
  1302. "\n" \
  1303. " Unrecognized actions (like initdefault) will cause init to emit an\n" \
  1304. " error message, and then go along with its business. All actions are\n" \
  1305. " run in the order they appear in /etc/inittab.\n" \
  1306. "\n" \
  1307. " <process>:\n" \
  1308. "\n" \
  1309. " Specifies the process to be executed and its command line.\n" \
  1310. "\n" \
  1311. "Example /etc/inittab file:\n" \
  1312. "\n" \
  1313. " # This is run first except when booting in single-user mode.\n" \
  1314. " #\n" \
  1315. " ::sysinit:/etc/init.d/rcS\n" \
  1316. " \n" \
  1317. " # /bin/sh invocations on selected ttys\n" \
  1318. " #\n" \
  1319. " # Start an \"askfirst\" shell on the console (whatever that may be)\n" \
  1320. " ::askfirst:-/bin/sh\n" \
  1321. " # Start an \"askfirst\" shell on /dev/tty2-4\n" \
  1322. " tty2::askfirst:-/bin/sh\n" \
  1323. " tty3::askfirst:-/bin/sh\n" \
  1324. " tty4::askfirst:-/bin/sh\n" \
  1325. " \n" \
  1326. " # /sbin/getty invocations for selected ttys\n" \
  1327. " #\n" \
  1328. " tty4::respawn:/sbin/getty 38400 tty4\n" \
  1329. " tty5::respawn:/sbin/getty 38400 tty5\n" \
  1330. " \n" \
  1331. " \n" \
  1332. " # Example of how to put a getty on a serial line (for a terminal)\n" \
  1333. " #\n" \
  1334. " #::respawn:/sbin/getty -L ttyS0 9600 vt100\n" \
  1335. " #::respawn:/sbin/getty -L ttyS1 9600 vt100\n" \
  1336. " #\n" \
  1337. " # Example how to put a getty on a modem line.\n" \
  1338. " #::respawn:/sbin/getty 57600 ttyS2\n" \
  1339. " \n" \
  1340. " # Stuff to do when restarting the init process\n" \
  1341. " ::restart:/sbin/init\n" \
  1342. " \n" \
  1343. " # Stuff to do before rebooting\n" \
  1344. " ::ctrlaltdel:/sbin/reboot\n" \
  1345. " ::shutdown:/bin/umount -a -r\n" \
  1346. " ::shutdown:/sbin/swapoff -a\n"
  1347. #define insmod_trivial_usage \
  1348. "[OPTION]... MODULE [symbol=value]..."
  1349. #define insmod_full_usage \
  1350. "Loads the specified kernel modules into the kernel.\n\n" \
  1351. "Options:\n" \
  1352. " -f Force module to load into the wrong kernel version\n" \
  1353. " -k Make module autoclean-able\n" \
  1354. " -v verbose output\n" \
  1355. " -q quiet output\n" \
  1356. " -L Lock to prevent simultaneous loads of a module\n" \
  1357. USE_FEATURE_INSMOD_LOAD_MAP(" -m Output load map to stdout\n") \
  1358. " -o NAME Set internal module name to NAME\n" \
  1359. " -x do not export externs"
  1360. #define install_trivial_usage \
  1361. "[-cgmops] [sources] <dest|directory>"
  1362. #define install_full_usage \
  1363. "Copies files and set attributes\n\n" \
  1364. "Options:\n" \
  1365. " -c copy the file, default\n" \
  1366. " -d create directories\n" \
  1367. " -g set group ownership\n" \
  1368. " -m set permission modes\n" \
  1369. " -o set ownership\n" \
  1370. " -p preserve date\n" \
  1371. " -s strip symbol tables"
  1372. #define ip_trivial_usage \
  1373. "[OPTIONS] {address | link | route | tunnel | rule} {COMMAND}"
  1374. #define ip_full_usage \
  1375. "ip [OPTIONS] OBJECT {COMMAND}\n" \
  1376. "where OBJECT := {link | addr | route | tunnel |rule}\n" \
  1377. "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }"
  1378. #define ipaddr_trivial_usage \
  1379. "{ {add|del} IFADDR dev STRING | {show|flush}\n" \
  1380. " [ dev STRING ] [ to PREFIX ] }"
  1381. #define ipaddr_full_usage \
  1382. "ipaddr {add|delete} IFADDR dev STRING\n" \
  1383. "ipaddr {show|flush} [ dev STRING ] [ scope SCOPE-ID ]\n" \
  1384. " [ to PREFIX ] [ label PATTERN ]\n" \
  1385. " IFADDR := PREFIX | ADDR peer PREFIX\n" \
  1386. " [ broadcast ADDR ] [ anycast ADDR ]\n" \
  1387. " [ label STRING ] [ scope SCOPE-ID ]\n" \
  1388. " SCOPE-ID := [ host | link | global | NUMBER ]"
  1389. #define ipcalc_trivial_usage \
  1390. "[OPTION]... <ADDRESS>[[/]<NETMASK>] [NETMASK]"
  1391. #define ipcalc_full_usage \
  1392. "Calculate IP network settings from a IP address\n\n" \
  1393. "Options:\n" \
  1394. " -b --broadcast Display calculated broadcast address\n" \
  1395. " -n --network Display calculated network address\n" \
  1396. " -m --netmask Display default netmask for IP" \
  1397. USE_FEATURE_IPCALC_FANCY( \
  1398. "\n -p --prefix Display the prefix for IP/NETMASK\n" \
  1399. " -h --hostname Display first resolved host name\n" \
  1400. " -s --silent Don't ever display error messages")
  1401. #define ipcrm_trivial_usage \
  1402. "[-[MQS] key] [-[mqs] id]"
  1403. #define ipcrm_full_usage \
  1404. "The upper-case options MQS are used to remove a shared memory segment by a\n" \
  1405. "segment by a shmkey value. The lower-case options mqs are used\n" \
  1406. "to remove a segment by shmid value.\n" \
  1407. " -[mM] Remove the memory segment after the last detach\n" \
  1408. " -[qQ] Remove the message queue\n" \
  1409. " -[sS] Remove the semaphore"
  1410. #define ipcs_trivial_usage \
  1411. "[[-smq] -i shmid] | [[-asmq] [-tcplu]]"
  1412. #define ipcs_full_usage \
  1413. " -i specify a specific resource id\n" \
  1414. "Resource specification:\n" \
  1415. " -m shared memory segments\n" \
  1416. " -q message queues\n" \
  1417. " -s semaphore arrays\n" \
  1418. " -a all (default)\n" \
  1419. "Output format:\n" \
  1420. " -t time\n" \
  1421. " -c creator\n" \
  1422. " -p pid\n" \
  1423. " -l limits\n" \
  1424. " -u summary"
  1425. #define iplink_trivial_usage \
  1426. "{ set DEVICE { up | down | arp { on | off } | show [ DEVICE ] }"
  1427. #define iplink_full_usage \
  1428. "iplink set DEVICE { up | down | arp { on | off } |\n" \
  1429. " dynamic { on | off } |\n" \
  1430. " mtu MTU }\n" \
  1431. " iplink show [ DEVICE ]"
  1432. #define iproute_trivial_usage \
  1433. "{ list | flush | { add | del | change | append |\n" \
  1434. " replace | monitor } ROUTE }"
  1435. #define iproute_full_usage \
  1436. "iproute { list | flush } SELECTOR\n" \
  1437. "iproute get ADDRESS [ from ADDRESS iif STRING ]\n" \
  1438. " [ oif STRING ] [ tos TOS ]\n" \
  1439. " iproute { add | del | change | append | replace | monitor } ROUTE\n" \
  1440. " SELECTOR := [ root PREFIX ] [ match PREFIX ] [ proto RTPROTO ]\n" \
  1441. " ROUTE := [ TYPE ] PREFIX [ tos TOS ] [ proto RTPROTO ]"
  1442. #define iprule_trivial_usage \
  1443. "{[ list | add | del ] RULE}"
  1444. #define iprule_full_usage \
  1445. "iprule [ list | add | del ] SELECTOR ACTION\n" \
  1446. " SELECTOR := [ from PREFIX ] [ to PREFIX ] [ tos TOS ] [ fwmark FWMARK ]\n" \
  1447. " [ dev STRING ] [ pref NUMBER ]\n" \
  1448. " ACTION := [ table TABLE_ID ] [ nat ADDRESS ]\n" \
  1449. " [ prohibit | reject | unreachable ]\n" \
  1450. " [ realms [SRCREALM/]DSTREALM ]\n" \
  1451. " TABLE_ID := [ local | main | default | NUMBER ]"
  1452. #define iptunnel_trivial_usage \
  1453. "{ add | change | del | show } [ NAME ]\n" \
  1454. " [ mode { ipip | gre | sit } ]\n" \
  1455. " [ remote ADDR ] [ local ADDR ] [ ttl TTL ]"
  1456. #define iptunnel_full_usage \
  1457. "iptunnel { add | change | del | show } [ NAME ]\n" \
  1458. " [ mode { ipip | gre | sit } ] [ remote ADDR ] [ local ADDR ]\n" \
  1459. " [ [i|o]seq ] [ [i|o]key KEY ] [ [i|o]csum ]\n" \
  1460. " [ ttl TTL ] [ tos TOS ] [ [no]pmtudisc ] [ dev PHYS_DEV ]"
  1461. #define kill_trivial_usage \
  1462. "[-l] [-signal] process-id [process-id ...]"
  1463. #define kill_full_usage \
  1464. "Send a signal (default is TERM) to the specified process(es).\n\n" \
  1465. "Options:\n" \
  1466. " -l List all signal names and numbers"
  1467. #define kill_example_usage \
  1468. "$ ps | grep apache\n" \
  1469. "252 root root S [apache]\n" \
  1470. "263 www-data www-data S [apache]\n" \
  1471. "264 www-data www-data S [apache]\n" \
  1472. "265 www-data www-data S [apache]\n" \
  1473. "266 www-data www-data S [apache]\n" \
  1474. "267 www-data www-data S [apache]\n" \
  1475. "$ kill 252\n"
  1476. #define killall_trivial_usage \
  1477. "[-l] [-q] [-signal] process-name [process-name ...]"
  1478. #define killall_full_usage \
  1479. "Send a signal (default is TERM) to the specified process(es).\n\n" \
  1480. "Options:\n" \
  1481. " -l List all signal names and numbers\n" \
  1482. " -q Do not complain if no processes were killed"
  1483. #define killall_example_usage \
  1484. "$ killall apache\n"
  1485. #define killall5_trivial_usage \
  1486. "[-l] [-signal]"
  1487. #define killall5_full_usage \
  1488. "Send a signal (default is TERM) to all processes outside current session.\n\n" \
  1489. "Options:\n" \
  1490. " -l List all signal names and numbers\n" \
  1491. #define klogd_trivial_usage \
  1492. "[-c n] [-n]"
  1493. #define klogd_full_usage \
  1494. "Kernel logger.\n" \
  1495. "Options:\n" \
  1496. " -c n Sets the default log level of console messages to n\n" \
  1497. " -n Run as a foreground process"
  1498. #define length_trivial_usage \
  1499. "STRING"
  1500. #define length_full_usage \
  1501. "Prints out the length of the specified STRING."
  1502. #define length_example_usage \
  1503. "$ length Hello\n" \
  1504. "5\n"
  1505. #define less_trivial_usage \
  1506. "[-EMNmh~?] FILE1 FILE2..."
  1507. #define less_full_usage \
  1508. "View a file or list of files. The position within files can be\n" \
  1509. "changed, and files can be manipulated in various ways with the\n" \
  1510. "following options:\n\n" \
  1511. " -E Quit once the end of a file is reached\n" \
  1512. " -M Display a status line containing the current line numbers\n" \
  1513. " and the percentage through the file\n" \
  1514. " -N Prefix line numbers to each line\n" \
  1515. " -m Display a status line containing the percentage through the\n" \
  1516. " file\n" \
  1517. " -~ Suppress ~s displayed when input past the end of the file is\n" \
  1518. " reached.\n" \
  1519. " -h, -? Display this help message"
  1520. #define setarch_trivial_usage \
  1521. "<personality> <program> [args ...]"
  1522. #define setarch_full_usage \
  1523. "Personality may be:\n" \
  1524. " linux32 Set 32bit uname emulation\n" \
  1525. " linux64 Set 64bit uname emulation"
  1526. #define ln_trivial_usage \
  1527. "[OPTION] TARGET... LINK_NAME|DIRECTORY"
  1528. #define ln_full_usage \
  1529. "Create a link named LINK_NAME or DIRECTORY to the specified TARGET\n" \
  1530. "\nYou may use '--' to indicate that all following arguments are non-options.\n\n" \
  1531. "Options:\n" \
  1532. " -s make symbolic links instead of hard links\n" \
  1533. " -f remove existing destination files\n" \
  1534. " -n no dereference symlinks - treat like normal file\n" \
  1535. " -b make a backup of the target (if exists) before link operation\n" \
  1536. " -S suffix use suffix instead of ~ when making backup files"
  1537. #define ln_example_usage \
  1538. "$ ln -s BusyBox /tmp/ls\n" \
  1539. "$ ls -l /tmp/ls\n" \
  1540. "lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox*\n"
  1541. #define loadfont_trivial_usage \
  1542. "< font"
  1543. #define loadfont_full_usage \
  1544. "Loads a console font from standard input."
  1545. #define loadfont_example_usage \
  1546. "$ loadfont < /etc/i18n/fontname\n"
  1547. #define loadkmap_trivial_usage \
  1548. "< keymap"
  1549. #define loadkmap_full_usage \
  1550. "Loads a binary keyboard translation table from standard input."
  1551. #define loadkmap_example_usage \
  1552. "$ loadkmap < /etc/i18n/lang-keymap\n"
  1553. #define logger_trivial_usage \
  1554. "[OPTION]... [MESSAGE]"
  1555. #define logger_full_usage \
  1556. "Write MESSAGE to the system log. If MESSAGE is omitted, log stdin.\n\n" \
  1557. "Options:\n" \
  1558. " -s Log to stderr as well as the system log\n" \
  1559. " -t TAG Log using the specified tag (defaults to user name)\n" \
  1560. " -p PRIORITY Enter the message with the specified priority\n" \
  1561. " This may be numerical or a 'facility.level' pair"
  1562. #define logger_example_usage \
  1563. "$ logger \"hello\"\n"
  1564. #define login_trivial_usage \
  1565. "[OPTION]... [username] [ENV=VAR ...]"
  1566. #define login_full_usage \
  1567. "Begin a new session on the system\n\n" \
  1568. "Options:\n" \
  1569. " -f Do not authenticate (user already authenticated)\n" \
  1570. " -h Name of the remote host for this login\n" \
  1571. " -p Preserve environment"
  1572. #define logname_trivial_usage \
  1573. ""
  1574. #define logname_full_usage \
  1575. "Print the name of the current user."
  1576. #define logname_example_usage \
  1577. "$ logname\n" \
  1578. "root\n"
  1579. #define logread_trivial_usage \
  1580. "[OPTION]..."
  1581. #define logread_full_usage \
  1582. "Shows the messages from syslogd (using circular buffer).\n\n" \
  1583. "Options:\n" \
  1584. " -f output data as the log grows"
  1585. #define losetup_trivial_usage \
  1586. "[-o OFFSET] [-d] LOOPDEVICE [FILE]]"
  1587. #define losetup_full_usage \
  1588. "(Dis)associate LOOPDEVICE with FILE, or display current associations.\n\n" \
  1589. "Options:\n" \
  1590. " -d Disassociate LOOPDEVICE\n" \
  1591. " -o OFFSET Start OFFSET bytes into FILE"
  1592. #define losetup_notes_usage \
  1593. "No arguments will display all current associations.\n" \
  1594. "One argument (losetup /dev/loop1) will display the current association\n" \
  1595. "(if any), or disassociate it (with -d). The display shows the offset\n" \
  1596. "and filename of the file the loop device is currently bound to.\n\n" \
  1597. "Two arguments (losetup /dev/loop1 file.img) create a new association,\n" \
  1598. "with an optional offset (-o 12345). Encryption is not yet supported.\n\n"
  1599. #define ls_trivial_usage \
  1600. "[-1Aa" USE_FEATURE_LS_TIMESTAMPS("c") "Cd" \
  1601. USE_FEATURE_LS_TIMESTAMPS("e") USE_FEATURE_LS_FILETYPES("F") "iln" \
  1602. USE_FEATURE_LS_FILETYPES("p") USE_FEATURE_LS_FOLLOWLINKS("L") \
  1603. USE_FEATURE_LS_RECURSIVE("R") USE_FEATURE_LS_SORTFILES("rS") "s" \
  1604. USE_FEATURE_AUTOWIDTH("T") USE_FEATURE_LS_TIMESTAMPS("tu") \
  1605. USE_FEATURE_LS_SORTFILES("v") USE_FEATURE_AUTOWIDTH("w") "x" \
  1606. USE_FEATURE_LS_SORTFILES("X") USE_FEATURE_HUMAN_READABLE("h") "k" \
  1607. USE_SELINUX("K") "] [filenames...]"
  1608. #define ls_full_usage \
  1609. "List directory contents\n\n" \
  1610. "Options:\n" \
  1611. " -1 list files in a single column\n" \
  1612. " -A do not list implied . and ..\n" \
  1613. " -a do not hide entries starting with .\n" \
  1614. " -C list entries by columns\n" \
  1615. USE_FEATURE_LS_TIMESTAMPS(" -c with -l: show ctime\n") \
  1616. USE_FEATURE_LS_COLOR(" --color[={always,never,auto}] to control coloring\n") \
  1617. " -d list directory entries instead of contents\n" \
  1618. USE_FEATURE_LS_TIMESTAMPS(" -e list both full date and full time\n") \
  1619. USE_FEATURE_LS_FILETYPES(" -F append indicator (one of */=@|) to entries\n") \
  1620. " -i list the i-node for each file\n" \
  1621. " -l use a long listing format\n" \
  1622. " -n list numeric UIDs and GIDs instead of names\n" \
  1623. USE_FEATURE_LS_FILETYPES(" -p append indicator (one of /=@|) to entries\n") \
  1624. USE_FEATURE_LS_FOLLOWLINKS(" -L list entries pointed to by symbolic links\n") \
  1625. USE_FEATURE_LS_RECURSIVE(" -R list subdirectories recursively\n") \
  1626. USE_FEATURE_LS_SORTFILES(" -r sort the listing in reverse order\n") \
  1627. USE_FEATURE_LS_SORTFILES(" -S sort the listing by file size\n") \
  1628. " -s list the size of each file, in blocks\n" \
  1629. USE_FEATURE_AUTOWIDTH(" -T NUM assume Tabstop every NUM columns\n") \
  1630. USE_FEATURE_LS_TIMESTAMPS(" -t with -l: show modification time\n") \
  1631. USE_FEATURE_LS_TIMESTAMPS(" -u with -l: show access time\n") \
  1632. USE_FEATURE_LS_SORTFILES(" -v sort the listing by version\n") \
  1633. USE_FEATURE_AUTOWIDTH(" -w NUM assume the terminal is NUM columns wide\n") \
  1634. " -x list entries by lines instead of by columns\n" \
  1635. USE_FEATURE_LS_SORTFILES(" -X sort the listing by extension\n") \
  1636. USE_FEATURE_HUMAN_READABLE( \
  1637. " -h print sizes in human readable format (e.g., 1K 243M 2G )\n") \
  1638. USE_SELINUX(" -k print security context\n") \
  1639. USE_SELINUX(" -K print security context in long format\n")
  1640. #define lsattr_trivial_usage \
  1641. "[-Radlv] [files...]"
  1642. #define lsattr_full_usage \
  1643. "list file attributes on an ext2 fs\n\n" \
  1644. "Options:\n" \
  1645. " -R recursively list subdirectories\n" \
  1646. " -a do not hide entries starting with .\n" \
  1647. " -d list directory entries instead of contents\n" \
  1648. " -l print long flag names\n" \
  1649. " -v list the file's version/generation number"
  1650. #define lsmod_trivial_usage \
  1651. ""
  1652. #define lsmod_full_usage \
  1653. "List the currently loaded kernel modules."
  1654. #ifdef CONFIG_FEATURE_MAKEDEVS_LEAF
  1655. #define makedevs_trivial_usage \
  1656. "NAME TYPE MAJOR MINOR FIRST LAST [s]"
  1657. #define makedevs_full_usage \
  1658. "Creates a range of block or character special files\n\n" \
  1659. "TYPEs include:\n" \
  1660. " b: Make a block (buffered) device.\n" \
  1661. " c or u: Make a character (un-buffered) device.\n" \
  1662. " p: Make a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n" \
  1663. "FIRST specifies the number appended to NAME to create the first device.\n" \
  1664. "LAST specifies the number of the last item that should be created\n" \
  1665. "If 's' is the last argument, the base device is created as well.\n\n" \
  1666. "For example:\n" \
  1667. " makedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n" \
  1668. " makedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8"
  1669. #define makedevs_example_usage \
  1670. "# makedevs /dev/ttyS c 4 66 2 63\n" \
  1671. "[creates ttyS2-ttyS63]\n" \
  1672. "# makedevs /dev/hda b 3 0 0 8 s\n" \
  1673. "[creates hda,hda1-hda8]\n"
  1674. #endif
  1675. #ifdef CONFIG_FEATURE_MAKEDEVS_TABLE
  1676. #define makedevs_trivial_usage \
  1677. "[-d device_table] rootdir"
  1678. #define makedevs_full_usage \
  1679. "Creates a range of special files as specified in a device table.\n" \
  1680. "Device table entries take the form of:\n" \
  1681. "<type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>\n" \
  1682. "Where name is the file name, type can be one of:\n" \
  1683. " f A regular file\n" \
  1684. " d Directory\n" \
  1685. " c Character special device file\n" \
  1686. " b Block special device file\n" \
  1687. " p Fifo (named pipe)\n" \
  1688. "uid is the user id for the target file, gid is the group id for the\n" \
  1689. "target file. The rest of the entries (major, minor, etc) apply to\n" \
  1690. "to device special files. A '-' may be used for blank entries."
  1691. #define makedevs_example_usage \
  1692. "For example:\n" \
  1693. "<name> <type> <mode><uid><gid><major><minor><start><inc><count>\n" \
  1694. "/dev d 755 0 0 - - - - -\n" \
  1695. "/dev/console c 666 0 0 5 1 - - -\n" \
  1696. "/dev/null c 666 0 0 1 3 0 0 -\n" \
  1697. "/dev/zero c 666 0 0 1 5 0 0 -\n" \
  1698. "/dev/hda b 640 0 0 3 0 0 0 -\n" \
  1699. "/dev/hda b 640 0 0 3 1 1 1 15\n\n" \
  1700. "Will Produce:\n" \
  1701. "/dev\n" \
  1702. "/dev/console\n" \
  1703. "/dev/null\n" \
  1704. "/dev/zero\n" \
  1705. "/dev/hda\n" \
  1706. "/dev/hda[0-15]\n"
  1707. #endif
  1708. #define md5sum_trivial_usage \
  1709. "[OPTION] [FILEs...]" \
  1710. USE_FEATURE_MD5_SHA1_SUM_CHECK("\n or: md5sum [OPTION] -c [FILE]")
  1711. #define md5sum_full_usage \
  1712. "Print" USE_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " MD5 checksums.\n\n" \
  1713. "Options:\n" \
  1714. "With no FILE, or when FILE is -, read standard input." \
  1715. USE_FEATURE_MD5_SHA1_SUM_CHECK("\n\n" \
  1716. " -c check MD5 sums against given list\n" \
  1717. "\nThe following two options are useful only when verifying checksums:\n" \
  1718. " -s don't output anything, status code shows success\n" \
  1719. " -w warn about improperly formatted MD5 checksum lines")
  1720. #define md5sum_example_usage \
  1721. "$ md5sum < busybox\n" \
  1722. "6fd11e98b98a58f64ff3398d7b324003\n" \
  1723. "$ md5sum busybox\n" \
  1724. "6fd11e98b98a58f64ff3398d7b324003 busybox\n" \
  1725. "$ md5sum -c -\n" \
  1726. "6fd11e98b98a58f64ff3398d7b324003 busybox\n" \
  1727. "busybox: OK\n" \
  1728. "^D\n"
  1729. #define mdev_trivial_usage \
  1730. "[-s]"
  1731. #define mdev_full_usage \
  1732. " -s Scan /sys and populate /dev during system boot\n\n" \
  1733. "Called with no options (via hotplug) it uses environment variables\n" \
  1734. "to determine which device to add/remove."
  1735. #define mdev_notes_usage "" \
  1736. USE_FEATURE_MDEV_CONFIG( \
  1737. "The mdev config file contains lines that look like:\n" \
  1738. " hd[a-z][0-9]* 0:3 660\n\n" \
  1739. "That's device name (with regex match), uid:gid, and permissions.\n\n" \
  1740. USE_FEATURE_MDEV_EXEC( \
  1741. "Optionally, that can be followed (on the same line) by a special character\n" \
  1742. "and a command line to run after creating/before deleting the corresponding\n" \
  1743. "device(s). The environment variable $MDEV indicates the active device node\n" \
  1744. "(which is useful if it's a regex match). For example:\n\n" \
  1745. " hdc root:cdrom 660 *ln -s $MDEV cdrom\n\n" \
  1746. "The special characters are @ (run after creating), $ (run before deleting),\n" \
  1747. "and * (run both after creating and before deleting). The commands run in\n" \
  1748. "the /dev directory, and use system() which calls /bin/sh.\n\n" \
  1749. ) \
  1750. "Config file parsing stops on the first matching line. If no config\n"\
  1751. "entry is matched, devices are created with default 0:0 660. (Make\n"\
  1752. "the last line match .* to override this.)\n\n" \
  1753. )
  1754. #define mesg_trivial_usage \
  1755. "[y|n]"
  1756. #define mesg_full_usage \
  1757. "mesg controls write access to your terminal\n" \
  1758. " y Allow write access to your terminal\n" \
  1759. " n Disallow write access to your terminal"
  1760. #define mkdir_trivial_usage \
  1761. "[OPTION] DIRECTORY..."
  1762. #define mkdir_full_usage \
  1763. "Create the DIRECTORY(ies) if they do not already exist\n\n" \
  1764. "Options:\n" \
  1765. " -m set permission mode (as in chmod), not rwxrwxrwx - umask\n" \
  1766. " -p no error if existing, make parent directories as needed"
  1767. #define mkdir_example_usage \
  1768. "$ mkdir /tmp/foo\n" \
  1769. "$ mkdir /tmp/foo\n" \
  1770. "/tmp/foo: File exists\n" \
  1771. "$ mkdir /tmp/foo/bar/baz\n" \
  1772. "/tmp/foo/bar/baz: No such file or directory\n" \
  1773. "$ mkdir -p /tmp/foo/bar/baz\n"
  1774. #define mke2fs_trivial_usage \
  1775. "[-c|-l filename] [-b block-size] [-f fragment-size] [-g blocks-per-group] " \
  1776. "[-i bytes-per-inode] [-j] [-J journal-options] [-N number-of-inodes] [-n] " \
  1777. "[-m reserved-blocks-percentage] [-o creator-os] [-O feature[,...]] [-q] " \
  1778. "[r fs-revision-level] [-E extended-options] [-v] [-F] [-L volume-label] " \
  1779. "[-M last-mounted-directory] [-S] [-T filesystem-type] " \
  1780. "device [blocks-count]"
  1781. #define mke2fs_full_usage \
  1782. " -b size block size in bytes\n" \
  1783. " -c check for bad blocks before creating\n" \
  1784. " -E opts set extended options\n" \
  1785. " -f size fragment size in bytes\n" \
  1786. " -F force (ignore sanity checks)\n" \
  1787. " -g num number of blocks in a block group\n" \
  1788. " -i ratio the bytes/inode ratio\n" \
  1789. " -j create a journal (ext3)\n" \
  1790. " -J opts set journal options (size/device)\n" \
  1791. " -l file read bad blocks list from file\n" \
  1792. " -L lbl set the volume label\n" \
  1793. " -m percent percent of fs blocks to reserve for admin\n" \
  1794. " -M dir set last mounted directory\n" \
  1795. " -n do not actually create anything\n" \
  1796. " -N num number of inodes to create\n" \
  1797. " -o os set the 'creator os' field\n" \
  1798. " -O features dir_index/filetype/has_journal/journal_dev/sparse_super\n" \
  1799. " -q quiet execution\n" \
  1800. " -r rev set filesystem revision\n" \
  1801. " -S write superblock and group descriptors only\n" \
  1802. " -T fs-type set usage type (news/largefile/largefile4)\n" \
  1803. " -v verbose execution"
  1804. #define mkfifo_trivial_usage \
  1805. "[OPTIONS] name"
  1806. #define mkfifo_full_usage \
  1807. "Creates a named pipe (identical to 'mknod name p')\n\n" \
  1808. "Options:\n" \
  1809. " -m create the pipe using the specified mode (default a=rw)"
  1810. #define mkfs_minix_trivial_usage \
  1811. "[-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]"
  1812. #define mkfs_minix_full_usage \
  1813. "Make a MINIX filesystem.\n\n" \
  1814. "Options:\n" \
  1815. " -c Check the device for bad blocks\n" \
  1816. " -n [14|30] Specify the maximum length of filenames\n" \
  1817. " -i INODES Specify the number of inodes for the filesystem\n" \
  1818. " -l FILENAME Read the bad blocks list from FILENAME\n" \
  1819. " -v Make a Minix version 2 filesystem"
  1820. #define mknod_trivial_usage \
  1821. "[OPTIONS] NAME TYPE MAJOR MINOR"
  1822. #define mknod_full_usage \
  1823. "Create a special file (block, character, or pipe).\n\n" \
  1824. "Options:\n" \
  1825. " -m create the special file using the specified mode (default a=rw)\n\n" \
  1826. "TYPEs include:\n" \
  1827. " b: Make a block (buffered) device\n" \
  1828. " c or u: Make a character (un-buffered) device\n" \
  1829. " p: Make a named pipe. MAJOR and MINOR are ignored for named pipes"
  1830. #define mknod_example_usage \
  1831. "$ mknod /dev/fd0 b 2 0\n" \
  1832. "$ mknod -m 644 /tmp/pipe p\n"
  1833. #define mkswap_trivial_usage \
  1834. "[-c] [-v0|-v1] device [block-count]"
  1835. #define mkswap_full_usage \
  1836. "Prepare a disk partition to be used as a swap partition.\n\n" \
  1837. "Options:\n" \
  1838. " -c Check for read-ability\n" \
  1839. " -v0 Make version 0 swap [max 128 Megs]\n" \
  1840. " -v1 Make version 1 swap [big!] (default for kernels >\n" \
  1841. " 2.1.117)\n" \
  1842. " block-count Number of block to use (default is entire partition)"
  1843. #define mktemp_trivial_usage \
  1844. "[-dq] TEMPLATE"
  1845. #define mktemp_full_usage \
  1846. "Creates a temporary file with its name based on TEMPLATE.\n" \
  1847. "TEMPLATE is any name with six 'Xs' (i.e., /tmp/temp.XXXXXX).\n\n" \
  1848. "Options:\n" \
  1849. " -d Make a directory instead of a file\n" \
  1850. " -q Fail silently if an error occurs"
  1851. #define mktemp_example_usage \
  1852. "$ mktemp /tmp/temp.XXXXXX\n" \
  1853. "/tmp/temp.mWiLjM\n" \
  1854. "$ ls -la /tmp/temp.mWiLjM\n" \
  1855. "-rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM\n"
  1856. #define modprobe_trivial_usage \
  1857. "[-knqrsv] MODULE [symbol=value ...]"
  1858. #define modprobe_full_usage \
  1859. "Options:\n" \
  1860. " -k Make module autoclean-able\n" \
  1861. " -n Just show what would be done\n" \
  1862. " -q Quiet output\n" \
  1863. " -r Remove module (stacks) or do autoclean\n" \
  1864. " -s Report via syslog instead of stderr\n" \
  1865. " -v Verbose output"
  1866. #define modprobe_notes_usage \
  1867. "modprobe can (un)load a stack of modules, passing each module options (when\n" \
  1868. "loading). modprobe uses a configuration file to determine what option(s) to\n" \
  1869. "pass each module it loads.\n" \
  1870. "\n" \
  1871. "The configuration file is searched (in order) amongst:\n" \
  1872. "\n" \
  1873. " /etc/modprobe.conf (2.6 only)\n" \
  1874. " /etc/modules.conf\n" \
  1875. " /etc/conf.modules (deprecated)\n" \
  1876. "\n" \
  1877. "They all have the same syntax (see below). If none is present, it is\n" \
  1878. "_not_ an error; each loaded module is then expected to load without\n" \
  1879. "options. Once a file is found, the others are tested for.\n" \
  1880. "\n" \
  1881. "/etc/modules.conf entry format:\n" \
  1882. "\n" \
  1883. " alias <alias_name> <mod_name>\n" \
  1884. " Makes it possible to modprobe alias_name, when there is no such module.\n" \
  1885. " It makes sense if your mod_name is long, or you want a more representative\n" \
  1886. " name for that module (eg. 'scsi' in place of 'aha7xxx').\n" \
  1887. " This makes it also possible to use a different set of options (below) for\n" \
  1888. " the module and the alias.\n" \
  1889. " A module can be aliased more than once.\n" \
  1890. "\n" \
  1891. " options <mod_name|alias_name> <symbol=value ...>\n" \
  1892. " When loading module mod_name (or the module aliased by alias_name), pass\n" \
  1893. " the \"symbol=value\" pairs as option to that module.\n" \
  1894. "\n" \
  1895. "Sample /etc/modules.conf file:\n" \
  1896. "\n" \
  1897. " options tulip irq=3\n" \
  1898. " alias tulip tulip2\n" \
  1899. " options tulip2 irq=4 io=0x308\n" \
  1900. "\n" \
  1901. "Other functionality offered by 'classic' modprobe is not available in\n" \
  1902. "this implementation.\n" \
  1903. "\n" \
  1904. "If module options are present both in the config file, and on the command line,\n" \
  1905. "then the options from the command line will be passed to the module _after_\n" \
  1906. "the options from the config file. That way, you can have defaults in the config\n" \
  1907. "file, and override them for a specific usage from the command line.\n"
  1908. #define modprobe_example_usage \
  1909. "(with the above /etc/modules.conf):\n\n" \
  1910. "$ modprobe tulip\n" \
  1911. " will load the module 'tulip' with default option 'irq=3'\n\n" \
  1912. "$ modprobe tulip irq=5\n" \
  1913. " will load the module 'tulip' with option 'irq=5', thus overriding the default\n\n" \
  1914. "$ modprobe tulip2\n" \
  1915. " will load the module 'tulip' with default options 'irq=4 io=0x308',\n" \
  1916. " which are the default for alias 'tulip2'\n\n" \
  1917. "$ modprobe tulip2 irq=8\n" \
  1918. " will load the module 'tulip' with default options 'irq=4 io=0x308 irq=8',\n" \
  1919. " which are the default for alias 'tulip2' overridden by the option 'irq=8'\n\n" \
  1920. " from the command line\n\n" \
  1921. "$ modprobe tulip2 irq=2 io=0x210\n" \
  1922. " will load the module 'tulip' with default options 'irq=4 io=0x308 irq=4 io=0x210',\n" \
  1923. " which are the default for alias 'tulip2' overridden by the options 'irq=2 io=0x210'\n\n" \
  1924. " from the command line\n"
  1925. #define more_trivial_usage \
  1926. "[FILE ...]"
  1927. #define more_full_usage \
  1928. "More is a filter for viewing FILE one screenful at a time."
  1929. #define more_example_usage \
  1930. "$ dmesg | more\n"
  1931. #define mount_trivial_usage \
  1932. "[flags] DEVICE NODE [-o options,more-options]"
  1933. #define mount_full_usage \
  1934. "Mount a filesystem. Filesystem autodetection requires /proc be mounted.\n\n" \
  1935. "Flags:\n" \
  1936. " -a: Mount all filesystems in fstab\n" \
  1937. USE_FEATURE_MTAB_SUPPORT( \
  1938. " -f: \"Fake\" Add entry to mount table but don't mount it\n" \
  1939. " -n: Don't write a mount table entry\n" \
  1940. ) \
  1941. " -o option: One of many filesystem options, listed below\n" \
  1942. " -r: Mount the filesystem read-only\n" \
  1943. " -t fs-type: Specify the filesystem type\n" \
  1944. " -w: Mount for reading and writing (default)\n" \
  1945. "\n" \
  1946. "Options for use with the \"-o\" flag:\n" \
  1947. USE_FEATURE_MOUNT_LOOP( \
  1948. " loop: Ignored (loop devices are autodetected)\n" \
  1949. ) \
  1950. USE_FEATURE_MOUNT_FLAGS( \
  1951. " [a]sync: Writes are asynchronous / synchronous\n" \
  1952. " [no]atime: Disable / enable updates to inode access times\n" \
  1953. " [no]diratime: Disable / enable atime updates to directories\n" \
  1954. " [no]dev: Allow use of special device files / disallow them\n" \
  1955. " [no]exec: Allow use of executable files / disallow them\n" \
  1956. " [no]suid: Allow set-user-id-root programs / disallow them\n" \
  1957. " [r]shared: Convert [recursively] to a shared subtree.\n" \
  1958. " [r]slave: Convert [recursively] to a slave subtree.\n" \
  1959. " [r]private: Convert [recursively] to a private subtree\n" \
  1960. " [un]bindable: Make mount point [un]able to be bind mounted.\n" \
  1961. " bind: Bind a directory to an additional location\n" \
  1962. " move: Relocate an existing mount point.\n" \
  1963. ) \
  1964. " remount: Re-mount a mounted filesystem, changing its flags\n" \
  1965. " ro/rw: Mount for read-only / read-write\n" \
  1966. "\nThere are EVEN MORE flags that are specific to each filesystem\n" \
  1967. "You'll have to see the written documentation for those filesystems"
  1968. #define mount_example_usage \
  1969. "$ mount\n" \
  1970. "/dev/hda3 on / type minix (rw)\n" \
  1971. "proc on /proc type proc (rw)\n" \
  1972. "devpts on /dev/pts type devpts (rw)\n" \
  1973. "$ mount /dev/fd0 /mnt -t msdos -o ro\n" \
  1974. "$ mount /tmp/diskimage /opt -t ext2 -o loop\n" \
  1975. "$ mount cd_image.iso mydir\n"
  1976. #define mount_notes_usage \
  1977. "Returns 0 for success, number of failed mounts for -a, or errno for one mount."
  1978. #define mountpoint_trivial_usage \
  1979. "[-q] <[-d] DIR | -x DEVICE>"
  1980. #define mountpoint_full_usage \
  1981. "mountpoint checks if the directory is a mountpoint\n\n" \
  1982. "Options:\n" \
  1983. " -q Be more quiet\n" \
  1984. " -d Print major/minor device number of the filesystem\n" \
  1985. " -x Print major/minor device number of the blockdevice"
  1986. #define mountpoint_example_usage \
  1987. "$ mountpoint /proc\n" \
  1988. "/proc is not a mountpoint\n" \
  1989. "$ mountpoint /sys\n" \
  1990. "/sys is a mountpoint\n"
  1991. #define mt_trivial_usage \
  1992. "[-f device] opcode value"
  1993. #define mt_full_usage \
  1994. "Control magnetic tape drive operation\n" \
  1995. "\nAvailable Opcodes:\n\n" \
  1996. "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n" \
  1997. "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n" \
  1998. "ras3 reset retension rewind rewoffline seek setblk setdensity\n" \
  1999. "setpart tell unload unlock weof wset"
  2000. #define mv_trivial_usage \
  2001. "[OPTION]... SOURCE DEST\n" \
  2002. "or: mv [OPTION]... SOURCE... DIRECTORY"
  2003. #define mv_full_usage \
  2004. "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.\n\n" \
  2005. "Options:\n" \
  2006. " -f don't prompt before overwriting\n" \
  2007. " -i interactive, prompt before overwrite"
  2008. #define mv_example_usage \
  2009. "$ mv /tmp/foo /bin/bar\n"
  2010. #define nameif_trivial_usage \
  2011. "[-s] [-c FILE] [{IFNAME MACADDR}]"
  2012. #define nameif_full_usage \
  2013. "Nameif renames network interface while it in the down state.\n\n" \
  2014. "Options:\n" \
  2015. " -c FILE Use configuration file (default is /etc/mactab)\n" \
  2016. " -s Use syslog (LOCAL0 facility)\n" \
  2017. " IFNAME MACADDR new_interface_name interface_mac_address"
  2018. #define nameif_example_usage \
  2019. "$ nameif -s dmz0 00:A0:C9:8C:F6:3F\n" \
  2020. " or\n" \
  2021. "$ nameif -c /etc/my_mactab_file\n" \
  2022. #if ENABLE_NC_SERVER || ENABLE_NC_EXTRA
  2023. #define NC_OPTIONS_STR "\n\nOptions:"
  2024. #else
  2025. #define NC_OPTIONS_STR
  2026. #endif
  2027. #define nc_trivial_usage \
  2028. USE_NC_EXTRA("[-iN] [-wN] ")USE_NC_SERVER("[-l] [-p PORT] ") \
  2029. "["USE_NC_EXTRA("-f FILENAME|")"IPADDR PORTNUM]"USE_NC_EXTRA(" [-e COMMAND]")
  2030. #define nc_full_usage \
  2031. "Netcat opens a pipe to IP:port" USE_NC_EXTRA(" or file") \
  2032. NC_OPTIONS_STR \
  2033. USE_NC_EXTRA( \
  2034. "\n -e exec rest of command line after connect\n" \
  2035. " -i SECS delay interval for lines sent\n" \
  2036. " -w SECS timeout for connect\n" \
  2037. " -f file use file (ala /dev/ttyS0) instead of network" \
  2038. ) \
  2039. USE_NC_SERVER( \
  2040. "\n -l listen mode, for inbound connects\n" \
  2041. USE_NC_EXTRA(" (use -l twice with -e for persistent server)\n") \
  2042. " -p PORT local port number" \
  2043. )
  2044. #define nc_notes_usage "" \
  2045. USE_NC_EXTRA( \
  2046. "To use netcat as a terminal emulator on a serial port:\n\n" \
  2047. "$ stty 115200 -F /dev/ttyS0\n" \
  2048. "$ stty raw -echo -ctlecho && nc -f /dev/ttyS0\n" \
  2049. ) ""
  2050. #define nc_example_usage \
  2051. "$ nc foobar.somedomain.com 25\n" \
  2052. "220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600\n" \
  2053. "help\n" \
  2054. "214-Commands supported:\n" \
  2055. "214- HELO EHLO MAIL RCPT DATA AUTH\n" \
  2056. "214 NOOP QUIT RSET HELP\n" \
  2057. "quit\n" \
  2058. "221 foobar closing connection\n"
  2059. #define netstat_trivial_usage \
  2060. "[-laenrtuwx]"
  2061. #define netstat_full_usage \
  2062. "Netstat displays Linux networking information.\n\n" \
  2063. "Options:\n" \
  2064. " -l display listening server sockets\n" \
  2065. " -a display all sockets (default: connected)\n" \
  2066. " -e display other/more information\n" \
  2067. " -n don't resolve names\n" \
  2068. " -r display routing table\n" \
  2069. " -t tcp sockets\n" \
  2070. " -u udp sockets\n" \
  2071. " -w raw sockets\n" \
  2072. " -x unix sockets"
  2073. #define nice_trivial_usage \
  2074. "[-n ADJUST] [COMMAND [ARG] ...]"
  2075. #define nice_full_usage \
  2076. "Nice runs a program with modified scheduling priority.\n\n" \
  2077. "Options:\n" \
  2078. " -n ADJUST Adjust the scheduling priority by ADJUST"
  2079. #define nmeter_trivial_usage \
  2080. "format_string"
  2081. #define nmeter_full_usage \
  2082. "Nmeter monitors your system in real time.\n\n" \
  2083. "Format specifiers:\n" \
  2084. "%Nc or %[cN] monitor CPU. N - bar size, default 10\n" \
  2085. " (displays: S:system U:user N:niced D:iowait I:irq i:softirq)\n" \
  2086. "%[niface] monitor network interface 'iface'\n" \
  2087. "%m monitor allocated memory\n" \
  2088. "%[mf] monitor free memory\n" \
  2089. "%[mt] monitor total memory\n" \
  2090. "%s monitor allocated swap\n" \
  2091. "%f monitor number of used file descriptors\n" \
  2092. "%Ni monitor total/specific IRQ rate\n" \
  2093. "%x monitor context switch rate\n" \
  2094. "%p monitor forks\n" \
  2095. "%[pn] monitor # of processes\n" \
  2096. "%b monitor block io\n" \
  2097. "%Nt show time (with N decimal points)\n" \
  2098. "%Nd milliseconds between updates (default=1000)\n" \
  2099. "%r print <cr> instead of <lf> at EOL"
  2100. #define nmeter_example_usage \
  2101. "nmeter '%250d%t %20c int %i bio %b mem %m forks%p'"
  2102. #define nohup_trivial_usage \
  2103. "COMMAND [ARGS]"
  2104. #define nohup_full_usage \
  2105. "run a command immune to hangups, with output to a non-tty"
  2106. #define nohup_example_usage \
  2107. "$ nohup make &"
  2108. #define nslookup_trivial_usage \
  2109. "[HOST] [SERVER]"
  2110. #define nslookup_full_usage \
  2111. "Queries the nameserver for the IP address of the given HOST\n" \
  2112. "optionally using a specified DNS server"
  2113. #define nslookup_example_usage \
  2114. "$ nslookup localhost\n" \
  2115. "Server: default\n" \
  2116. "Address: default\n" \
  2117. "\n" \
  2118. "Name: debian\n" \
  2119. "Address: 127.0.0.1\n"
  2120. #define od_trivial_usage \
  2121. "[-aBbcDdeFfHhIiLlOovXx] [FILE]"
  2122. #define od_full_usage \
  2123. "Write an unambiguous representation, octal bytes by default, of FILE\n" \
  2124. "to standard output. With no FILE, or when FILE is -, read standard input."
  2125. #define openvt_trivial_usage \
  2126. "<vtnum> <COMMAND> [ARGS...]"
  2127. #define openvt_full_usage \
  2128. "Start a command on a new virtual terminal"
  2129. #define openvt_example_usage \
  2130. "openvt 2 /bin/ash\n"
  2131. #define passwd_trivial_usage \
  2132. "[OPTION] [name]"
  2133. #define passwd_full_usage \
  2134. "Change a user password. If no name is specified,\n" \
  2135. "changes the password for the current user.\n" \
  2136. "Options:\n" \
  2137. " -a Define which algorithm shall be used for the password\n" \
  2138. " (Choices: des, md5, sha1)\n" \
  2139. " -d Delete the password for the specified user account\n" \
  2140. " -l Locks (disables) the specified user account\n" \
  2141. " -u Unlocks (re-enables) the specified user account"
  2142. #define patch_trivial_usage \
  2143. "[-p<num>] [-i <diff>]"
  2144. #define patch_full_usage \
  2145. " -p <num> Strip <num> leading components from file names\n" \
  2146. " -i <diff> Read <diff> instead of stdin"
  2147. #define patch_example_usage \
  2148. "$ patch -p1 < example.diff\n" \
  2149. "$ patch -p0 -i example.diff"
  2150. #if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT)
  2151. #define USAGE_PIDOF "Options:"
  2152. #else
  2153. #define USAGE_PIDOF "\n This version of pidof accepts no options."
  2154. #endif
  2155. #define pidof_trivial_usage \
  2156. "process-name [OPTION] [process-name ...]"
  2157. #define pidof_full_usage \
  2158. "Lists the PIDs of all processes with names that match the\n" \
  2159. "names on the command line.\n" \
  2160. USAGE_PIDOF \
  2161. USE_FEATURE_PIDOF_SINGLE("\n -s display only a single PID") \
  2162. USE_FEATURE_PIDOF_OMIT("\n -o omit given pid.") \
  2163. USE_FEATURE_PIDOF_OMIT("\n Use %PPID to omit the parent pid of pidof itself")
  2164. #define pidof_example_usage \
  2165. "$ pidof init\n" \
  2166. "1\n" \
  2167. USE_FEATURE_PIDOF_OMIT("$ pidof /bin/sh\n20351 5973 5950\n") \
  2168. USE_FEATURE_PIDOF_OMIT("$ pidof /bin/sh -o %PPID\n20351 5950")
  2169. #ifndef CONFIG_FEATURE_FANCY_PING
  2170. #define ping_trivial_usage "host"
  2171. #define ping_full_usage "Send ICMP ECHO_REQUEST packets to network hosts"
  2172. #else
  2173. #define ping_trivial_usage \
  2174. "[OPTION]... host"
  2175. #define ping_full_usage \
  2176. "Send ICMP ECHO_REQUEST packets to network hosts.\n\n" \
  2177. "Options:\n" \
  2178. " -c COUNT Send only COUNT pings\n" \
  2179. " -s SIZE Send SIZE data bytes in packets (default=56)\n" \
  2180. " -I IPADDR Use IPADDR as source address\n" \
  2181. " -q Quiet mode, only displays output at start\n" \
  2182. " and when finished"
  2183. #endif
  2184. #define ping_example_usage \
  2185. "$ ping localhost\n" \
  2186. "PING slag (127.0.0.1): 56 data bytes\n" \
  2187. "64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms\n" \
  2188. "\n" \
  2189. "--- debian ping statistics ---\n" \
  2190. "1 packets transmitted, 1 packets received, 0% packet loss\n" \
  2191. "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
  2192. #ifndef CONFIG_FEATURE_FANCY_PING6
  2193. #define ping6_trivial_usage "host"
  2194. #define ping6_full_usage "Send ICMP ECHO_REQUEST packets to network hosts"
  2195. #else
  2196. #define ping6_trivial_usage \
  2197. "[OPTION]... host"
  2198. #define ping6_full_usage \
  2199. "Send ICMP ECHO_REQUEST packets to network hosts.\n\n" \
  2200. "Options:\n" \
  2201. " -c COUNT Send only COUNT pings\n" \
  2202. " -s SIZE Send SIZE data bytes in packets (default=56)\n" \
  2203. " -q Quiet mode, only displays output at start\n" \
  2204. " and when finished"
  2205. #endif
  2206. #define ping6_example_usage \
  2207. "$ ping6 ip6-localhost\n" \
  2208. "PING ip6-localhost (::1): 56 data bytes\n" \
  2209. "64 bytes from ::1: icmp6_seq=0 ttl=64 time=20.1 ms\n" \
  2210. "\n" \
  2211. "--- ip6-localhost ping statistics ---\n" \
  2212. "1 packets transmitted, 1 packets received, 0% packet loss\n" \
  2213. "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
  2214. #define pivot_root_trivial_usage \
  2215. "NEW_ROOT PUT_OLD"
  2216. #define pivot_root_full_usage \
  2217. "Move the current root file system to PUT_OLD and make NEW_ROOT\n" \
  2218. "the new root file system."
  2219. #define poweroff_trivial_usage \
  2220. "[-d<delay>] [-n<nosync>] [-f<force>]"
  2221. #define poweroff_full_usage \
  2222. "Halt and shut off power.\n" \
  2223. "Options:\n" \
  2224. " -d delay interval for halting\n" \
  2225. " -n no call to sync()\n" \
  2226. " -f force power off (don't go through init)"
  2227. #define printenv_trivial_usage \
  2228. "[VARIABLES...]"
  2229. #define printenv_full_usage \
  2230. "print all or part of environment\n\n" \
  2231. "If no environment VARIABLE specified, print them all."
  2232. #define printf_trivial_usage \
  2233. "FORMAT [ARGUMENT...]"
  2234. #define printf_full_usage \
  2235. "Formats and prints ARGUMENT(s) according to FORMAT,\n" \
  2236. "Where FORMAT controls the output exactly as in C printf."
  2237. #define printf_example_usage \
  2238. "$ printf \"Val=%d\\n\" 5\n" \
  2239. "Val=5\n"
  2240. #if ENABLE_DESKTOP
  2241. #define ps_trivial_usage \
  2242. ""
  2243. #define ps_full_usage \
  2244. "Report process status\n" \
  2245. "\nOptions:" \
  2246. "\n -o col1,col2=header Select columns for display" \
  2247. #else /* !ENABLE_DESKTOP */
  2248. #if !defined CONFIG_SELINUX && !ENABLE_FEATURE_PS_WIDE
  2249. #define USAGE_PS "\n This version of ps accepts no options."
  2250. #else
  2251. #define USAGE_PS "\nOptions:"
  2252. #endif
  2253. #define ps_trivial_usage \
  2254. ""
  2255. #define ps_full_usage \
  2256. "Report process status\n" \
  2257. USAGE_PS \
  2258. USE_SELINUX("\n -c show SE Linux context") \
  2259. USE_FEATURE_PS_WIDE("\n w wide output")
  2260. #endif /* ENABLE_DESKTOP */
  2261. #define ps_example_usage \
  2262. "$ ps\n" \
  2263. " PID Uid Gid State Command\n" \
  2264. " 1 root root S init\n" \
  2265. " 2 root root S [kflushd]\n" \
  2266. " 3 root root S [kupdate]\n" \
  2267. " 4 root root S [kpiod]\n" \
  2268. " 5 root root S [kswapd]\n" \
  2269. " 742 andersen andersen S [bash]\n" \
  2270. " 743 andersen andersen S -bash\n" \
  2271. " 745 root root S [getty]\n" \
  2272. " 2990 andersen andersen R ps\n"
  2273. #define pwd_trivial_usage \
  2274. ""
  2275. #define pwd_full_usage \
  2276. "Print the full filename of the current working directory."
  2277. #define pwd_example_usage \
  2278. "$ pwd\n" \
  2279. "/root\n"
  2280. #define raidautorun_trivial_usage \
  2281. "DEVICE"
  2282. #define raidautorun_full_usage \
  2283. "Tells the kernel to automatically search and start RAID arrays"
  2284. #define raidautorun_example_usage \
  2285. "$ raidautorun /dev/md0"
  2286. #define rdate_trivial_usage \
  2287. "[-sp] HOST"
  2288. #define rdate_full_usage \
  2289. "Get and possibly set the system date and time from a remote HOST.\n\n" \
  2290. "Options:\n" \
  2291. " -s Set the system date and time (default)\n" \
  2292. " -p Print the date and time"
  2293. #define readahead_trivial_usage \
  2294. "[FILE]..."
  2295. #define readahead_full_usage \
  2296. "Preloads FILE(s) in RAM cache so that subsequent reads for those" \
  2297. "files do not block on disk I/O."
  2298. #define readlink_trivial_usage \
  2299. USE_FEATURE_READLINK_FOLLOW("[-f] ") "FILE"
  2300. #define readlink_full_usage \
  2301. "Displays the value of a symbolic link." \
  2302. USE_FEATURE_READLINK_FOLLOW("\n\nOptions:\n" \
  2303. " -f canonicalize by following all symlinks")
  2304. #define readprofile_trivial_usage \
  2305. "[OPTIONS]..."
  2306. #define readprofile_full_usage \
  2307. "Options:\n" \
  2308. " -m <mapfile> (default: /boot/System.map)\n" \
  2309. " -p <profile> (default: /proc/profile)\n" \
  2310. " -M <mult> set the profiling multiplier to <mult>\n" \
  2311. " -i print only info about the sampling step\n" \
  2312. " -v print verbose data\n" \
  2313. " -a print all symbols, even if count is 0\n" \
  2314. " -b print individual histogram-bin counts\n" \
  2315. " -s print individual counters within functions\n" \
  2316. " -r reset all the counters (root only)\n" \
  2317. " -n disable byte order auto-detection"
  2318. #define realpath_trivial_usage \
  2319. "pathname ..."
  2320. #define realpath_full_usage \
  2321. "Returns the absolute pathnames of given argument."
  2322. #define reboot_trivial_usage \
  2323. "[-d<delay>] [-n<nosync>] [-f<force>]"
  2324. #define reboot_full_usage \
  2325. "Reboot the system.\n" \
  2326. "Options:\n" \
  2327. " -d delay interval for rebooting\n" \
  2328. " -n no call to sync()\n" \
  2329. " -f force reboot (don't go through init)"
  2330. #define renice_trivial_usage \
  2331. "{{-n INCREMENT} | PRIORITY} [[ -p | -g | -u ] ID ...]"
  2332. #define renice_full_usage \
  2333. "Changes priority of running processes.\n\n" \
  2334. "Options:\n" \
  2335. " -n adjusts current nice value (smaller is faster)\n" \
  2336. " -p process id(s) (default)\n" \
  2337. " -g process group id(s)\n" \
  2338. " -u process user name(s) and/or id(s)"
  2339. #define reset_trivial_usage \
  2340. ""
  2341. #define reset_full_usage \
  2342. "Resets the screen."
  2343. #define resize_trivial_usage \
  2344. ""
  2345. #define resize_full_usage \
  2346. "Resizes the screen."
  2347. #define rm_trivial_usage \
  2348. "[OPTION]... FILE..."
  2349. #define rm_full_usage \
  2350. "Remove (unlink) the FILE(s). You may use '--' to\n" \
  2351. "indicate that all following arguments are non-options.\n\n" \
  2352. "Options:\n" \
  2353. " -i always prompt before removing each destination\n" \
  2354. " -f remove existing destinations, never prompt\n" \
  2355. " -r or -R remove the contents of directories recursively"
  2356. #define rm_example_usage \
  2357. "$ rm -rf /tmp/foo\n"
  2358. #define rmdir_trivial_usage \
  2359. "[OPTION]... DIRECTORY..."
  2360. #define rmdir_full_usage \
  2361. "Remove the DIRECTORY(ies), if they are empty."
  2362. #define rmdir_example_usage \
  2363. "# rmdir /tmp/foo\n"
  2364. #define rmmod_trivial_usage \
  2365. "[OPTION]... [MODULE]..."
  2366. #define rmmod_full_usage \
  2367. "Unloads the specified kernel modules from the kernel.\n\n" \
  2368. "Options:\n" \
  2369. " -a Remove all unused modules (recursively)"
  2370. #define rmmod_example_usage \
  2371. "$ rmmod tulip\n"
  2372. #define route_trivial_usage \
  2373. "[{add|del|delete}]"
  2374. #define route_full_usage \
  2375. "Edit the kernel's routing tables.\n\n" \
  2376. "Options:\n" \
  2377. " -n Dont resolve names\n" \
  2378. " -e Display other/more information\n" \
  2379. " -A inet" USE_FEATURE_IPV6("{6}") " Select address family"
  2380. #define rpm_trivial_usage \
  2381. "-i -q[ildc]p package.rpm"
  2382. #define rpm_full_usage \
  2383. "Manipulates RPM packages" \
  2384. "\n\nOptions:" \
  2385. "\n -i Install package" \
  2386. "\n -q Query package" \
  2387. "\n -p Query uninstalled package" \
  2388. "\n -i Show information" \
  2389. "\n -l List contents" \
  2390. "\n -d List documents" \
  2391. "\n -c List config files"
  2392. #define rpm2cpio_trivial_usage \
  2393. "package.rpm"
  2394. #define rpm2cpio_full_usage \
  2395. "Outputs a cpio archive of the rpm file."
  2396. #define run_parts_trivial_usage \
  2397. "[-t] [-a ARG] [-u MASK] DIRECTORY"
  2398. #define run_parts_full_usage \
  2399. "Run a bunch of scripts in a directory.\n\n" \
  2400. "Options:\n" \
  2401. " -t Prints what would be run, but does not actually run anything\n" \
  2402. " -a ARG Pass ARG as an argument for every program invoked\n" \
  2403. " -u MASK Set the umask to MASK before executing every program"
  2404. #define runlevel_trivial_usage \
  2405. "[utmp]"
  2406. #define runlevel_full_usage \
  2407. "Find the current and previous system runlevel.\n\n" \
  2408. "If no utmp file exists or if no runlevel record can be found,\n" \
  2409. "runlevel prints \"unknown\""
  2410. #define runlevel_example_usage \
  2411. "$ runlevel /var/run/utmp\n" \
  2412. "N 2"
  2413. #define runsv_trivial_usage \
  2414. "dir"
  2415. #define runsv_full_usage \
  2416. "Start and monitor a service and optionally an appendant log service."
  2417. #define runsvdir_trivial_usage \
  2418. "[-P] dir"
  2419. #define runsvdir_full_usage \
  2420. "Start a runsv process for each subdirectory."
  2421. #define rx_trivial_usage \
  2422. "FILE"
  2423. #define rx_full_usage \
  2424. "Receive a file using the xmodem protocol."
  2425. #define rx_example_usage \
  2426. "$ rx /tmp/foo\n"
  2427. #define sed_trivial_usage \
  2428. "[-efinr] pattern [files...]"
  2429. #define sed_full_usage \
  2430. "Options:\n" \
  2431. " -e script add the script to the commands to be executed\n" \
  2432. " -f scriptfile add script-file contents to the\n" \
  2433. " commands to be executed\n" \
  2434. " -i edit files in-place\n" \
  2435. " -n suppress automatic printing of pattern space\n" \
  2436. " -r use extended regular expression syntax\n" \
  2437. "\n" \
  2438. "If no -e or -f is given, the first non-option argument is taken as the sed\n" \
  2439. "script to interpret. All remaining arguments are names of input files; if no\n" \
  2440. "input files are specified, then the standard input is read. Source files\n" \
  2441. "will not be modified unless -i option is given."
  2442. #define sed_example_usage \
  2443. "$ echo \"foo\" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \
  2444. "bar\n"
  2445. #define seq_trivial_usage \
  2446. "[first [increment]] last"
  2447. #define seq_full_usage \
  2448. "Print numbers from FIRST to LAST, in steps of INCREMENT.\n" \
  2449. "FIRST, INCREMENT default to 1\n" \
  2450. "Arguments:\n" \
  2451. " LAST\n" \
  2452. " FIRST LAST\n" \
  2453. " FIRST INCREMENT LAST"
  2454. #define setconsole_trivial_usage \
  2455. "[-r|--reset] [DEVICE]"
  2456. #define setconsole_full_usage \
  2457. "Redirects system console output to DEVICE (default: /dev/tty).\n\n" \
  2458. "Options:\n" \
  2459. " -r Reset output to /dev/console."
  2460. #define setkeycodes_trivial_usage \
  2461. "SCANCODE KEYCODE ..."
  2462. #define setkeycodes_full_usage \
  2463. "Set entries into the kernel's scancode-to-keycode map,\n" \
  2464. "allowing unusual keyboards to generate usable keycodes.\n\n" \
  2465. "SCANCODE may be either xx or e0xx (hexadecimal),\n" \
  2466. "and KEYCODE is given in decimal"
  2467. #define setkeycodes_example_usage \
  2468. "$ setkeycodes e030 127\n"
  2469. #define setlogcons_trivial_usage \
  2470. "N"
  2471. #define setlogcons_full_usage \
  2472. "Redirects the kernel output to console N (0 for current)."
  2473. #define setsid_trivial_usage \
  2474. "program [arg ...]"
  2475. #define setsid_full_usage \
  2476. "Runs any program in a new session by calling setsid() before\n" \
  2477. "exec'ing the rest of its arguments. See setsid(2) for details."
  2478. #define lash_trivial_usage \
  2479. "[FILE]...\n" \
  2480. "or: sh -c command [args]..."
  2481. #define lash_full_usage \
  2482. "The BusyBox LAme SHell (command interpreter)"
  2483. #define lash_notes_usage \
  2484. "This command does not yet have proper documentation.\n\n" \
  2485. "Use lash just as you would use any other shell. It properly handles pipes,\n" \
  2486. "redirects, job control, can be used as the shell for scripts, and has a\n" \
  2487. "sufficient set of builtins to do what is needed. It does not (yet) support\n" \
  2488. "Bourne Shell syntax. If you need things like \"if-then-else\", \"while\", and such\n" \
  2489. "use ash or bash. If you just need a very simple and extremely small shell,\n" \
  2490. "this will do the job."
  2491. #define last_trivial_usage \
  2492. ""
  2493. #define last_full_usage \
  2494. "Shows listing of the last users that logged into the system"
  2495. #define sha1sum_trivial_usage \
  2496. "[OPTION] [FILEs...]" \
  2497. USE_FEATURE_MD5_SHA1_SUM_CHECK("\n or: sha1sum [OPTION] -c [FILE]")
  2498. #define sha1sum_full_usage \
  2499. "Print" USE_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA1 checksums.\n\n" \
  2500. "Options:\n" \
  2501. "With no FILE, or when FILE is -, read standard input." \
  2502. USE_FEATURE_MD5_SHA1_SUM_CHECK("\n\n" \
  2503. " -c check SHA1 sums against given list\n" \
  2504. "\nThe following two options are useful only when verifying checksums:\n" \
  2505. " -s don't output anything, status code shows success\n" \
  2506. " -w warn about improperly formatted SHA1 checksum lines")
  2507. #define sleep_trivial_usage \
  2508. USE_FEATURE_FANCY_SLEEP("[") "N" USE_FEATURE_FANCY_SLEEP("]...")
  2509. #define sleep_full_usage \
  2510. SKIP_FEATURE_FANCY_SLEEP("Pause for N seconds.") \
  2511. USE_FEATURE_FANCY_SLEEP( \
  2512. "Pause for a time equal to the total of the args given, where each arg can\n" \
  2513. " have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays.")
  2514. #define sleep_example_usage \
  2515. "$ sleep 2\n" \
  2516. "[2 second delay results]\n" \
  2517. USE_FEATURE_FANCY_SLEEP("$ sleep 1d 3h 22m 8s\n" \
  2518. "[98528 second delay results]\n")
  2519. #define sort_trivial_usage \
  2520. "[-nru" USE_FEATURE_SORT_BIG("gMcszbdfimSTokt] [-o outfile] [-k start[.offset][opts][,end[.offset][opts]] [-t char") "] [FILE]..."
  2521. #define sort_full_usage \
  2522. "Sorts lines of text in the specified files\n\n" \
  2523. "Options:\n" \
  2524. USE_FEATURE_SORT_BIG( \
  2525. " -b ignore leading blanks\n" \
  2526. " -c check whether input is sorted\n" \
  2527. " -d dictionary order (blank or alphanumeric only)\n" \
  2528. " -f ignore case\n" \
  2529. " -g general numerical sort\n" \
  2530. " -i ignore unprintable characters\n" \
  2531. " -k specify sort key\n" \
  2532. " -M sort month\n" \
  2533. ) \
  2534. " -n sort numbers\n" \
  2535. USE_FEATURE_SORT_BIG( \
  2536. " -o output to file\n" \
  2537. " -k sort by key\n" \
  2538. " -t use key separator other than whitespace\n" \
  2539. ) \
  2540. " -r reverse sort order\n" \
  2541. USE_FEATURE_SORT_BIG(" -s stable (don't sort ties alphabetically)\n") \
  2542. " -u suppress duplicate lines" \
  2543. USE_FEATURE_SORT_BIG("\n -z input terminated by nulls, not newlines\n") \
  2544. USE_FEATURE_SORT_BIG(" -mST ignored for GNU compatibility") \
  2545. ""
  2546. #define sort_example_usage \
  2547. "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \
  2548. "a\n" \
  2549. "b\n" \
  2550. "c\n" \
  2551. "d\n" \
  2552. "e\n" \
  2553. "f\n" \
  2554. USE_FEATURE_SORT_BIG( \
  2555. "$ echo -e \"c 3\\nb 2\\nd 2\" | $SORT -k 2,2n -k 1,1r\n" \
  2556. "d 2\n" \
  2557. "b 2\n" \
  2558. "c 3\n" \
  2559. ) \
  2560. ""
  2561. #define start_stop_daemon_trivial_usage \
  2562. "[OPTIONS] [--start|--stop] ... [-- arguments...]"
  2563. #define start_stop_daemon_full_usage \
  2564. "Program to start and stop services." \
  2565. "\n\nOptions:" \
  2566. "\n -S|--start start" \
  2567. "\n -K|--stop stop" \
  2568. "\n -a|--startas <pathname> starts process specified by pathname" \
  2569. "\n -b|--background force process into background" \
  2570. "\n -u|--user <username>|<uid> stop this user's processes" \
  2571. "\n -x|--exec <executable> program to either start or check" \
  2572. "\n -m|--make-pidfile create the -p file and enter pid in it" \
  2573. "\n -n|--name <process-name> stop processes with this name" \
  2574. "\n -p|--pidfile <pid-file> save or load pid using a pid-file" \
  2575. "\n -q|--quiet be quiet" \
  2576. USE_FEATURE_START_STOP_DAEMON_FANCY( \
  2577. "\n -o|--oknodo exit status 0 if nothing done" \
  2578. "\n -v|--verbose be verbose" \
  2579. "\n -N|--nicelevel <N> add N to process's nice level" \
  2580. ) \
  2581. "\n -s|--signal <signal> signal to send (default TERM)" \
  2582. "\n -U|--chuid <username>|<uid> start process with this name"
  2583. #define stat_trivial_usage \
  2584. "[OPTION] FILE..."
  2585. #define stat_full_usage \
  2586. "display file (default) or filesystem status.\n\n" \
  2587. "Options:\n" \
  2588. USE_FEATURE_STAT_FORMAT(" -c fmt use the specified format\n") \
  2589. " -f display filesystem status\n" \
  2590. " -L,-l dereference links\n" \
  2591. " -t display info in terse form\n" \
  2592. USE_FEATURE_STAT_FORMAT( \
  2593. "\nValid format sequences for files:\n" \
  2594. " %a Access rights in octal\n" \
  2595. " %A Access rights in human readable form\n" \
  2596. " %b Number of blocks allocated (see %B)\n" \
  2597. " %B The size in bytes of each block reported by %b\n" \
  2598. " %d Device number in decimal\n" \
  2599. " %D Device number in hex\n" \
  2600. " %f Raw mode in hex\n" \
  2601. " %F File type\n" \
  2602. " %g Group ID of owner\n" \
  2603. " %G Group name of owner\n" \
  2604. " %h Number of hard links\n" \
  2605. " %i Inode number\n" \
  2606. " %n File name\n" \
  2607. " %N Quoted file name with dereference if symbolic link\n" \
  2608. " %o I/O block size\n" \
  2609. " %s Total size, in bytes\n" \
  2610. " %t Major device type in hex\n" \
  2611. " %T Minor device type in hex\n" \
  2612. " %u User ID of owner\n" \
  2613. " %U User name of owner\n" \
  2614. " %x Time of last access\n" \
  2615. " %X Time of last access as seconds since Epoch\n" \
  2616. " %y Time of last modification\n" \
  2617. " %Y Time of last modification as seconds since Epoch\n" \
  2618. " %z Time of last change\n" \
  2619. " %Z Time of last change as seconds since Epoch\n" \
  2620. "\nValid format sequences for file systems:\n" \
  2621. " %a Free blocks available to non-superuser\n" \
  2622. " %b Total data blocks in file system\n" \
  2623. " %c Total file nodes in file system\n" \
  2624. " %d Free file nodes in file system\n" \
  2625. " %f Free blocks in file system\n" \
  2626. " %i File System ID in hex\n" \
  2627. " %l Maximum length of filenames\n" \
  2628. " %n File name\n" \
  2629. " %s Block size (for faster transfers)\n" \
  2630. " %S Fundamental block size (for block counts)\n" \
  2631. " %t Type in hex\n" \
  2632. " %T Type in human readable form\n" \
  2633. )
  2634. #define strings_trivial_usage \
  2635. "[-afo] [-n length] [file ... ]"
  2636. #define strings_full_usage \
  2637. "Display printable strings in a binary file." \
  2638. "\n\nOptions:" \
  2639. "\n -a Scan the whole files (this is the default)." \
  2640. "\n -f Precede each string with the name of the file where it was found." \
  2641. "\n -n N Specifies that at least N characters forms a sequence (default 4)" \
  2642. "\n -o Each string is preceded by its decimal offset in the file"
  2643. #define stty_trivial_usage \
  2644. "[-a|g] [-F DEVICE] [SETTING]..."
  2645. #define stty_full_usage \
  2646. "Without arguments, prints baud rate, line discipline," \
  2647. "\nand deviations from stty sane." \
  2648. "\n\nOptions:" \
  2649. "\n -F DEVICE open device instead of stdin" \
  2650. "\n -a print all current settings in human-readable form" \
  2651. "\n -g print in stty-readable form" \
  2652. "\n [SETTING] see manpage"
  2653. #define su_trivial_usage \
  2654. "[OPTION]... [-] [username]"
  2655. #define su_full_usage \
  2656. "Change user id or become root.\n" \
  2657. "Options:\n" \
  2658. " -p, -m Preserve environment" \
  2659. "\n -c Command to pass to 'sh -c'" \
  2660. "\n -s Shell to use instead of default shell"
  2661. #define sulogin_trivial_usage \
  2662. "[OPTION]... [tty-device]"
  2663. #define sulogin_full_usage \
  2664. "Single user login\n" \
  2665. "Options:\n" \
  2666. " -t Timeout"
  2667. #define sum_trivial_usage \
  2668. "[rs] [files...]"
  2669. #define sum_full_usage \
  2670. "checksum and count the blocks in a file\n\n" \
  2671. "Options:\n" \
  2672. " -r use BSD sum algorithm (1K blocks)\n" \
  2673. " -s use System V sum algorithm (512byte blocks)"
  2674. #define sv_trivial_usage \
  2675. "[-v] [-w sec] command service..."
  2676. #define sv_full_usage \
  2677. "Report the current status and control the state of services " \
  2678. "monitored by the runsv supervisor."
  2679. #define svlogd_trivial_usage \
  2680. "[-ttv] [-r c] [-R abc] [-l len] [-b buflen] dir..."
  2681. #define svlogd_full_usage \
  2682. "Continuously read log data from standard input, optionally " \
  2683. "filter log messages, and write the data to one or more automatically " \
  2684. "rotated logs."
  2685. #define swapoff_trivial_usage \
  2686. "[-a] [DEVICE]"
  2687. #define swapoff_full_usage \
  2688. "Stop swapping virtual memory pages on DEVICE.\n\n" \
  2689. "Options:\n" \
  2690. " -a Stop swapping on all swap devices"
  2691. #define swapon_trivial_usage \
  2692. "[-a] [DEVICE]"
  2693. #define swapon_full_usage \
  2694. "Start swapping virtual memory pages on DEVICE.\n\n" \
  2695. "Options:\n" \
  2696. " -a Start swapping on all swap devices"
  2697. #define switch_root_trivial_usage \
  2698. "[-c /dev/console] NEW_ROOT NEW_INIT [ARGUMENTS_TO_INIT]"
  2699. #define switch_root_full_usage \
  2700. "Use from PID 1 under initramfs to free initramfs, chroot to NEW_ROOT,\n" \
  2701. "and exec NEW_INIT.\n\n" \
  2702. "Options:\n" \
  2703. " -c Redirect console to device on new root"
  2704. #define sync_trivial_usage \
  2705. ""
  2706. #define sync_full_usage \
  2707. "Write all buffered filesystem blocks to disk."
  2708. #define sysctl_trivial_usage \
  2709. "[OPTIONS]... [VALUE]..."
  2710. #define sysctl_full_usage \
  2711. "configure kernel parameters at runtime\n\n" \
  2712. "Options:\n" \
  2713. " -n Use this option to disable printing of the key name when printing values\n" \
  2714. " -w Use this option when you want to change a sysctl setting\n" \
  2715. " -p Load in sysctl settings from the file specified or /etc/sysctl.conf if none given\n" \
  2716. " -a Display all values currently available\n" \
  2717. " -A Display all values currently available in table form"
  2718. #define sysctl_example_usage \
  2719. "sysctl [-n] variable ...\n" \
  2720. "sysctl [-n] -w variable=value ...\n" \
  2721. "sysctl [-n] -a\n" \
  2722. "sysctl [-n] -p <file> (default /etc/sysctl.conf)\n" \
  2723. "sysctl [-n] -A\n"
  2724. #define syslogd_trivial_usage \
  2725. "[OPTION]..."
  2726. #define syslogd_full_usage \
  2727. "Linux system and kernel logging utility.\n" \
  2728. "Note that this version of syslogd ignores /etc/syslog.conf.\n\n" \
  2729. "Options:\n" \
  2730. " -m MIN Minutes between MARK lines (default=20, 0=off)\n" \
  2731. " -n Run as a foreground process\n" \
  2732. " -O FILE Use an alternate log file (default=/var/log/messages)\n" \
  2733. " -l n Sets the local log level of messages to n\n" \
  2734. " -S Make logging output smaller" \
  2735. USE_FEATURE_ROTATE_LOGFILE( \
  2736. "\n -s SIZE Max size (KB) before rotate (default=200KB, 0=off)\n" \
  2737. " -b NUM Number of rotated logs to keep (default=1, max=99, 0=purge)") \
  2738. USE_FEATURE_REMOTE_LOG( \
  2739. "\n -R HOST[:PORT] Log to IP or hostname on PORT (default PORT=514/UDP)\n" \
  2740. " -L Log locally and via network logging (default is network only)") \
  2741. USE_FEATURE_IPC_SYSLOG( \
  2742. "\n -C [size(KiB)] Log to a circular buffer (read the buffer using logread)")
  2743. #define syslogd_example_usage \
  2744. "$ syslogd -R masterlog:514\n" \
  2745. "$ syslogd -R 192.168.1.1:601\n"
  2746. #define tail_trivial_usage \
  2747. "[OPTION]... [FILE]..."
  2748. #define tail_full_usage \
  2749. "Print last 10 lines of each FILE to standard output.\n" \
  2750. "With more than one FILE, precede each with a header giving the\n" \
  2751. "file name. With no FILE, or when FILE is -, read standard input.\n\n" \
  2752. "Options:\n" \
  2753. USE_FEATURE_FANCY_TAIL(" -c N[kbm] output the last N bytes\n") \
  2754. " -n N[kbm] print last N lines instead of last 10\n" \
  2755. " -f output data as the file grows" \
  2756. USE_FEATURE_FANCY_TAIL( "\n -q never output headers giving file names\n" \
  2757. " -s SEC wait SEC seconds between reads with -f\n" \
  2758. " -v always output headers giving file names\n\n" \
  2759. "If the first character of N (bytes or lines) is a '+', output begins with\n" \
  2760. "the Nth item from the start of each file, otherwise, print the last N items\n" \
  2761. "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)." )
  2762. #define tail_example_usage \
  2763. "$ tail -n 1 /etc/resolv.conf\n" \
  2764. "nameserver 10.0.0.1\n"
  2765. #define tar_trivial_usage \
  2766. "-[" USE_FEATURE_TAR_CREATE("c") USE_FEATURE_TAR_GZIP("z") \
  2767. USE_FEATURE_TAR_BZIP2("j") USE_FEATURE_TAR_LZMA("a") \
  2768. USE_FEATURE_TAR_COMPRESS("Z") "xtvO] " \
  2769. USE_FEATURE_TAR_FROM("[-X FILE] ") \
  2770. "[-f TARFILE] [-C DIR] [FILE(s)] ..."
  2771. #define tar_full_usage \
  2772. "Create, extract, or list files from a tar file.\n\n" \
  2773. "Options:\n" \
  2774. USE_FEATURE_TAR_CREATE(" c create\n") \
  2775. " x extract\n" \
  2776. " t list\n" \
  2777. "\nArchive format selection:\n" \
  2778. USE_FEATURE_TAR_GZIP(" z Filter the archive through gzip\n") \
  2779. USE_FEATURE_TAR_BZIP2(" j Filter the archive through bzip2\n") \
  2780. USE_FEATURE_TAR_LZMA(" a Filter the archive through lzma\n") \
  2781. USE_FEATURE_TAR_COMPRESS(" Z Filter the archive through compress\n") \
  2782. "\nFile selection:\n" \
  2783. " f name of TARFILE or \"-\" for stdin\n" \
  2784. " O extract to stdout\n" \
  2785. USE_FEATURE_TAR_FROM( \
  2786. " exclude file to exclude\n" \
  2787. " X file with names to exclude\n" \
  2788. ) \
  2789. " C change to directory DIR before operation\n" \
  2790. " v verbosely list files processed"
  2791. #define tar_example_usage \
  2792. "$ zcat /tmp/tarball.tar.gz | tar -xf -\n" \
  2793. "$ tar -cf /tmp/tarball.tar /usr/local\n"
  2794. #define taskset_trivial_usage \
  2795. "[OPTIONS] [mask] [pid | command [arg]...]"
  2796. #define taskset_full_usage \
  2797. "Set or get CPU affinity.\n\n" \
  2798. "Options:\n" \
  2799. " -p operate on an existing PID"
  2800. #define taskset_example_usage \
  2801. "$ taskset 0x7 ./dgemm_test&\n" \
  2802. "$ taskset -p 0x1 $!\n" \
  2803. "pid 4790's current affinity mask: 7\n" \
  2804. "pid 4790's new affinity mask: 1\n" \
  2805. "$ taskset 0x7 /bin/sh -c './taskset -p 0x1 $$'\n" \
  2806. "pid 6671's current affinity mask: 1\n" \
  2807. "pid 6671's new affinity mask: 1\n" \
  2808. "$ taskset -p 1\n"
  2809. "pid 1's current affinity mask: 3\n"
  2810. #define tee_trivial_usage \
  2811. "[OPTION]... [FILE]..."
  2812. #define tee_full_usage \
  2813. "Copy standard input to each FILE, and also to standard output.\n\n" \
  2814. "Options:\n" \
  2815. " -a append to the given FILEs, do not overwrite\n" \
  2816. " -i ignore interrupt signals (SIGINT)"
  2817. #define tee_example_usage \
  2818. "$ echo \"Hello\" | tee /tmp/foo\n" \
  2819. "$ cat /tmp/foo\n" \
  2820. "Hello\n"
  2821. #ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN
  2822. #define telnet_trivial_usage \
  2823. "[-a] [-l USER] HOST [PORT]"
  2824. #define telnet_full_usage \
  2825. "Telnet is used to establish interactive communication with another\n" \
  2826. "computer over a network using the TELNET protocol.\n\n" \
  2827. "Options:\n" \
  2828. " -a Attempt an automatic login with the USER variable\n" \
  2829. " -l USER Attempt an automatic login with the USER argument\n" \
  2830. " HOST The official name, alias or the IP address of the\n" \
  2831. " remote host.\n" \
  2832. " PORT The remote port number to connect to. If it is not\n" \
  2833. " specified, the default telnet (23) port is used."
  2834. #else
  2835. #define telnet_trivial_usage \
  2836. "HOST [PORT]"
  2837. #define telnet_full_usage \
  2838. "Telnet is used to establish interactive communication with another\n" \
  2839. "computer over a network using the TELNET protocol."
  2840. #endif
  2841. #ifdef CONFIG_FEATURE_TELNETD_STANDALONE
  2842. #define telnetd_trivial_usage \
  2843. "[OPTION]"
  2844. #define telnetd_full_usage \
  2845. "Telnetd listens for incoming TELNET connections on PORT.\n" \
  2846. "Options:\n" \
  2847. " -p PORT listen for connections on PORT (default 23)\n" \
  2848. " -l LOGIN exec LOGIN on connect\n" \
  2849. " -f issue_file Display issue_file instead of /etc/issue\n" \
  2850. " -F Foreground mode\n" \
  2851. " -i Inetd mode"
  2852. #else
  2853. #define telnetd_trivial_usage \
  2854. "[OPTION]"
  2855. #define telnetd_full_usage \
  2856. "Telnetd uses incoming TELNET connections via inetd.\n" \
  2857. "Options:\n" \
  2858. " -l LOGIN exec LOGIN on connect\n" \
  2859. " -f issue_file Display issue_file instead of /etc/issue"
  2860. #endif
  2861. #define test_trivial_usage \
  2862. "EXPRESSION\n or [ EXPRESSION ]"
  2863. #define test_full_usage \
  2864. "Checks file types and compares values returning an exit\n" \
  2865. "code determined by the value of EXPRESSION."
  2866. #define test_example_usage \
  2867. "$ test 1 -eq 2\n" \
  2868. "$ echo $?\n" \
  2869. "1\n" \
  2870. "$ test 1 -eq 1\n" \
  2871. "$ echo $?\n" \
  2872. "0\n" \
  2873. "$ [ -d /etc ]\n" \
  2874. "$ echo $?\n" \
  2875. "0\n" \
  2876. "$ [ -d /junk ]\n" \
  2877. "$ echo $?\n" \
  2878. "1\n"
  2879. #define tftp_trivial_usage \
  2880. "[OPTION]... HOST [PORT]"
  2881. #define tftp_full_usage \
  2882. "Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \
  2883. "Options:\n" \
  2884. " -l FILE Local FILE\n" \
  2885. " -r FILE Remote FILE" \
  2886. USE_FEATURE_TFTP_GET( \
  2887. "\n -g Get file" \
  2888. ) \
  2889. USE_FEATURE_TFTP_PUT( \
  2890. "\n -p Put file" \
  2891. ) \
  2892. USE_FEATURE_TFTP_BLOCKSIZE( \
  2893. "\n -b SIZE Transfer blocks of SIZE octets" \
  2894. )
  2895. #define time_trivial_usage \
  2896. "[OPTION]... COMMAND [ARGS...]"
  2897. #define time_full_usage \
  2898. "Runs the program COMMAND with arguments ARGS. When COMMAND finishes,\n" \
  2899. "COMMAND's resource usage information is displayed\n\n" \
  2900. "Options:\n" \
  2901. " -v Displays verbose resource usage information"
  2902. #define top_trivial_usage \
  2903. "[-b] [-n count] [-d seconds]"
  2904. #define top_full_usage \
  2905. "top provides a view of process activity in real time.\n" \
  2906. "It reads the status of all processes from /proc each <seconds>\n" \
  2907. "and shows the status for however many processes will fit on the screen."
  2908. #define touch_trivial_usage \
  2909. "[-c] FILE [FILE ...]"
  2910. #define touch_full_usage \
  2911. "Update the last-modified date on the given FILE[s].\n\n" \
  2912. "Options:\n" \
  2913. " -c Do not create any files"
  2914. #define touch_example_usage \
  2915. "$ ls -l /tmp/foo\n" \
  2916. "/bin/ls: /tmp/foo: No such file or directory\n" \
  2917. "$ touch /tmp/foo\n" \
  2918. "$ ls -l /tmp/foo\n" \
  2919. "-rw-rw-r-- 1 andersen andersen 0 Apr 15 01:11 /tmp/foo\n"
  2920. #define tr_trivial_usage \
  2921. "[-cds] STRING1 [STRING2]"
  2922. #define tr_full_usage \
  2923. "Translate, squeeze, and/or delete characters from\n" \
  2924. "standard input, writing to standard output.\n\n" \
  2925. "Options:\n" \
  2926. " -c take complement of STRING1\n" \
  2927. " -d delete input characters coded STRING1\n" \
  2928. " -s squeeze multiple output characters of STRING2 into one character"
  2929. #define tr_example_usage \
  2930. "$ echo \"gdkkn vnqkc\" | tr [a-y] [b-z]\n" \
  2931. "hello world\n"
  2932. #define traceroute_trivial_usage \
  2933. "[-FIldnrv] [-f 1st_ttl] [-m max_ttl] [-p port#] [-q nqueries]\n" \
  2934. " [-s src_addr] [-t tos] [-w wait] [-g gateway] [-i iface]\n" \
  2935. " [-z pausemsecs] host [data size]"
  2936. #define traceroute_full_usage \
  2937. "trace the route ip packets follow going to \"host\"\n" \
  2938. "Options:\n" \
  2939. " -F Set the don't fragment bit\n" \
  2940. " -I Use ICMP ECHO instead of UDP datagrams\n" \
  2941. " -l Display the ttl value of the returned packet\n" \
  2942. " -d Set SO_DEBUG options to socket\n" \
  2943. " -n Print hop addresses numerically rather than symbolically\n" \
  2944. " -r Bypass the normal routing tables and send directly to a host\n" \
  2945. " -v Verbose output\n" \
  2946. " -m max_ttl Set the max time-to-live (max number of hops)\n" \
  2947. " -p port# Set the base UDP port number used in probes\n" \
  2948. " (default is 33434)\n" \
  2949. " -q nqueries Set the number of probes per 'ttl' to nqueries\n" \
  2950. " (default is 3)\n" \
  2951. " -s src_addr Use the following IP address as the source address\n" \
  2952. " -t tos Set the type-of-service in probe packets to the following value\n" \
  2953. " (default 0)\n" \
  2954. " -w wait Set the time (in seconds) to wait for a response to a probe\n" \
  2955. " (default 3 sec)\n" \
  2956. " -g Specify a loose source route gateway (8 maximum)"
  2957. #define true_trivial_usage \
  2958. ""
  2959. #define true_full_usage \
  2960. "Return an exit code of TRUE (0)."
  2961. #define true_example_usage \
  2962. "$ true\n" \
  2963. "$ echo $?\n" \
  2964. "0\n"
  2965. #define tty_trivial_usage \
  2966. ""
  2967. #define tty_full_usage \
  2968. "Print the file name of the terminal connected to standard input.\n\n" \
  2969. "Options:\n" \
  2970. " -s print nothing, only return an exit status"
  2971. #define tty_example_usage \
  2972. "$ tty\n" \
  2973. "/dev/tty2\n"
  2974. #define tune2fs_trivial_usage \
  2975. "[-c max-mounts-count] [-e errors-behavior] [-g group] " \
  2976. "[-i interval[d|m|w]] [-j] [-J journal-options] [-l] [-s sparse-flag] " \
  2977. "[-m reserved-blocks-percent] [-o [^]mount-options[,...]] " \
  2978. "[-r reserved-blocks-count] [-u user] [-C mount-count] " \
  2979. "[-L volume-label] [-M last-mounted-dir] [-O [^]feature[,...]] " \
  2980. "[-T last-check-time] [-U UUID] device"
  2981. #define tune2fs_full_usage \
  2982. "Adjust filesystem options on ext[23] filesystems."
  2983. #define udhcpc_trivial_usage \
  2984. "[-Cfbnqtv] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n[-p pidfile] [-r IP] [-s script]"
  2985. #define udhcpc_full_usage \
  2986. " -V,--vendorclass=CLASSID Set vendor class identifier\n" \
  2987. " -i,--interface=INTERFACE Interface to use (default: eth0)\n" \
  2988. " -H,-h,--hostname=HOSTNAME Client hostname\n" \
  2989. " -c,--clientid=CLIENTID Set client identifier\n" \
  2990. " -C,--clientid-none Suppress default client identifier\n" \
  2991. " -p,--pidfile=file Store process ID of daemon in file\n" \
  2992. " -r,--request=IP IP address to request (default: none)\n" \
  2993. " -s,--script=file Run file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \
  2994. " -t,--retries=NUM Send up to NUM request packets\n"\
  2995. " -f,--foreground Do not fork after getting lease\n" \
  2996. " -b,--background Fork to background if lease cannot be immediately negotiated\n" \
  2997. " -n,--now Exit with failure if lease cannot be immediately negotiated\n" \
  2998. " -q,--quit Quit after obtaining lease\n" \
  2999. " -R,--release Release IP on quit\n" \
  3000. " -v,--version Display version" \
  3001. #define udhcpd_trivial_usage \
  3002. "[configfile]\n" \
  3003. #define udhcpd_full_usage \
  3004. ""
  3005. #define umount_trivial_usage \
  3006. "[flags] FILESYSTEM|DIRECTORY"
  3007. #define umount_full_usage \
  3008. "Unmount file systems\n" \
  3009. "\nFlags:\n" " -a Unmount all file systems" \
  3010. USE_FEATURE_MTAB_SUPPORT(" in /etc/mtab\n -n Don't erase /etc/mtab entries") \
  3011. "\n -r Try to remount devices as read-only if mount is busy" \
  3012. "\n -l Lazy umount (detach filesystem)" \
  3013. "\n -f Force umount (i.e., unreachable NFS server)" \
  3014. USE_FEATURE_MOUNT_LOOP("\n -D Do not free loop device (if a loop device has been used)")
  3015. #define umount_example_usage \
  3016. "$ umount /dev/hdc1\n"
  3017. #define uname_trivial_usage \
  3018. "[OPTION]..."
  3019. #define uname_full_usage \
  3020. "Print certain system information. With no OPTION, same as -s.\n\n" \
  3021. "Options:\n" \
  3022. " -a print all information\n" \
  3023. " -m the machine (hardware) type\n" \
  3024. " -n print the machine's network node hostname\n" \
  3025. " -r print the operating system release\n" \
  3026. " -s print the operating system name\n" \
  3027. " -p print the host processor type\n" \
  3028. " -v print the operating system version"
  3029. #define uname_example_usage \
  3030. "$ uname -a\n" \
  3031. "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 GNU/Linux\n"
  3032. #define uncompress_trivial_usage \
  3033. "[-c] [-f] [ name ... ]"
  3034. #define uncompress_full_usage \
  3035. "Uncompress .Z file[s]\n" \
  3036. "Options:\n" \
  3037. " -c extract to stdout\n" \
  3038. " -f force overwrite an existing file"
  3039. #define uniq_trivial_usage \
  3040. "[-fscdu]... [INPUT [OUTPUT]]"
  3041. #define uniq_full_usage \
  3042. "Discard all but one of successive identical lines from INPUT\n" \
  3043. "(or standard input), writing to OUTPUT (or standard output).\n\n" \
  3044. "Options:\n" \
  3045. " -c prefix lines by the number of occurrences\n" \
  3046. " -d only print duplicate lines\n" \
  3047. " -u only print unique lines\n" \
  3048. " -f N skip the first N fields\n" \
  3049. " -s N skip the first N chars (after any skipped fields)"
  3050. #define uniq_example_usage \
  3051. "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \
  3052. "a\n" \
  3053. "b\n" \
  3054. "c\n"
  3055. #define unix2dos_trivial_usage \
  3056. "[option] [FILE]"
  3057. #define unix2dos_full_usage \
  3058. "Converts FILE from unix format to dos format. When no option\n" \
  3059. "is given, the input is converted to the opposite output format.\n" \
  3060. "When no file is given, uses stdin for input and stdout for output.\n" \
  3061. "Options:\n" \
  3062. " -u output will be in UNIX format\n" \
  3063. " -d output will be in DOS format"
  3064. #define unzip_trivial_usage \
  3065. "[-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]"
  3066. #define unzip_full_usage \
  3067. "Extracts files from ZIP archives.\n\n" \
  3068. "Options:\n" \
  3069. " -l list archive contents (short form)\n" \
  3070. " -n never overwrite existing files (default)\n" \
  3071. " -o overwrite files without prompting\n" \
  3072. " -p send output to stdout\n" \
  3073. " -q be quiet\n" \
  3074. " -x exclude these files\n" \
  3075. " -d extract files into this directory"
  3076. #define uptime_trivial_usage \
  3077. ""
  3078. #define uptime_full_usage \
  3079. "Display the time since the last boot."
  3080. #define uptime_example_usage \
  3081. "$ uptime\n" \
  3082. " 1:55pm up 2:30, load average: 0.09, 0.04, 0.00\n"
  3083. #define usleep_trivial_usage \
  3084. "N"
  3085. #define usleep_full_usage \
  3086. "Pause for N microseconds."
  3087. #define usleep_example_usage \
  3088. "$ usleep 1000000\n" \
  3089. "[pauses for 1 second]\n"
  3090. #define uudecode_trivial_usage \
  3091. "[FILE]..."
  3092. #define uudecode_full_usage \
  3093. "Uudecode a file that is uuencoded.\n\n" \
  3094. "Options:\n" \
  3095. " -o FILE direct output to FILE"
  3096. #define uudecode_example_usage \
  3097. "$ uudecode -o busybox busybox.uu\n" \
  3098. "$ ls -l busybox\n" \
  3099. "-rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox\n"
  3100. #define uuencode_trivial_usage \
  3101. "[OPTION] [INFILE] REMOTEFILE"
  3102. #define uuencode_full_usage \
  3103. "Uuencode a file.\n\n" \
  3104. "Options:\n" \
  3105. " -m use base64 encoding per RFC1521"
  3106. #define uuencode_example_usage \
  3107. "$ uuencode busybox busybox\n" \
  3108. "begin 755 busybox\n" \
  3109. "<encoded file snipped>\n" \
  3110. "$ uudecode busybox busybox > busybox.uu\n" \
  3111. "$\n"
  3112. #define vconfig_trivial_usage \
  3113. "COMMAND [OPTIONS] ..."
  3114. #define vconfig_full_usage \
  3115. "vconfig lets you create and remove virtual ethernet devices.\n\n" \
  3116. "Options:\n" \
  3117. " add [interface-name] [vlan_id]\n" \
  3118. " rem [vlan-name]\n" \
  3119. " set_flag [interface-name] [flag-num] [0 | 1]\n" \
  3120. " set_egress_map [vlan-name] [skb_priority] [vlan_qos]\n" \
  3121. " set_ingress_map [vlan-name] [skb_priority] [vlan_qos]\n" \
  3122. " set_name_type [name-type]"
  3123. #define vi_trivial_usage \
  3124. "[OPTION] [FILE]..."
  3125. #define vi_full_usage \
  3126. "edit FILE.\n\n" \
  3127. "Options:\n" \
  3128. " -R Read-only- do not write to the file"
  3129. #define vlock_trivial_usage \
  3130. "[OPTIONS]"
  3131. #define vlock_full_usage \
  3132. "Lock a virtual terminal. A password is required to unlock\n" \
  3133. "Options:\n" \
  3134. " -a Lock all VTs"
  3135. #define watch_trivial_usage \
  3136. "[-n <seconds>] [-t] COMMAND..."
  3137. #define watch_full_usage \
  3138. "Executes a program periodically\n\n" \
  3139. "Options:\n" \
  3140. " -n Loop period in seconds - default is 2\n"
  3141. " -t Don't print header"
  3142. #define watch_example_usage \
  3143. "$ watch date\n" \
  3144. "Mon Dec 17 10:31:40 GMT 2000\n" \
  3145. "Mon Dec 17 10:31:42 GMT 2000\n" \
  3146. "Mon Dec 17 10:31:44 GMT 2000"
  3147. #define watchdog_trivial_usage \
  3148. "[-t <seconds>] [-F] DEV"
  3149. #define watchdog_full_usage \
  3150. "Periodically write to watchdog device DEV.\n" \
  3151. "Options:\n" \
  3152. " -t Timer period in seconds - default is 30\n" \
  3153. " -F Stay in the foreground and don't fork"
  3154. #define wc_trivial_usage \
  3155. "[OPTION]... [FILE]..."
  3156. #define wc_full_usage \
  3157. "Print line, word, and byte counts for each FILE, and a total line if\n" \
  3158. "more than one FILE is specified. With no FILE, read standard input.\n\n" \
  3159. "Options:\n" \
  3160. " -c print the byte counts\n" \
  3161. " -l print the newline counts\n" \
  3162. " -L print the length of the longest line\n" \
  3163. " -w print the word counts"
  3164. #define wc_example_usage \
  3165. "$ wc /etc/passwd\n" \
  3166. " 31 46 1365 /etc/passwd\n"
  3167. #define wget_trivial_usage \
  3168. "[-c|--continue] [-q|--quiet] [-O|--output-document file]\n" \
  3169. " [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \
  3170. " [-U|--user-agent agent] url"
  3171. #define wget_full_usage \
  3172. "wget retrieves files via HTTP or FTP\n\n" \
  3173. "Options:\n" \
  3174. " -c continue retrieval of aborted transfers\n" \
  3175. " -q quiet mode - do not print\n" \
  3176. " -P Set directory prefix to DIR\n" \
  3177. " -O save to filename ('-' for stdout)\n" \
  3178. " -U adjust 'User-Agent' field\n" \
  3179. " -Y use proxy ('on' or 'off')"
  3180. #define which_trivial_usage \
  3181. "[COMMAND ...]"
  3182. #define which_full_usage \
  3183. "Locates a COMMAND."
  3184. #define which_example_usage \
  3185. "$ which login\n" \
  3186. "/bin/login\n"
  3187. #define who_trivial_usage \
  3188. " "
  3189. #define who_full_usage \
  3190. "Prints the current user names and related information"
  3191. #define whoami_trivial_usage \
  3192. ""
  3193. #define whoami_full_usage \
  3194. "Prints the user name associated with the current effective user id."
  3195. #define xargs_trivial_usage \
  3196. "[OPTIONS] [COMMAND] [ARGS...]"
  3197. #define xargs_full_usage \
  3198. "Executes COMMAND on every item given by standard input.\n\n" \
  3199. "Options:\n" \
  3200. USE_FEATURE_XARGS_SUPPORT_CONFIRMATION(" -p Prompt the user about whether to run each command\n") \
  3201. " -r Do not run command for empty read lines\n" \
  3202. USE_FEATURE_XARGS_SUPPORT_TERMOPT(" -x Exit if the size is exceeded\n") \
  3203. USE_FEATURE_XARGS_SUPPORT_ZERO_TERM(" -0 Input filenames are terminated by a null character\n") \
  3204. " -t Print the command line on stderr before executing it"
  3205. #define xargs_example_usage \
  3206. "$ ls | xargs gzip\n" \
  3207. "$ find . -name '*.c' -print | xargs rm\n"
  3208. #define yes_trivial_usage \
  3209. "[OPTION]... [STRING]..."
  3210. #define yes_full_usage \
  3211. "Repeatedly outputs a line with all specified STRING(s), or 'y'."
  3212. #define zcat_trivial_usage \
  3213. "FILE"
  3214. #define zcat_full_usage \
  3215. "Uncompress to stdout."
  3216. #define zcip_trivial_usage \
  3217. "[OPTIONS] ifname script"
  3218. #define zcip_full_usage \
  3219. "zcip manages a ZeroConf IPv4 link-local address.\n" \
  3220. "Options:\n" \
  3221. " -f foreground mode\n" \
  3222. " -q quit after address (no daemon)\n" \
  3223. " -r 169.254.x.x request this address first\n" \
  3224. " -v verbose"
  3225. #endif /* __BB_USAGE_H__ */