usage.h 151 KB

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