usage.h 186 KB

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