3
0

usage.h 157 KB

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