usage.h 182 KB

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