busybox.1 162 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191
  1. .\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .if !\nF .nr F 0
  58. .if \nF>0 \{\
  59. . de IX
  60. . tm Index:\\$1\t\\n%\t"\\$2"
  61. ..
  62. . if !\nF==2 \{\
  63. . nr % 0
  64. . nr F 2
  65. . \}
  66. .\}
  67. .\"
  68. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  69. .\" Fear. Run. Save yourself. No user-serviceable parts.
  70. . \" fudge factors for nroff and troff
  71. .if n \{\
  72. . ds #H 0
  73. . ds #V .8m
  74. . ds #F .3m
  75. . ds #[ \f1
  76. . ds #] \fP
  77. .\}
  78. .if t \{\
  79. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  80. . ds #V .6m
  81. . ds #F 0
  82. . ds #[ \&
  83. . ds #] \&
  84. .\}
  85. . \" simple accents for nroff and troff
  86. .if n \{\
  87. . ds ' \&
  88. . ds ` \&
  89. . ds ^ \&
  90. . ds , \&
  91. . ds ~ ~
  92. . ds /
  93. .\}
  94. .if t \{\
  95. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  96. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  97. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  98. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  99. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  100. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  101. .\}
  102. . \" troff and (daisy-wheel) nroff accents
  103. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  104. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  105. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  106. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  107. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  108. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  109. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  110. .ds ae a\h'-(\w'a'u*4/10)'e
  111. .ds Ae A\h'-(\w'A'u*4/10)'E
  112. . \" corrections for vroff
  113. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  114. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  115. . \" for low resolution devices (crt and lpr)
  116. .if \n(.H>23 .if \n(.V>19 \
  117. \{\
  118. . ds : e
  119. . ds 8 ss
  120. . ds o a
  121. . ds d- d\h'-1'\(ga
  122. . ds D- D\h'-1'\(hy
  123. . ds th \o'bp'
  124. . ds Th \o'LP'
  125. . ds ae ae
  126. . ds Ae AE
  127. .\}
  128. .rm #[ #] #H #V #F C
  129. .\" ========================================================================
  130. .\"
  131. .IX Title "BUSYBOX 1"
  132. .TH BUSYBOX 1 "2019-07-17" "version 1.28.1" "busybox"
  133. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  134. .\" way too many mistakes in technical documents.
  135. .if n .ad l
  136. .nh
  137. .SH "NAME"
  138. BusyBox \- The Swiss Army Knife of Embedded Linux
  139. .SH "SYNTAX"
  140. .IX Header "SYNTAX"
  141. .Vb 1
  142. \& busybox <applet> [arguments...] # or
  143. \&
  144. \& <applet> [arguments...] # if symlinked
  145. .Ve
  146. .SH "DESCRIPTION"
  147. .IX Header "DESCRIPTION"
  148. BusyBox combines tiny versions of many common \s-1UNIX\s0 utilities into a single
  149. small executable. It provides minimalist replacements for most of the utilities
  150. you usually find in \s-1GNU\s0 coreutils, util-linux, etc. The utilities in BusyBox
  151. generally have fewer options than their full-featured \s-1GNU\s0 cousins; however, the
  152. options that are included provide the expected functionality and behave very
  153. much like their \s-1GNU\s0 counterparts.
  154. .PP
  155. BusyBox has been written with size-optimization and limited resources in mind.
  156. It is also extremely modular so you can easily include or exclude commands (or
  157. features) at compile time. This makes it easy to customize your embedded
  158. systems. To create a working system, just add /dev, /etc, and a Linux kernel.
  159. BusyBox provides a fairly complete \s-1POSIX\s0 environment for any small or embedded
  160. system.
  161. .PP
  162. BusyBox is extremely configurable. This allows you to include only the
  163. components you need, thereby reducing binary size. Run 'make config' or 'make
  164. menuconfig' to select the functionality that you wish to enable. Then run
  165. \&'make' to compile BusyBox using your configuration.
  166. .PP
  167. After the compile has finished, you should use 'make install' to install
  168. BusyBox. This will install the 'bin/busybox' binary, in the target directory
  169. specified by \s-1CONFIG_PREFIX. CONFIG_PREFIX\s0 can be set when configuring BusyBox,
  170. or you can specify an alternative location at install time (i.e., with a
  171. command line like 'make CONFIG_PREFIX=/tmp/foo install'). If you enabled
  172. any applet installation scheme (either as symlinks or hardlinks), these will
  173. also be installed in the location pointed to by \s-1CONFIG_PREFIX.\s0
  174. .SH "USAGE"
  175. .IX Header "USAGE"
  176. BusyBox is a multi-call binary. A multi-call binary is an executable program
  177. that performs the same job as more than one utility program. That means there
  178. is just a single BusyBox binary, but that single binary acts like a large
  179. number of utilities. This allows BusyBox to be smaller since all the built-in
  180. utility programs (we call them applets) can share code for many common
  181. operations.
  182. .PP
  183. You can also invoke BusyBox by issuing a command as an argument on the
  184. command line. For example, entering
  185. .PP
  186. .Vb 1
  187. \& /bin/busybox ls
  188. .Ve
  189. .PP
  190. will also cause BusyBox to behave as 'ls'.
  191. .PP
  192. Of course, adding '/bin/busybox' into every command would be painful. So most
  193. people will invoke BusyBox using links to the BusyBox binary.
  194. .PP
  195. For example, entering
  196. .PP
  197. .Vb 2
  198. \& ln \-s /bin/busybox ls
  199. \& ./ls
  200. .Ve
  201. .PP
  202. will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled
  203. into BusyBox). Generally speaking, you should never need to make all these
  204. links yourself, as the BusyBox build system will do this for you when you run
  205. the 'make install' command.
  206. .PP
  207. If you invoke BusyBox with no arguments, it will provide you with a list of the
  208. applets that have been compiled into your BusyBox binary.
  209. .SH "COMMON OPTIONS"
  210. .IX Header "COMMON OPTIONS"
  211. Most BusyBox applets support the \fB\-\-help\fR argument to provide a terse runtime
  212. description of their behavior. If the \s-1CONFIG_FEATURE_VERBOSE_USAGE\s0 option has
  213. been enabled, more detailed usage information will also be available.
  214. .SH "COMMANDS"
  215. .IX Header "COMMANDS"
  216. Currently available applets include:
  217. .PP
  218. .Vb 10
  219. \& [, [[, acpid, add\-shell, addgroup, adduser, adjtimex, arch, arp,
  220. \& arping, ash, awk, base64, basename, beep, blkdiscard, blkid,
  221. \& blockdev, bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, chat,
  222. \& chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt,
  223. \& cksum, clear, cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw,
  224. \& cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod,
  225. \& devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname,
  226. \& dos2unix, dpkg, dpkg\-deb, du, dumpkmap, dumpleases, echo, ed, egrep,
  227. \& eject, env, envdir, envuidgid, ether\-wake, expand, expr, factor,
  228. \& fakeidentd, fallocate, false, fatattr, fbset, fbsplash, fdflush,
  229. \& fdformat, fdisk, fgconsole, fgrep, find, findfs, flock, fold, free,
  230. \& freeramdisk, fsck, fsck.minix, fsfreeze, fstrim, fsync, ftpd,
  231. \& ftpget, ftpput, fuser, getopt, getty, grep, groups, gunzip, gzip,
  232. \& halt, hd, hdparm, head, hexdump, hexedit, hostid, hostname, httpd,
  233. \& hush, hwclock, i2cdetect, i2cdump, i2cget, i2cset, id, ifconfig,
  234. \& ifdown, ifenslave, ifplugd, ifup, inetd, init, insmod, install,
  235. \& ionice, iostat, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, ipneigh,
  236. \& iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd,
  237. \& last, less, link, linux32, linux64, linuxrc, ln, loadfont, loadkmap,
  238. \& logger, login, logname, logread, losetup, lpd, lpq, lpr, ls, lsattr,
  239. \& lsmod, lsof, lspci, lsscsi, lsusb, lzcat, lzma, lzop, makedevs,
  240. \& makemime, man, md5sum, mdev, mesg, microcom, mkdir, mkdosfs, mke2fs,
  241. \& mkfifo, mkfs.ext2, mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap,
  242. \& mktemp, modinfo, modprobe, more, mount, mountpoint, mpstat, mt, mv,
  243. \& nameif, nanddump, nandwrite, nbd\-client, nc, netstat, nice, nl,
  244. \& nmeter, nohup, nproc, nsenter, nslookup, ntpd, nuke, od, openvt,
  245. \& partprobe, passwd, paste, patch, pgrep, pidof, ping, ping6,
  246. \& pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff,
  247. \& powertop, printenv, printf, ps, pscan, pstree, pwd, pwdx,
  248. \& raidautorun, rdate, rdev, readahead, readlink, readprofile,
  249. \& realpath, reboot, reformime, remove\-shell, renice, reset, resize,
  250. \& resume, rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake,
  251. \& run\-init, run\-parts, runlevel, runsv, runsvdir, rx, script,
  252. \& scriptreplay, sed, sendmail, seq, setarch, setconsole, setfattr,
  253. \& setfont, setkeycodes, setlogcons, setpriv, setserial, setsid,
  254. \& setuidgid, sh, sha1sum, sha256sum, sha3sum, sha512sum, showkey,
  255. \& shred, shuf, slattach, sleep, smemcap, softlimit, sort, split,
  256. \& ssl_client, start\-stop\-daemon, stat, strings, stty, su, sulogin,
  257. \& sum, sv, svc, svlogd, swapoff, swapon, switch_root, sync, sysctl,
  258. \& syslogd, tac, tail, tar, taskset, tcpsvd, tee, telnet, telnetd,
  259. \& test, tftp, tftpd, time, timeout, top, touch, tr, traceroute,
  260. \& traceroute6, true, truncate, tty, ttysize, tunctl, ubiattach,
  261. \& ubidetach, ubimkvol, ubirename, ubirmvol, ubirsvol, ubiupdatevol,
  262. \& udhcpc, udhcpd, udpsvd, uevent, umount, uname, unexpand, uniq,
  263. \& unix2dos, unlink, unlzma, unshare, unxz, unzip, uptime, users,
  264. \& usleep, uudecode, uuencode, vconfig, vi, vlock, volname, w, wall,
  265. \& watch, watchdog, wc, wget, which, who, whoami, whois, xargs, xxd,
  266. \& xz, xzcat, yes, zcat, zcip
  267. .Ve
  268. .SH "COMMAND DESCRIPTIONS"
  269. .IX Header "COMMAND DESCRIPTIONS"
  270. .IP "\fBacpid\fR" 4
  271. .IX Item "acpid"
  272. acpid [\-df] [\-c \s-1CONFDIR\s0] [\-l \s-1LOGFILE\s0] [\-a \s-1ACTIONFILE\s0] [\-M \s-1MAPFILE\s0] [\-e \s-1PROC_EVENT_FILE\s0] [\-p \s-1PIDFILE\s0]
  273. .Sp
  274. Listen to \s-1ACPI\s0 events and spawn specific helpers on event arrival
  275. .Sp
  276. .Vb 8
  277. \& \-d Log to stderr, not log file (implies \-f)
  278. \& \-f Run in foreground
  279. \& \-c DIR Config directory [/etc/acpi]
  280. \& \-e FILE /proc event file [/proc/acpi/event]
  281. \& \-l FILE Log file [/var/log/acpid.log]
  282. \& \-p FILE Pid file [/var/run/acpid.pid]
  283. \& \-a FILE Action file [/etc/acpid.conf]
  284. \& \-M FILE Map file [/etc/acpi.map]
  285. .Ve
  286. .Sp
  287. Accept and ignore compatibility options \-g \-m \-s \-S \-v
  288. .IP "\fBadd-shell\fR" 4
  289. .IX Item "add-shell"
  290. add-shell \s-1SHELL...\s0
  291. .Sp
  292. Add SHELLs to /etc/shells
  293. .IP "\fBaddgroup\fR" 4
  294. .IX Item "addgroup"
  295. addgroup [\-g \s-1GID\s0] [\-S] [\s-1USER\s0] \s-1GROUP\s0
  296. .Sp
  297. Add a group or add a user to a group
  298. .Sp
  299. .Vb 2
  300. \& \-g GID Group id
  301. \& \-S Create a system group
  302. .Ve
  303. .IP "\fBadduser\fR" 4
  304. .IX Item "adduser"
  305. adduser [\s-1OPTIONS\s0] \s-1USER\s0 [\s-1GROUP\s0]
  306. .Sp
  307. Create new user, or add \s-1USER\s0 to \s-1GROUP\s0
  308. .Sp
  309. .Vb 9
  310. \& \-h DIR Home directory
  311. \& \-g GECOS GECOS field
  312. \& \-s SHELL Login shell
  313. \& \-G GRP Group
  314. \& \-S Create a system user
  315. \& \-D Don\*(Aqt assign a password
  316. \& \-H Don\*(Aqt create home directory
  317. \& \-u UID User id
  318. \& \-k SKEL Skeleton directory (/etc/skel)
  319. .Ve
  320. .IP "\fBadjtimex\fR" 4
  321. .IX Item "adjtimex"
  322. adjtimex [\-q] [\-o \s-1OFF\s0] [\-f \s-1FREQ\s0] [\-p \s-1TCONST\s0] [\-t \s-1TICK\s0]
  323. .Sp
  324. Read or set kernel time variables. See \fIadjtimex\fR\|(2)
  325. .Sp
  326. .Vb 6
  327. \& \-q Quiet
  328. \& \-o OFF Time offset, microseconds
  329. \& \-f FREQ Frequency adjust, integer kernel units (65536 is 1ppm)
  330. \& \-t TICK Microseconds per tick, usually 10000
  331. \& (positive \-t or \-f values make clock run faster)
  332. \& \-p TCONST
  333. .Ve
  334. .IP "\fBarch\fR" 4
  335. .IX Item "arch"
  336. arch
  337. .Sp
  338. Print system architecture
  339. .IP "\fBarp\fR" 4
  340. .IX Item "arp"
  341. arp
  342. [\-vn] [\-H \s-1HWTYPE\s0] [\-i \s-1IF\s0] \-a [\s-1HOSTNAME\s0]
  343. [\-v] [\-i \s-1IF\s0] \-d \s-1HOSTNAME\s0 [pub]
  344. [\-v] [\-H \s-1HWTYPE\s0] [\-i \s-1IF\s0] \-s \s-1HOSTNAME HWADDR\s0 [temp]
  345. [\-v] [\-H \s-1HWTYPE\s0] [\-i \s-1IF\s0] \-s \s-1HOSTNAME HWADDR\s0 [netmask \s-1MASK\s0] pub
  346. [\-v] [\-H \s-1HWTYPE\s0] [\-i \s-1IF\s0] \-Ds \s-1HOSTNAME IFACE\s0 [netmask \s-1MASK\s0] pub
  347. .Sp
  348. Manipulate \s-1ARP\s0 cache
  349. .Sp
  350. .Vb 9
  351. \& \-a Display (all) hosts
  352. \& \-d Delete ARP entry
  353. \& \-s Set new entry
  354. \& \-v Verbose
  355. \& \-n Don\*(Aqt resolve names
  356. \& \-i IF Network interface
  357. \& \-D Read HWADDR from IFACE
  358. \& \-A,\-p AF Protocol family
  359. \& \-H HWTYPE Hardware address type
  360. .Ve
  361. .IP "\fBarping\fR" 4
  362. .IX Item "arping"
  363. arping [\-fqbDUA] [\-c \s-1CNT\s0] [\-w \s-1TIMEOUT\s0] [\-I \s-1IFACE\s0] [\-s \s-1SRC_IP\s0] \s-1DST_IP\s0
  364. .Sp
  365. Send \s-1ARP\s0 requests/replies
  366. .Sp
  367. .Vb 11
  368. \& \-f Quit on first ARP reply
  369. \& \-q Quiet
  370. \& \-b Keep broadcasting, don\*(Aqt go unicast
  371. \& \-D Exit with 1 if DST_IP replies
  372. \& \-U Unsolicited ARP mode, update your neighbors
  373. \& \-A ARP answer mode, update your neighbors
  374. \& \-c N Stop after sending N ARP requests
  375. \& \-w TIMEOUT Seconds to wait for ARP reply
  376. \& \-I IFACE Interface to use (default eth0)
  377. \& \-s SRC_IP Sender IP address
  378. \& DST_IP Target IP address
  379. .Ve
  380. .IP "\fBash\fR" 4
  381. .IX Item "ash"
  382. ash [\-/+OPTIONS] [\-/+o \s-1OPT\s0]... [\-c '\s-1SCRIPT\s0' [\s-1ARG0\s0 [\s-1ARGS\s0]] / \s-1FILE\s0 [\s-1ARGS\s0]]
  383. .Sp
  384. Unix shell interpreter
  385. .IP "\fBawk\fR" 4
  386. .IX Item "awk"
  387. awk [\s-1OPTIONS\s0] [\s-1AWK_PROGRAM\s0] [\s-1FILE\s0]...
  388. .Sp
  389. .Vb 4
  390. \& \-v VAR=VAL Set variable
  391. \& \-F SEP Use SEP as field separator
  392. \& \-f FILE Read program from FILE
  393. \& \-e AWK_PROGRAM
  394. .Ve
  395. .IP "\fBbase64\fR" 4
  396. .IX Item "base64"
  397. base64 [\-d] [\s-1FILE\s0]
  398. .Sp
  399. Base64 encode or decode \s-1FILE\s0 to standard output
  400. \-d Decode data
  401. .IP "\fBbasename\fR" 4
  402. .IX Item "basename"
  403. basename \s-1FILE\s0 [\s-1SUFFIX\s0]
  404. .Sp
  405. Strip directory path and .SUFFIX from \s-1FILE\s0
  406. .IP "\fBbeep\fR" 4
  407. .IX Item "beep"
  408. beep \-f \s-1FREQ\s0 \-l \s-1LEN\s0 \-d \s-1DELAY\s0 \-r \s-1COUNT\s0 \-n
  409. .Sp
  410. .Vb 5
  411. \& \-f Frequency in Hz
  412. \& \-l Length in ms
  413. \& \-d Delay in ms
  414. \& \-r Repetitions
  415. \& \-n Start new tone
  416. .Ve
  417. .IP "\fBblkdiscard\fR" 4
  418. .IX Item "blkdiscard"
  419. blkdiscard [\-o \s-1OFS\s0] [\-l \s-1LEN\s0] [\-s] \s-1DEVICE\s0
  420. .Sp
  421. Discard sectors on \s-1DEVICE\s0
  422. .Sp
  423. .Vb 3
  424. \& \-o OFS Byte offset into device
  425. \& \-l LEN Number of bytes to discard
  426. \& \-s Perform a secure discard
  427. .Ve
  428. .IP "\fBblkid\fR" 4
  429. .IX Item "blkid"
  430. blkid [\s-1BLOCKDEV\s0]...
  431. .Sp
  432. Print UUIDs of all filesystems
  433. .IP "\fBblockdev\fR" 4
  434. .IX Item "blockdev"
  435. blockdev \s-1OPTION BLOCKDEV\s0
  436. .Sp
  437. .Vb 10
  438. \& \-\-setro Set ro
  439. \& \-\-setrw Set rw
  440. \& \-\-getro Get ro
  441. \& \-\-getss Get sector size
  442. \& \-\-getbsz Get block size
  443. \& \-\-setbsz BYTES Set block size
  444. \& \-\-getsz Get device size in 512\-byte sectors
  445. \& \-\-getsize64 Get device size in bytes
  446. \& \-\-flushbufs Flush buffers
  447. \& \-\-rereadpt Reread partition table
  448. .Ve
  449. .IP "\fBbootchartd\fR" 4
  450. .IX Item "bootchartd"
  451. bootchartd start [\s-1PROG ARGS\s0]|stop|init
  452. .Sp
  453. Create /var/log/bootchart.tgz with boot chart data
  454. .Sp
  455. start: start background logging; with \s-1PROG,\s0 run \s-1PROG,\s0 then kill logging with \s-1USR1\s0
  456. stop: send \s-1USR1\s0 to all bootchartd processes
  457. init: start background logging; stop when getty/xdm is seen (for init scripts)
  458. Under \s-1PID 1:\s0 as init, then exec \f(CW$bootchart_init\fR, /init, /sbin/init
  459. .IP "\fBbrctl\fR" 4
  460. .IX Item "brctl"
  461. brctl \s-1COMMAND\s0 [\s-1BRIDGE\s0 [\s-1INTERFACE\s0]]
  462. .Sp
  463. Manage ethernet bridges
  464. .Sp
  465. Commands:
  466. .Sp
  467. .Vb 10
  468. \& show Show a list of bridges
  469. \& addbr BRIDGE Create BRIDGE
  470. \& delbr BRIDGE Delete BRIDGE
  471. \& addif BRIDGE IFACE Add IFACE to BRIDGE
  472. \& delif BRIDGE IFACE Delete IFACE from BRIDGE
  473. \& setageing BRIDGE TIME Set ageing time
  474. \& setfd BRIDGE TIME Set bridge forward delay
  475. \& sethello BRIDGE TIME Set hello time
  476. \& setmaxage BRIDGE TIME Set max message age
  477. \& setpathcost BRIDGE COST Set path cost
  478. \& setportprio BRIDGE PRIO Set port priority
  479. \& setbridgeprio BRIDGE PRIO Set bridge priority
  480. \& stp BRIDGE [1/yes/on|0/no/off] STP on/off
  481. .Ve
  482. .IP "\fBbunzip2\fR" 4
  483. .IX Item "bunzip2"
  484. bunzip2 [\-cfk] [\s-1FILE\s0]...
  485. .Sp
  486. Decompress FILEs (or stdin)
  487. .Sp
  488. .Vb 3
  489. \& \-c Write to stdout
  490. \& \-f Force
  491. \& \-k Keep input files
  492. .Ve
  493. .IP "\fBbzcat\fR" 4
  494. .IX Item "bzcat"
  495. bzcat [\s-1FILE\s0]...
  496. .Sp
  497. Decompress to stdout
  498. .IP "\fBbzip2\fR" 4
  499. .IX Item "bzip2"
  500. bzip2 [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  501. .Sp
  502. Compress FILEs (or stdin) with bzip2 algorithm
  503. .Sp
  504. .Vb 6
  505. \& \-1..9 Compression level
  506. \& \-d Decompress
  507. \& \-t Test file integrity
  508. \& \-c Write to stdout
  509. \& \-f Force
  510. \& \-k Keep input files
  511. .Ve
  512. .IP "\fBcal\fR" 4
  513. .IX Item "cal"
  514. cal [\-jy] [[\s-1MONTH\s0] \s-1YEAR\s0]
  515. .Sp
  516. Display a calendar
  517. .Sp
  518. .Vb 2
  519. \& \-j Use julian dates
  520. \& \-y Display the entire year
  521. .Ve
  522. .IP "\fBcat\fR" 4
  523. .IX Item "cat"
  524. cat [\-nbvteA] [\s-1FILE\s0]...
  525. .Sp
  526. Print FILEs to stdout
  527. .Sp
  528. .Vb 6
  529. \& \-n Number output lines
  530. \& \-b Number nonempty lines
  531. \& \-v Show nonprinting characters as ^x or M\-x
  532. \& \-t ...and tabs as ^I
  533. \& \-e ...and end lines with $
  534. \& \-A Same as \-vte
  535. .Ve
  536. .IP "\fBchat\fR" 4
  537. .IX Item "chat"
  538. chat \s-1EXPECT\s0 [\s-1SEND\s0 [\s-1EXPECT\s0 [\s-1SEND...\s0]]]
  539. .Sp
  540. Useful for interacting with a modem connected to stdin/stdout.
  541. A script consists of \*(L"expect-send\*(R" argument pairs.
  542. Example:
  543. .Sp
  544. chat '' \s-1ATZ OK ATD123456 CONNECT\s0 '' ogin: pppuser word: ppppass '~'
  545. .IP "\fBchattr\fR" 4
  546. .IX Item "chattr"
  547. chattr [\-R] [\-v \s-1VERSION\s0] [\-+=AacDdijsStTu] \s-1FILE...\s0
  548. .Sp
  549. Change ext2 file attributes
  550. .Sp
  551. .Vb 3
  552. \& \-R Recurse
  553. \& \-v VER Set version/generation number
  554. \&Modifiers:
  555. \&
  556. \& \-,+,= Remove/add/set attributes
  557. \&Attributes:
  558. \&
  559. \& A Don\*(Aqt track atime
  560. \& a Append mode only
  561. \& c Enable compress
  562. \& D Write dir contents synchronously
  563. \& d Don\*(Aqt backup with dump
  564. \& i Cannot be modified (immutable)
  565. \& j Write all data to journal first
  566. \& s Zero disk storage when deleted
  567. \& S Write synchronously
  568. \& t Disable tail\-merging of partial blocks with other files
  569. \& u Allow file to be undeleted
  570. .Ve
  571. .IP "\fBchgrp\fR" 4
  572. .IX Item "chgrp"
  573. chgrp [\-RhLHPcvf]... \s-1GROUP FILE...\s0
  574. .Sp
  575. Change the group membership of each \s-1FILE\s0 to \s-1GROUP\s0
  576. .Sp
  577. .Vb 8
  578. \& \-R Recurse
  579. \& \-h Affect symlinks instead of symlink targets
  580. \& \-L Traverse all symlinks to directories
  581. \& \-H Traverse symlinks on command line only
  582. \& \-P Don\*(Aqt traverse symlinks (default)
  583. \& \-c List changed files
  584. \& \-v Verbose
  585. \& \-f Hide errors
  586. .Ve
  587. .IP "\fBchmod\fR" 4
  588. .IX Item "chmod"
  589. chmod [\-Rcvf] MODE[,MODE]... \s-1FILE...\s0
  590. .Sp
  591. Each \s-1MODE\s0 is one or more of the letters ugoa, one of the
  592. symbols +\-= and one or more of the letters rwxst
  593. .Sp
  594. .Vb 4
  595. \& \-R Recurse
  596. \& \-c List changed files
  597. \& \-v List all files
  598. \& \-f Hide errors
  599. .Ve
  600. .IP "\fBchown\fR" 4
  601. .IX Item "chown"
  602. chown [\-RhLHPcvf]... USER[:[\s-1GRP\s0]] \s-1FILE...\s0
  603. .Sp
  604. Change the owner and/or group of each \s-1FILE\s0 to \s-1USER\s0 and/or \s-1GRP\s0
  605. .Sp
  606. .Vb 8
  607. \& \-R Recurse
  608. \& \-h Affect symlinks instead of symlink targets
  609. \& \-L Traverse all symlinks to directories
  610. \& \-H Traverse symlinks on command line only
  611. \& \-P Don\*(Aqt traverse symlinks (default)
  612. \& \-c List changed files
  613. \& \-v List all files
  614. \& \-f Hide errors
  615. .Ve
  616. .IP "\fBchpasswd\fR" 4
  617. .IX Item "chpasswd"
  618. chpasswd [\-\-md5|\-\-encrypted|\-\-crypt\-method]
  619. .Sp
  620. Read user:password from stdin and update /etc/passwd
  621. .Sp
  622. .Vb 3
  623. \& \-e,\-\-encrypted Supplied passwords are in encrypted form
  624. \& \-m,\-\-md5 Eencrypt using md5, not des
  625. \& \-c,\-\-crypt\-method ALG des,md5,sha256/512 (default des)
  626. .Ve
  627. .IP "\fBchpst\fR" 4
  628. .IX Item "chpst"
  629. chpst [\-vP012] [\-u USER[:GRP]] [\-U USER[:GRP]] [\-e \s-1DIR\s0]
  630. [\-/ \s-1DIR\s0] [\-n \s-1NICE\s0] [\-m \s-1BYTES\s0] [\-d \s-1BYTES\s0] [\-o N]
  631. [\-p N] [\-f \s-1BYTES\s0] [\-c \s-1BYTES\s0] \s-1PROG ARGS\s0
  632. .Sp
  633. Change the process state, run \s-1PROG\s0
  634. .Sp
  635. .Vb 10
  636. \& \-u USER[:GRP] Set uid and gid
  637. \& \-U USER[:GRP] Set $UID and $GID in environment
  638. \& \-e DIR Set environment variables as specified by files
  639. \& in DIR: file=1st_line_of_file
  640. \& \-/ DIR Chroot to DIR
  641. \& \-n NICE Add NICE to nice value
  642. \& \-m BYTES Same as \-d BYTES \-s BYTES \-l BYTES
  643. \& \-d BYTES Limit data segment
  644. \& \-o N Limit number of open files per process
  645. \& \-p N Limit number of processes per uid
  646. \& \-f BYTES Limit output file sizes
  647. \& \-c BYTES Limit core file size
  648. \& \-v Verbose
  649. \& \-P Create new process group
  650. \& \-0 Close stdin
  651. \& \-1 Close stdout
  652. \& \-2 Close stderr
  653. .Ve
  654. .IP "\fBchroot\fR" 4
  655. .IX Item "chroot"
  656. chroot \s-1NEWROOT\s0 [\s-1PROG ARGS\s0]
  657. .Sp
  658. Run \s-1PROG\s0 with root directory set to \s-1NEWROOT\s0
  659. .IP "\fBchrt\fR" 4
  660. .IX Item "chrt"
  661. chrt [\-prfom] [\s-1PRIO\s0] [\s-1PID\s0 | \s-1PROG ARGS\s0]
  662. .Sp
  663. Change scheduling priority and class for a process
  664. .Sp
  665. .Vb 5
  666. \& \-p Operate on PID
  667. \& \-r Set SCHED_RR class
  668. \& \-f Set SCHED_FIFO class
  669. \& \-o Set SCHED_OTHER class
  670. \& \-m Show min/max priorities
  671. .Ve
  672. .IP "\fBchvt\fR" 4
  673. .IX Item "chvt"
  674. chvt N
  675. .Sp
  676. Change the foreground virtual terminal to /dev/ttyN
  677. .IP "\fBcksum\fR" 4
  678. .IX Item "cksum"
  679. cksum \s-1FILE...\s0
  680. .Sp
  681. Calculate the \s-1CRC32\s0 checksums of FILEs
  682. .IP "\fBclear\fR" 4
  683. .IX Item "clear"
  684. clear
  685. .Sp
  686. Clear screen
  687. .IP "\fBcmp\fR" 4
  688. .IX Item "cmp"
  689. cmp [\-l] [\-s] \s-1FILE1\s0 [\s-1FILE2\s0 [\s-1SKIP1\s0 [\s-1SKIP2\s0]]]
  690. .Sp
  691. Compare \s-1FILE1\s0 with \s-1FILE2\s0 (or stdin)
  692. .Sp
  693. .Vb 3
  694. \& \-l Write the byte numbers (decimal) and values (octal)
  695. \& for all differing bytes
  696. \& \-s Quiet
  697. .Ve
  698. .IP "\fBcomm\fR" 4
  699. .IX Item "comm"
  700. comm [\-123] \s-1FILE1 FILE2\s0
  701. .Sp
  702. Compare \s-1FILE1\s0 with \s-1FILE2\s0
  703. .Sp
  704. .Vb 3
  705. \& \-1 Suppress lines unique to FILE1
  706. \& \-2 Suppress lines unique to FILE2
  707. \& \-3 Suppress lines common to both files
  708. .Ve
  709. .IP "\fBconspy\fR" 4
  710. .IX Item "conspy"
  711. conspy [\-vcsndfFQ] [\-x \s-1COL\s0] [\-y \s-1LINE\s0] [\s-1CONSOLE_NO\s0]
  712. .Sp
  713. A text-mode \s-1VNC\s0 like program for Linux virtual consoles.
  714. To exit, quickly press \s-1ESC 3\s0 times.
  715. .Sp
  716. .Vb 10
  717. \& \-v Don\*(Aqt send keystrokes to the console
  718. \& \-c Create missing /dev/{tty,vcsa}N
  719. \& \-s Open a SHELL session
  720. \& \-n Black & white
  721. \& \-d Dump console to stdout
  722. \& \-f Follow cursor
  723. \& \-F Assume console is on a framebuffer device
  724. \& \-Q Disable exit on ESC\-ESC\-ESC
  725. \& \-x COL Starting column
  726. \& \-y LINE Starting line
  727. .Ve
  728. .IP "\fBcp\fR" 4
  729. .IX Item "cp"
  730. cp [\s-1OPTIONS\s0] \s-1SOURCE... DEST\s0
  731. .Sp
  732. Copy \s-1SOURCE\s0(s) to \s-1DEST\s0
  733. .Sp
  734. .Vb 11
  735. \& \-a Same as \-dpR
  736. \& \-R,\-r Recurse
  737. \& \-d,\-P Preserve symlinks (default if \-R)
  738. \& \-L Follow all symlinks
  739. \& \-H Follow symlinks on command line
  740. \& \-p Preserve file attributes if possible
  741. \& \-f Overwrite
  742. \& \-i Prompt before overwrite
  743. \& \-l,\-s Create (sym)links
  744. \& \-T Treat DEST as a normal file
  745. \& \-u Copy only newer files
  746. .Ve
  747. .IP "\fBcpio\fR" 4
  748. .IX Item "cpio"
  749. cpio [\-dmvu] [\-F \s-1FILE\s0] [\-R USER[:GRP]] [\-H newc] [\-tio] [\-p \s-1DIR\s0] [\s-1EXTR_FILE\s0]...
  750. .Sp
  751. Extract (\-i) or list (\-t) files from a cpio archive, or
  752. take file list from stdin and create an archive (\-o) or copy files (\-p)
  753. .Sp
  754. Main operation mode:
  755. .Sp
  756. .Vb 5
  757. \& \-t List
  758. \& \-i Extract EXTR_FILEs (or all)
  759. \& \-o Create (requires \-H newc)
  760. \& \-p DIR Copy files to DIR
  761. \&Options:
  762. \&
  763. \& \-d Make leading directories
  764. \& \-m Preserve mtime
  765. \& \-v Verbose
  766. \& \-u Overwrite
  767. \& \-F FILE Input (\-t,\-i,\-p) or output (\-o) file
  768. \& \-R USER[:GRP] Set owner of created files
  769. \& \-H newc Archive format
  770. .Ve
  771. .IP "\fBcrond\fR" 4
  772. .IX Item "crond"
  773. crond \-fbS \-l N \-d N \-L \s-1LOGFILE\s0 \-c \s-1DIR\s0
  774. .Sp
  775. .Vb 7
  776. \& \-f Foreground
  777. \& \-b Background (default)
  778. \& \-S Log to syslog (default)
  779. \& \-l N Set log level. Most verbose 0, default 8
  780. \& \-d N Set log level, log to stderr
  781. \& \-L FILE Log to FILE
  782. \& \-c DIR Cron dir. Default:/var/spool/cron/crontabs
  783. .Ve
  784. .IP "\fBcrontab\fR" 4
  785. .IX Item "crontab"
  786. crontab [\-c \s-1DIR\s0] [\-u \s-1USER\s0] [\-ler]|[\s-1FILE\s0]
  787. .Sp
  788. .Vb 6
  789. \& \-c Crontab directory
  790. \& \-u User
  791. \& \-l List crontab
  792. \& \-e Edit crontab
  793. \& \-r Delete crontab
  794. \& FILE Replace crontab by FILE (\*(Aq\-\*(Aq: stdin)
  795. .Ve
  796. .IP "\fBcryptpw\fR" 4
  797. .IX Item "cryptpw"
  798. cryptpw [\s-1OPTIONS\s0] [\s-1PASSWORD\s0] [\s-1SALT\s0]
  799. .Sp
  800. Print \fIcrypt\fR\|(3) hashed \s-1PASSWORD\s0
  801. .Sp
  802. .Vb 3
  803. \& \-P,\-\-password\-fd N Read password from fd N
  804. \& \-m,\-\-method TYPE des,md5,sha256/512 (default des)
  805. \& \-S,\-\-salt SALT
  806. .Ve
  807. .IP "\fBcttyhack\fR" 4
  808. .IX Item "cttyhack"
  809. cttyhack [\s-1PROG ARGS\s0]
  810. .Sp
  811. Give \s-1PROG\s0 a controlling tty if possible.
  812. Example for /etc/inittab (for busybox init):
  813. ::respawn:/bin/cttyhack /bin/sh
  814. Giving controlling tty to shell running with \s-1PID 1:\s0
  815. $ exec cttyhack sh
  816. Starting interactive shell from boot shell script:
  817. .Sp
  818. .Vb 1
  819. \& setsid cttyhack sh
  820. .Ve
  821. .IP "\fBcut\fR" 4
  822. .IX Item "cut"
  823. cut [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  824. .Sp
  825. Print selected fields from each input \s-1FILE\s0 to stdout
  826. .Sp
  827. .Vb 6
  828. \& \-b LIST Output only bytes from LIST
  829. \& \-c LIST Output only characters from LIST
  830. \& \-d CHAR Use CHAR instead of tab as the field delimiter
  831. \& \-s Output only the lines containing delimiter
  832. \& \-f N Print only these fields
  833. \& \-n Ignored
  834. .Ve
  835. .IP "\fBdate\fR" 4
  836. .IX Item "date"
  837. date [\s-1OPTIONS\s0] [+FMT] [\s-1TIME\s0]
  838. .Sp
  839. Display time (using +FMT), or set time
  840. .Sp
  841. .Vb 10
  842. \& [\-s,\-\-set] TIME Set time to TIME
  843. \& \-u,\-\-utc Work in UTC (don\*(Aqt convert to local time)
  844. \& \-R,\-\-rfc\-2822 Output RFC\-2822 compliant date string
  845. \& \-I[SPEC] Output ISO\-8601 compliant date string
  846. \& SPEC=\*(Aqdate\*(Aq (default) for date only,
  847. \& \*(Aqhours\*(Aq, \*(Aqminutes\*(Aq, or \*(Aqseconds\*(Aq for date and
  848. \& time to the indicated precision
  849. \& \-r,\-\-reference FILE Display last modification time of FILE
  850. \& \-d,\-\-date TIME Display TIME, not \*(Aqnow\*(Aq
  851. \& \-D FMT Use FMT for \-d TIME conversion
  852. .Ve
  853. .Sp
  854. Recognized \s-1TIME\s0 formats:
  855. .Sp
  856. .Vb 5
  857. \& hh:mm[:ss]
  858. \& [YYYY.]MM.DD\-hh:mm[:ss]
  859. \& YYYY\-MM\-DD hh:mm[:ss]
  860. \& [[[[[YY]YY]MM]DD]hh]mm[.ss]
  861. \& \*(Aqdate TIME\*(Aq form accepts MMDDhhmm[[YY]YY][.ss] instead
  862. .Ve
  863. .IP "\fBdc\fR" 4
  864. .IX Item "dc"
  865. dc \s-1EXPRESSION...\s0
  866. .Sp
  867. Tiny \s-1RPN\s0 calculator. Operations:
  868. +, add, \-, sub, *, mul, /, div, %, mod, **, exp, and, or, not, xor,
  869. p \- print top of the stack (without popping),
  870. f \- print entire stack,
  871. o \- pop the value and set output radix (must be 10, 16, 8 or 2).
  872. Examples: 'dc 2 2 add p' \-> 4, 'dc 8 8 mul 2 2 + / p' \-> 16
  873. .IP "\fBdd\fR" 4
  874. .IX Item "dd"
  875. dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N]
  876. [seek=N] [conv=notrunc|noerror|sync|fsync] [iflag=skip_bytes]
  877. .Sp
  878. Copy a file with converting and formatting
  879. .Sp
  880. .Vb 10
  881. \& if=FILE Read from FILE instead of stdin
  882. \& of=FILE Write to FILE instead of stdout
  883. \& bs=N Read and write N bytes at a time
  884. \& ibs=N Read N bytes at a time
  885. \& obs=N Write N bytes at a time
  886. \& count=N Copy only N input blocks
  887. \& skip=N Skip N input blocks
  888. \& seek=N Skip N output blocks
  889. \& conv=notrunc Don\*(Aqt truncate output file
  890. \& conv=noerror Continue after read errors
  891. \& conv=sync Pad blocks with zeros
  892. \& conv=fsync Physically write data out before finishing
  893. \& conv=swab Swap every pair of bytes
  894. \& iflag=skip_bytes skip=N is in bytes
  895. \& status=noxfer Suppress rate output
  896. \& status=none Suppress all output
  897. .Ve
  898. .Sp
  899. N may be suffixed by c (1), w (2), b (512), kB (1000), k (1024), \s-1MB, M, GB, G\s0
  900. .IP "\fBdeallocvt\fR" 4
  901. .IX Item "deallocvt"
  902. deallocvt [N]
  903. .Sp
  904. Deallocate unused virtual terminal /dev/ttyN
  905. .IP "\fBdelgroup\fR" 4
  906. .IX Item "delgroup"
  907. delgroup [\s-1USER\s0] \s-1GROUP\s0
  908. .Sp
  909. Delete group \s-1GROUP\s0 from the system or user \s-1USER\s0 from group \s-1GROUP\s0
  910. .IP "\fBdeluser\fR" 4
  911. .IX Item "deluser"
  912. deluser [\-\-remove\-home] \s-1USER\s0
  913. .Sp
  914. Delete \s-1USER\s0 from the system
  915. .IP "\fBdepmod\fR" 4
  916. .IX Item "depmod"
  917. depmod [\-n]
  918. .Sp
  919. Generate modules.dep.bb
  920. .Sp
  921. .Vb 1
  922. \& \-n Dry run: print file to stdout
  923. .Ve
  924. .IP "\fBdevmem\fR" 4
  925. .IX Item "devmem"
  926. devmem \s-1ADDRESS\s0 [\s-1WIDTH\s0 [\s-1VALUE\s0]]
  927. .Sp
  928. Read/write from physical address
  929. .Sp
  930. .Vb 3
  931. \& ADDRESS Address to act upon
  932. \& WIDTH Width (8/16/...)
  933. \& VALUE Data to be written
  934. .Ve
  935. .IP "\fBdf\fR" 4
  936. .IX Item "df"
  937. df [\-PkmhTai] [\-B \s-1SIZE\s0] [\s-1FILESYSTEM\s0]...
  938. .Sp
  939. Print filesystem usage statistics
  940. .Sp
  941. .Vb 8
  942. \& \-P POSIX output format
  943. \& \-k 1024\-byte blocks (default)
  944. \& \-m 1M\-byte blocks
  945. \& \-h Human readable (e.g. 1K 243M 2G)
  946. \& \-T Print filesystem type
  947. \& \-a Show all filesystems
  948. \& \-i Inodes
  949. \& \-B SIZE Blocksize
  950. .Ve
  951. .IP "\fBdhcprelay\fR" 4
  952. .IX Item "dhcprelay"
  953. dhcprelay CLIENT_IFACE[,CLIENT_IFACE2]... \s-1SERVER_IFACE\s0 [\s-1SERVER_IP\s0]
  954. .Sp
  955. Relay \s-1DHCP\s0 requests between clients and server
  956. .IP "\fBdiff\fR" 4
  957. .IX Item "diff"
  958. diff [\-abBdiNqrTstw] [\-L \s-1LABEL\s0] [\-S \s-1FILE\s0] [\-U \s-1LINES\s0] \s-1FILE1 FILE2\s0
  959. .Sp
  960. Compare files line by line and output the differences between them.
  961. This implementation supports unified diffs only.
  962. .Sp
  963. .Vb 10
  964. \& \-a Treat all files as text
  965. \& \-b Ignore changes in the amount of whitespace
  966. \& \-B Ignore changes whose lines are all blank
  967. \& \-d Try hard to find a smaller set of changes
  968. \& \-i Ignore case differences
  969. \& \-L Use LABEL instead of the filename in the unified header
  970. \& \-N Treat absent files as empty
  971. \& \-q Output only whether files differ
  972. \& \-r Recurse
  973. \& \-S Start with FILE when comparing directories
  974. \& \-T Make tabs line up by prefixing a tab when necessary
  975. \& \-s Report when two files are the same
  976. \& \-t Expand tabs to spaces in output
  977. \& \-U Output LINES lines of context
  978. \& \-w Ignore all whitespace
  979. .Ve
  980. .IP "\fBdirname\fR" 4
  981. .IX Item "dirname"
  982. dirname \s-1FILENAME\s0
  983. .Sp
  984. Strip non-directory suffix from \s-1FILENAME\s0
  985. .IP "\fBdmesg\fR" 4
  986. .IX Item "dmesg"
  987. dmesg [\-c] [\-n \s-1LEVEL\s0] [\-s \s-1SIZE\s0]
  988. .Sp
  989. Print or control the kernel ring buffer
  990. .Sp
  991. .Vb 4
  992. \& \-c Clear ring buffer after printing
  993. \& \-n LEVEL Set console logging level
  994. \& \-s SIZE Buffer size
  995. \& \-r Print raw message buffer
  996. .Ve
  997. .IP "\fBdnsd\fR" 4
  998. .IX Item "dnsd"
  999. dnsd [\-dvs] [\-c \s-1CONFFILE\s0] [\-t \s-1TTL_SEC\s0] [\-p \s-1PORT\s0] [\-i \s-1ADDR\s0]
  1000. .Sp
  1001. Small static \s-1DNS\s0 server daemon
  1002. .Sp
  1003. .Vb 10
  1004. \& \-c FILE Config file
  1005. \& \-t SEC TTL
  1006. \& \-p PORT Listen on PORT
  1007. \& \-i ADDR Listen on ADDR
  1008. \& \-d Daemonize
  1009. \& \-v Verbose
  1010. \& \-s Send successful replies only. Use this if you want
  1011. \& to use /etc/resolv.conf with two nameserver lines:
  1012. \& nameserver DNSD_SERVER
  1013. \& nameserver NORMAL_DNS_SERVER
  1014. .Ve
  1015. .IP "\fBdos2unix\fR" 4
  1016. .IX Item "dos2unix"
  1017. dos2unix [\-ud] [\s-1FILE\s0]
  1018. .Sp
  1019. Convert \s-1FILE\s0 in-place from \s-1DOS\s0 to Unix format.
  1020. When no file is given, use stdin/stdout.
  1021. .Sp
  1022. .Vb 2
  1023. \& \-u dos2unix
  1024. \& \-d unix2dos
  1025. .Ve
  1026. .IP "\fBdpkg\fR" 4
  1027. .IX Item "dpkg"
  1028. dpkg [\-ilCPru] [\-F \s-1OPT\s0] \s-1PACKAGE\s0
  1029. .Sp
  1030. Install, remove and manage Debian packages
  1031. .Sp
  1032. .Vb 9
  1033. \& \-i,\-\-install Install the package
  1034. \& \-l,\-\-list List of installed packages
  1035. \& \-\-configure Configure an unpackaged package
  1036. \& \-P,\-\-purge Purge all files of a package
  1037. \& \-r,\-\-remove Remove all but the configuration files for a package
  1038. \& \-\-unpack Unpack a package, but don\*(Aqt configure it
  1039. \& \-\-force\-depends Ignore dependency problems
  1040. \& \-\-force\-confnew Overwrite existing config files when installing
  1041. \& \-\-force\-confold Keep old config files when installing
  1042. .Ve
  1043. .IP "\fBdpkg-deb\fR" 4
  1044. .IX Item "dpkg-deb"
  1045. dpkg-deb [\-cefxX] \s-1FILE\s0 [\s-1DIR\s0]
  1046. .Sp
  1047. Perform actions on Debian packages (.deb)
  1048. .Sp
  1049. .Vb 5
  1050. \& \-c List files
  1051. \& \-f Print control fields
  1052. \& \-e Extract control files to DIR (default: ./DEBIAN)
  1053. \& \-x Extract files to DIR (no default)
  1054. \& \-X Verbose \-x
  1055. .Ve
  1056. .IP "\fBdu\fR" 4
  1057. .IX Item "du"
  1058. du [\-aHLdclsxhmk] [\s-1FILE\s0]...
  1059. .Sp
  1060. Summarize disk space used for each \s-1FILE\s0 and/or directory
  1061. .Sp
  1062. .Vb 11
  1063. \& \-a Show file sizes too
  1064. \& \-L Follow all symlinks
  1065. \& \-H Follow symlinks on command line
  1066. \& \-d N Limit output to directories (and files with \-a) of depth < N
  1067. \& \-c Show grand total
  1068. \& \-l Count sizes many times if hard linked
  1069. \& \-s Display only a total for each argument
  1070. \& \-x Skip directories on different filesystems
  1071. \& \-h Sizes in human readable format (e.g., 1K 243M 2G)
  1072. \& \-m Sizes in megabytes
  1073. \& \-k Sizes in kilobytes (default)
  1074. .Ve
  1075. .IP "\fBdumpkmap\fR" 4
  1076. .IX Item "dumpkmap"
  1077. dumpkmap > keymap
  1078. .Sp
  1079. Print a binary keyboard translation table to stdout
  1080. .IP "\fBdumpleases\fR" 4
  1081. .IX Item "dumpleases"
  1082. dumpleases [\-r|\-a] [\-d] [\-f \s-1LEASEFILE\s0]
  1083. .Sp
  1084. Display \s-1DHCP\s0 leases granted by udhcpd
  1085. .Sp
  1086. .Vb 4
  1087. \& \-f,\-\-file FILE Lease file
  1088. \& \-r,\-\-remaining Show remaining time
  1089. \& \-a,\-\-absolute Show expiration time
  1090. \& \-d,\-\-decimal Show time in seconds
  1091. .Ve
  1092. .IP "\fBecho\fR" 4
  1093. .IX Item "echo"
  1094. echo [\-neE] [\s-1ARG\s0]...
  1095. .Sp
  1096. Print the specified ARGs to stdout
  1097. .Sp
  1098. .Vb 3
  1099. \& \-n Suppress trailing newline
  1100. \& \-e Interpret backslash escapes (i.e., \et=tab)
  1101. \& \-E Don\*(Aqt interpret backslash escapes (default)
  1102. .Ve
  1103. .IP "\fBed\fR" 4
  1104. .IX Item "ed"
  1105. ed [\s-1FILE\s0]
  1106. .IP "\fBeject\fR" 4
  1107. .IX Item "eject"
  1108. eject [\-t] [\-T] [\s-1DEVICE\s0]
  1109. .Sp
  1110. Eject \s-1DEVICE\s0 or default /dev/cdrom
  1111. .Sp
  1112. .Vb 3
  1113. \& \-s SCSI device
  1114. \& \-t Close tray
  1115. \& \-T Open/close tray (toggle)
  1116. .Ve
  1117. .IP "\fBenv\fR" 4
  1118. .IX Item "env"
  1119. env [\-iu] [\-] [name=value]... [\s-1PROG ARGS\s0]
  1120. .Sp
  1121. Print the current environment or run \s-1PROG\s0 after setting up
  1122. the specified environment
  1123. .Sp
  1124. .Vb 2
  1125. \& \-, \-i Start with an empty environment
  1126. \& \-u Remove variable from the environment
  1127. .Ve
  1128. .IP "\fBenvdir\fR" 4
  1129. .IX Item "envdir"
  1130. envdir \s-1DIR PROG ARGS\s0
  1131. .Sp
  1132. Set various environment variables as specified by files
  1133. in the directory \s-1DIR,\s0 run \s-1PROG\s0
  1134. .IP "\fBenvuidgid\fR" 4
  1135. .IX Item "envuidgid"
  1136. envuidgid \s-1USER PROG ARGS\s0
  1137. .Sp
  1138. Set \f(CW$UID\fR to \s-1USER\s0's uid and \f(CW$GID\fR to \s-1USER\s0's gid, run \s-1PROG\s0
  1139. .IP "\fBether-wake\fR" 4
  1140. .IX Item "ether-wake"
  1141. ether-wake [\-b] [\-i \s-1IFACE\s0] [\-p aa:bb:cc:dd[:ee:ff]/a.b.c.d] \s-1MAC\s0
  1142. .Sp
  1143. Send a magic packet to wake up sleeping machines.
  1144. \&\s-1MAC\s0 must be a station address (00:11:22:33:44:55) or
  1145. a hostname with a known 'ethers' entry.
  1146. .Sp
  1147. .Vb 3
  1148. \& \-b Broadcast the packet
  1149. \& \-i IFACE Interface to use (default eth0)
  1150. \& \-p PASSWORD Append four or six byte PASSWORD to the packet
  1151. .Ve
  1152. .IP "\fBexpand\fR" 4
  1153. .IX Item "expand"
  1154. expand [\-i] [\-t N] [\s-1FILE\s0]...
  1155. .Sp
  1156. Convert tabs to spaces, writing to stdout
  1157. .Sp
  1158. .Vb 2
  1159. \& \-i Don\*(Aqt convert tabs after non blanks
  1160. \& \-t Tabstops every N chars
  1161. .Ve
  1162. .IP "\fBexpr\fR" 4
  1163. .IX Item "expr"
  1164. expr \s-1EXPRESSION\s0
  1165. .Sp
  1166. Print the value of \s-1EXPRESSION\s0 to stdout
  1167. .Sp
  1168. \&\s-1EXPRESSION\s0 may be:
  1169. .Sp
  1170. .Vb 10
  1171. \& ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2
  1172. \& ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0
  1173. \& ARG1 < ARG2 1 if ARG1 is less than ARG2, else 0. Similarly:
  1174. \& ARG1 <= ARG2
  1175. \& ARG1 = ARG2
  1176. \& ARG1 != ARG2
  1177. \& ARG1 >= ARG2
  1178. \& ARG1 > ARG2
  1179. \& ARG1 + ARG2 Sum of ARG1 and ARG2. Similarly:
  1180. \& ARG1 \- ARG2
  1181. \& ARG1 * ARG2
  1182. \& ARG1 / ARG2
  1183. \& ARG1 % ARG2
  1184. \& STRING : REGEXP Anchored pattern match of REGEXP in STRING
  1185. \& match STRING REGEXP Same as STRING : REGEXP
  1186. \& substr STRING POS LENGTH Substring of STRING, POS counted from 1
  1187. \& index STRING CHARS Index in STRING where any CHARS is found, or 0
  1188. \& length STRING Length of STRING
  1189. \& quote TOKEN Interpret TOKEN as a string, even if
  1190. \& it is a keyword like \*(Aqmatch\*(Aq or an
  1191. \& operator like \*(Aq/\*(Aq
  1192. \& (EXPRESSION) Value of EXPRESSION
  1193. .Ve
  1194. .Sp
  1195. Beware that many operators need to be escaped or quoted for shells.
  1196. Comparisons are arithmetic if both ARGs are numbers, else
  1197. lexicographical. Pattern matches return the string matched between
  1198. \&\e( and \e) or null; if \e( and \e) are not used, they return the number
  1199. of characters matched or 0.
  1200. .IP "\fBfactor\fR" 4
  1201. .IX Item "factor"
  1202. factor [\s-1NUMBER\s0]...
  1203. .Sp
  1204. Print prime factors
  1205. .IP "\fBfakeidentd\fR" 4
  1206. .IX Item "fakeidentd"
  1207. fakeidentd [\-fiw] [\-b \s-1ADDR\s0] [\s-1STRING\s0]
  1208. .Sp
  1209. Provide fake ident (auth) service
  1210. .Sp
  1211. .Vb 5
  1212. \& \-f Run in foreground
  1213. \& \-i Inetd mode
  1214. \& \-w Inetd \*(Aqwait\*(Aq mode
  1215. \& \-b ADDR Bind to specified address
  1216. \& STRING Ident answer string (default: nobody)
  1217. .Ve
  1218. .IP "\fBfallocate\fR" 4
  1219. .IX Item "fallocate"
  1220. fallocate [\-o \s-1OFS\s0] \-l \s-1LEN FILE\s0
  1221. .Sp
  1222. Preallocate space for \s-1FILE\s0
  1223. .Sp
  1224. .Vb 2
  1225. \& \-o OFS Offset of range
  1226. \& \-l LEN Length of range
  1227. .Ve
  1228. .IP "\fBfatattr\fR" 4
  1229. .IX Item "fatattr"
  1230. fatattr [\-+rhsvda] \s-1FILE...\s0
  1231. .Sp
  1232. Change file attributes on \s-1FAT\s0 filesystem
  1233. .Sp
  1234. .Vb 8
  1235. \& \- Clear attributes
  1236. \& + Set attributes
  1237. \& r Read only
  1238. \& h Hidden
  1239. \& s System
  1240. \& v Volume label
  1241. \& d Directory
  1242. \& a Archive
  1243. .Ve
  1244. .IP "\fBfbset\fR" 4
  1245. .IX Item "fbset"
  1246. fbset [\s-1OPTIONS\s0] [\s-1MODE\s0]
  1247. .Sp
  1248. Show and modify frame buffer settings
  1249. .IP "\fBfbsplash\fR" 4
  1250. .IX Item "fbsplash"
  1251. fbsplash \-s \s-1IMGFILE\s0 [\-c] [\-d \s-1DEV\s0] [\-i \s-1INIFILE\s0] [\-f \s-1CMD\s0]
  1252. .Sp
  1253. .Vb 8
  1254. \& \-s Image
  1255. \& \-c Hide cursor
  1256. \& \-d Framebuffer device (default /dev/fb0)
  1257. \& \-i Config file (var=value):
  1258. \& BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT
  1259. \& BAR_R,BAR_G,BAR_B
  1260. \& \-f Control pipe (else exit after drawing image)
  1261. \& commands: \*(AqNN\*(Aq (% for progress bar) or \*(Aqexit\*(Aq
  1262. .Ve
  1263. .IP "\fBfdflush\fR" 4
  1264. .IX Item "fdflush"
  1265. fdflush \s-1DEVICE\s0
  1266. .Sp
  1267. Force floppy disk drive to detect disk change
  1268. .IP "\fBfdformat\fR" 4
  1269. .IX Item "fdformat"
  1270. fdformat [\-n] \s-1DEVICE\s0
  1271. .Sp
  1272. Format floppy disk
  1273. .Sp
  1274. .Vb 1
  1275. \& \-n Don\*(Aqt verify after format
  1276. .Ve
  1277. .IP "\fBfdisk\fR" 4
  1278. .IX Item "fdisk"
  1279. fdisk [\-ul] [\-C \s-1CYLINDERS\s0] [\-H \s-1HEADS\s0] [\-S \s-1SECTORS\s0] [\-b \s-1SSZ\s0] \s-1DISK\s0
  1280. .Sp
  1281. Change partition table
  1282. .Sp
  1283. .Vb 6
  1284. \& \-u Start and End are in sectors (instead of cylinders)
  1285. \& \-l Show partition table for each DISK, then exit
  1286. \& \-b 2048 (for certain MO disks) use 2048\-byte sectors
  1287. \& \-C CYLINDERS Set number of cylinders/heads/sectors
  1288. \& \-H HEADS Typically 255
  1289. \& \-S SECTORS Typically 63
  1290. .Ve
  1291. .IP "\fBfgconsole\fR" 4
  1292. .IX Item "fgconsole"
  1293. fgconsole
  1294. .Sp
  1295. Get active console
  1296. .IP "\fBfind\fR" 4
  1297. .IX Item "find"
  1298. find [\-HL] [\s-1PATH\s0]... [\s-1OPTIONS\s0] [\s-1ACTIONS\s0]
  1299. .Sp
  1300. Search for files and perform actions on them.
  1301. First failed action stops processing of current file.
  1302. Defaults: \s-1PATH\s0 is current directory, action is '\-print'
  1303. .Sp
  1304. .Vb 7
  1305. \& \-L,\-follow Follow symlinks
  1306. \& \-H ...on command line only
  1307. \& \-xdev Don\*(Aqt descend directories on other filesystems
  1308. \& \-maxdepth N Descend at most N levels. \-maxdepth 0 applies
  1309. \& actions to command line arguments only
  1310. \& \-mindepth N Don\*(Aqt act on first N levels
  1311. \& \-depth Act on directory *after* traversing it
  1312. .Ve
  1313. .Sp
  1314. Actions:
  1315. .Sp
  1316. .Vb 10
  1317. \& ( ACTIONS ) Group actions for \-o / \-a
  1318. \& ! ACT Invert ACT\*(Aqs success/failure
  1319. \& ACT1 [\-a] ACT2 If ACT1 fails, stop, else do ACT2
  1320. \& ACT1 \-o ACT2 If ACT1 succeeds, stop, else do ACT2
  1321. \& Note: \-a has higher priority than \-o
  1322. \& \-name PATTERN Match file name (w/o directory name) to PATTERN
  1323. \& \-iname PATTERN Case insensitive \-name
  1324. \& \-path PATTERN Match path to PATTERN
  1325. \& \-ipath PATTERN Case insensitive \-path
  1326. \& \-regex PATTERN Match path to regex PATTERN
  1327. \& \-type X File type is X (one of: f,d,l,b,c,...)
  1328. \& \-perm MASK At least one mask bit (+MASK), all bits (\-MASK),
  1329. \& or exactly MASK bits are set in file\*(Aqs mode
  1330. \& \-mtime DAYS mtime is greater than (+N), less than (\-N),
  1331. \& or exactly N days in the past
  1332. \& \-mmin MINS mtime is greater than (+N), less than (\-N),
  1333. \& or exactly N minutes in the past
  1334. \& \-newer FILE mtime is more recent than FILE\*(Aqs
  1335. \& \-inum N File has inode number N
  1336. \& \-user NAME/ID File is owned by given user
  1337. \& \-group NAME/ID File is owned by given group
  1338. \& \-size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.))
  1339. \& +/\-N: file size is bigger/smaller than N
  1340. \& \-links N Number of links is greater than (+N), less than (\-N),
  1341. \& or exactly N
  1342. \& \-prune If current file is directory, don\*(Aqt descend into it
  1343. \&If none of the following actions is specified, \-print is assumed
  1344. \& \-print Print file name
  1345. \& \-print0 Print file name, NUL terminated
  1346. \& \-exec CMD ARG ; Run CMD with all instances of {} replaced by
  1347. \& file name. Fails if CMD exits with nonzero
  1348. \& \-exec CMD ARG + Run CMD with {} replaced by list of file names
  1349. \& \-delete Delete current file/directory. Turns on \-depth option
  1350. .Ve
  1351. .IP "\fBfindfs\fR" 4
  1352. .IX Item "findfs"
  1353. findfs LABEL=label or UUID=uuid
  1354. .Sp
  1355. Find a filesystem device based on a label or \s-1UUID\s0
  1356. .IP "\fBflock\fR" 4
  1357. .IX Item "flock"
  1358. flock [\-sxun] FD|{\s-1FILE\s0 [\-c] \s-1PROG ARGS\s0}
  1359. .Sp
  1360. [Un]lock file descriptor, or lock \s-1FILE,\s0 run \s-1PROG\s0
  1361. .Sp
  1362. .Vb 4
  1363. \& \-s Shared lock
  1364. \& \-x Exclusive lock (default)
  1365. \& \-u Unlock FD
  1366. \& \-n Fail rather than wait
  1367. .Ve
  1368. .IP "\fBfold\fR" 4
  1369. .IX Item "fold"
  1370. fold [\-bs] [\-w \s-1WIDTH\s0] [\s-1FILE\s0]...
  1371. .Sp
  1372. Wrap input lines in each \s-1FILE\s0 (or stdin), writing to stdout
  1373. .Sp
  1374. .Vb 3
  1375. \& \-b Count bytes rather than columns
  1376. \& \-s Break at spaces
  1377. \& \-w Use WIDTH columns instead of 80
  1378. .Ve
  1379. .IP "\fBfree\fR" 4
  1380. .IX Item "free"
  1381. free [\-b/k/m/g]
  1382. .Sp
  1383. Display the amount of free and used system memory
  1384. .IP "\fBfreeramdisk\fR" 4
  1385. .IX Item "freeramdisk"
  1386. freeramdisk \s-1DEVICE\s0
  1387. .Sp
  1388. Free all memory used by the specified ramdisk
  1389. .IP "\fBfsck\fR" 4
  1390. .IX Item "fsck"
  1391. fsck [\-ANPRTV] [\-t \s-1FSTYPE\s0] [\s-1FS_OPTS\s0] [\s-1BLOCKDEV\s0]...
  1392. .Sp
  1393. Check and repair filesystems
  1394. .Sp
  1395. .Vb 7
  1396. \& \-A Walk /etc/fstab and check all filesystems
  1397. \& \-N Don\*(Aqt execute, just show what would be done
  1398. \& \-P With \-A, check filesystems in parallel
  1399. \& \-R With \-A, skip the root filesystem
  1400. \& \-T Don\*(Aqt show title on startup
  1401. \& \-V Verbose
  1402. \& \-t TYPE List of filesystem types to check
  1403. .Ve
  1404. .IP "\fBfsck.minix\fR" 4
  1405. .IX Item "fsck.minix"
  1406. fsck.minix [\-larvsmf] \s-1BLOCKDEV\s0
  1407. .Sp
  1408. Check \s-1MINIX\s0 filesystem
  1409. .Sp
  1410. .Vb 7
  1411. \& \-l List all filenames
  1412. \& \-r Perform interactive repairs
  1413. \& \-a Perform automatic repairs
  1414. \& \-v Verbose
  1415. \& \-s Output superblock information
  1416. \& \-m Show "mode not cleared" warnings
  1417. \& \-f Force file system check
  1418. .Ve
  1419. .IP "\fBfsfreeze\fR" 4
  1420. .IX Item "fsfreeze"
  1421. fsfreeze \-\-[un]freeze \s-1MOUNTPOINT\s0
  1422. .Sp
  1423. Flush and halt writes to \s-1MOUNTPOINT\s0
  1424. .IP "\fBfstrim\fR" 4
  1425. .IX Item "fstrim"
  1426. fstrim [\s-1OPTIONS\s0] \s-1MOUNTPOINT\s0
  1427. .Sp
  1428. .Vb 4
  1429. \& \-o,\-\-offset OFFSET Offset in bytes to discard from
  1430. \& \-l,\-\-length LEN Bytes to discard
  1431. \& \-m,\-\-minimum MIN Minimum extent length
  1432. \& \-v,\-\-verbose Print number of discarded bytes
  1433. .Ve
  1434. .IP "\fBfsync\fR" 4
  1435. .IX Item "fsync"
  1436. fsync [\-d] \s-1FILE...\s0
  1437. .Sp
  1438. Write files' buffered blocks to disk
  1439. .Sp
  1440. .Vb 1
  1441. \& \-d Avoid syncing metadata
  1442. .Ve
  1443. .IP "\fBftpd\fR" 4
  1444. .IX Item "ftpd"
  1445. ftpd [\-wvS] [\-a \s-1USER\s0] [\-t N] [\-T N] [\s-1DIR\s0]
  1446. .Sp
  1447. \&\s-1FTP\s0 server. Chroots to \s-1DIR,\s0 if this fails (run by non-root), cds to it.
  1448. Should be used as inetd service, inetd.conf line:
  1449. 21 stream tcp nowait root ftpd ftpd /files/to/serve
  1450. Can be run from tcpsvd:
  1451. .Sp
  1452. .Vb 1
  1453. \& tcpsvd \-vE 0.0.0.0 21 ftpd /files/to/serve
  1454. \&
  1455. \& \-w Allow upload
  1456. \& \-a USER Enable \*(Aqanonymous\*(Aq login and map it to USER
  1457. \& \-v Log errors to stderr. \-vv: verbose log
  1458. \& \-S Log errors to syslog. \-SS: verbose log
  1459. \& \-t,\-T N Idle and absolute timeout
  1460. .Ve
  1461. .IP "\fBftpget\fR" 4
  1462. .IX Item "ftpget"
  1463. ftpget [\s-1OPTIONS\s0] \s-1HOST\s0 [\s-1LOCAL_FILE\s0] \s-1REMOTE_FILE\s0
  1464. .Sp
  1465. Download a file via \s-1FTP\s0
  1466. .Sp
  1467. .Vb 5
  1468. \& \-c Continue previous transfer
  1469. \& \-v Verbose
  1470. \& \-u USER Username
  1471. \& \-p PASS Password
  1472. \& \-P NUM Port
  1473. .Ve
  1474. .IP "\fBftpput\fR" 4
  1475. .IX Item "ftpput"
  1476. ftpput [\s-1OPTIONS\s0] \s-1HOST\s0 [\s-1REMOTE_FILE\s0] \s-1LOCAL_FILE\s0
  1477. .Sp
  1478. Upload a file to a \s-1FTP\s0 server
  1479. .Sp
  1480. .Vb 4
  1481. \& \-v Verbose
  1482. \& \-u USER Username
  1483. \& \-p PASS Password
  1484. \& \-P NUM Port number
  1485. .Ve
  1486. .IP "\fBfuser\fR" 4
  1487. .IX Item "fuser"
  1488. fuser [\s-1OPTIONS\s0] \s-1FILE\s0 or \s-1PORT/PROTO\s0
  1489. .Sp
  1490. Find processes which use FILEs or PORTs
  1491. .Sp
  1492. .Vb 5
  1493. \& \-m Find processes which use same fs as FILEs
  1494. \& \-4,\-6 Search only IPv4/IPv6 space
  1495. \& \-s Don\*(Aqt display PIDs
  1496. \& \-k Kill found processes
  1497. \& \-SIGNAL Signal to send (default: KILL)
  1498. .Ve
  1499. .IP "\fBgetopt\fR" 4
  1500. .IX Item "getopt"
  1501. getopt [\s-1OPTIONS\s0] [\-\-] \s-1OPTSTRING PARAMS\s0
  1502. .Sp
  1503. .Vb 9
  1504. \& \-a Allow long options starting with single \-
  1505. \& \-l LOPT[,...] Long options to recognize
  1506. \& \-n PROGNAME The name under which errors are reported
  1507. \& \-o OPTSTRING Short options to recognize
  1508. \& \-q No error messages on unrecognized options
  1509. \& \-Q No normal output
  1510. \& \-s SHELL Set shell quoting conventions
  1511. \& \-T Version test (exits with 4)
  1512. \& \-u Don\*(Aqt quote output
  1513. .Ve
  1514. .Sp
  1515. Example:
  1516. .Sp
  1517. O=`getopt \-l bb: \*(-- ab:c:: \*(L"$@\*(R"` || exit 1
  1518. eval set \*(-- \*(L"$O\*(R"
  1519. while true; do
  1520. case \*(L"$1\*(R" in
  1521. \-a) echo A; shift;;
  1522. \-b|\-\-bb) echo \*(L"B:'$2'\*(R"; shift 2;;
  1523. \-c) case \*(L"$2\*(R" in
  1524. "\*(L") echo C; shift 2;;
  1525. *) echo \*(R"C:'$2'"; shift 2;;
  1526. esac;;
  1527. \-\-) shift; break;;
  1528. *) echo Error; exit 1;;
  1529. esac
  1530. done
  1531. .IP "\fBgetty\fR" 4
  1532. .IX Item "getty"
  1533. getty [\s-1OPTIONS\s0] BAUD_RATE[,BAUD_RATE]... \s-1TTY\s0 [\s-1TERMTYPE\s0]
  1534. .Sp
  1535. Open \s-1TTY,\s0 prompt for login name, then invoke /bin/login
  1536. .Sp
  1537. .Vb 11
  1538. \& \-h Enable hardware RTS/CTS flow control
  1539. \& \-L Set CLOCAL (ignore Carrier Detect state)
  1540. \& \-m Get baud rate from modem\*(Aqs CONNECT status message
  1541. \& \-n Don\*(Aqt prompt for login name
  1542. \& \-w Wait for CR or LF before sending /etc/issue
  1543. \& \-i Don\*(Aqt display /etc/issue
  1544. \& \-f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue
  1545. \& \-l LOGIN Invoke LOGIN instead of /bin/login
  1546. \& \-t SEC Terminate after SEC if no login name is read
  1547. \& \-I INITSTR Send INITSTR before anything else
  1548. \& \-H HOST Log HOST into the utmp file as the hostname
  1549. .Ve
  1550. .Sp
  1551. \&\s-1BAUD_RATE\s0 of 0 leaves it unchanged
  1552. .IP "\fBgrep\fR" 4
  1553. .IX Item "grep"
  1554. grep [\-HhnlLoqvsriwFE] [\-m N] [\-A/B/C N] PATTERN/\-e \s-1PATTERN..\s0./\-f \s-1FILE\s0 [\s-1FILE\s0]...
  1555. .Sp
  1556. Search for \s-1PATTERN\s0 in FILEs (or stdin)
  1557. .Sp
  1558. .Vb 10
  1559. \& \-H Add \*(Aqfilename:\*(Aq prefix
  1560. \& \-h Do not add \*(Aqfilename:\*(Aq prefix
  1561. \& \-n Add \*(Aqline_no:\*(Aq prefix
  1562. \& \-l Show only names of files that match
  1563. \& \-L Show only names of files that don\*(Aqt match
  1564. \& \-c Show only count of matching lines
  1565. \& \-o Show only the matching part of line
  1566. \& \-q Quiet. Return 0 if PATTERN is found, 1 otherwise
  1567. \& \-v Select non\-matching lines
  1568. \& \-s Suppress open and read errors
  1569. \& \-r Recurse
  1570. \& \-i Ignore case
  1571. \& \-w Match whole words only
  1572. \& \-x Match whole lines only
  1573. \& \-F PATTERN is a literal (not regexp)
  1574. \& \-E PATTERN is an extended regexp
  1575. \& \-m N Match up to N times per file
  1576. \& \-A N Print N lines of trailing context
  1577. \& \-B N Print N lines of leading context
  1578. \& \-C N Same as \*(Aq\-A N \-B N\*(Aq
  1579. \& \-e PTRN Pattern to match
  1580. \& \-f FILE Read pattern from file
  1581. .Ve
  1582. .IP "\fBgroups\fR" 4
  1583. .IX Item "groups"
  1584. groups [\s-1USER\s0]
  1585. .Sp
  1586. Print the group memberships of \s-1USER\s0 or for the current process
  1587. .IP "\fBgunzip\fR" 4
  1588. .IX Item "gunzip"
  1589. gunzip [\-cfkt] [\s-1FILE\s0]...
  1590. .Sp
  1591. Decompress FILEs (or stdin)
  1592. .Sp
  1593. .Vb 4
  1594. \& \-c Write to stdout
  1595. \& \-f Force
  1596. \& \-k Keep input files
  1597. \& \-t Test file integrity
  1598. .Ve
  1599. .IP "\fBgzip\fR" 4
  1600. .IX Item "gzip"
  1601. gzip [\-cfkdt] [\s-1FILE\s0]...
  1602. .Sp
  1603. Compress FILEs (or stdin)
  1604. .Sp
  1605. .Vb 5
  1606. \& \-d Decompress
  1607. \& \-t Test file integrity
  1608. \& \-c Write to stdout
  1609. \& \-f Force
  1610. \& \-k Keep input files
  1611. .Ve
  1612. .IP "\fBhalt\fR" 4
  1613. .IX Item "halt"
  1614. halt [\-d \s-1DELAY\s0] [\-n] [\-f] [\-w]
  1615. .Sp
  1616. Halt the system
  1617. .Sp
  1618. .Vb 4
  1619. \& \-d SEC Delay interval
  1620. \& \-n Do not sync
  1621. \& \-f Force (don\*(Aqt go through init)
  1622. \& \-w Only write a wtmp record
  1623. .Ve
  1624. .IP "\fBhd\fR" 4
  1625. .IX Item "hd"
  1626. hd \s-1FILE...\s0
  1627. .Sp
  1628. hd is an alias for hexdump \-C
  1629. .IP "\fBhdparm\fR" 4
  1630. .IX Item "hdparm"
  1631. hdparm [\s-1OPTIONS\s0] [\s-1DEVICE\s0]
  1632. .Sp
  1633. .Vb 10
  1634. \& \-a Get/set fs readahead
  1635. \& \-A Set drive read\-lookahead flag (0/1)
  1636. \& \-b Get/set bus state (0 == off, 1 == on, 2 == tristate)
  1637. \& \-B Set Advanced Power Management setting (1\-255)
  1638. \& \-c Get/set IDE 32\-bit IO setting
  1639. \& \-C Check IDE power mode status
  1640. \& \-d Get/set using_dma flag
  1641. \& \-D Enable/disable drive defect\-mgmt
  1642. \& \-f Flush buffer cache for device on exit
  1643. \& \-g Display drive geometry
  1644. \& \-h Display terse usage information
  1645. \& \-i Display drive identification
  1646. \& \-I Detailed/current information directly from drive
  1647. \& \-k Get/set keep_settings_over_reset flag (0/1)
  1648. \& \-K Set drive keep_features_over_reset flag (0/1)
  1649. \& \-L Set drive doorlock (0/1) (removable harddisks only)
  1650. \& \-m Get/set multiple sector count
  1651. \& \-n Get/set ignore\-write\-errors flag (0/1)
  1652. \& \-p Set PIO mode on IDE interface chipset (0,1,2,3,4,...)
  1653. \& \-P Set drive prefetch count
  1654. \& \-Q Get/set DMA tagged\-queuing depth (if supported)
  1655. \& \-r Get/set readonly flag (DANGEROUS to set)
  1656. \& \-R Register an IDE interface (DANGEROUS)
  1657. \& \-S Set standby (spindown) timeout
  1658. \& \-t Perform device read timings
  1659. \& \-T Perform cache read timings
  1660. \& \-u Get/set unmaskirq flag (0/1)
  1661. \& \-U Unregister an IDE interface (DANGEROUS)
  1662. \& \-v Defaults; same as \-mcudkrag for IDE drives
  1663. \& \-V Display program version and exit immediately
  1664. \& \-w Perform device reset (DANGEROUS)
  1665. \& \-W Set drive write\-caching flag (0/1) (DANGEROUS)
  1666. \& \-x Tristate device for hotswap (0/1) (DANGEROUS)
  1667. \& \-X Set IDE xfer mode (DANGEROUS)
  1668. \& \-y Put IDE drive in standby mode
  1669. \& \-Y Put IDE drive to sleep
  1670. \& \-Z Disable Seagate auto\-powersaving mode
  1671. \& \-z Reread partition table
  1672. .Ve
  1673. .IP "\fBhead\fR" 4
  1674. .IX Item "head"
  1675. head [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  1676. .Sp
  1677. Print first 10 lines of each \s-1FILE\s0 (or stdin) to stdout.
  1678. With more than one \s-1FILE,\s0 precede each with a filename header.
  1679. .Sp
  1680. .Vb 5
  1681. \& \-n N[kbm] Print first N lines
  1682. \& \-n \-N[kbm] Print all except N last lines
  1683. \& \-c [\-]N[kbm] Print first N bytes
  1684. \& \-q Never print headers
  1685. \& \-v Always print headers
  1686. .Ve
  1687. .Sp
  1688. N may be suffixed by k (x1024), b (x512), or m (x1024^2).
  1689. .IP "\fBhexdump\fR" 4
  1690. .IX Item "hexdump"
  1691. hexdump [\-bcCdefnosvxR] [\s-1FILE\s0]...
  1692. .Sp
  1693. Display FILEs (or stdin) in a user specified format
  1694. .Sp
  1695. .Vb 12
  1696. \& \-b 1\-byte octal display
  1697. \& \-c 1\-byte character display
  1698. \& \-d 2\-byte decimal display
  1699. \& \-o 2\-byte octal display
  1700. \& \-x 2\-byte hex display
  1701. \& \-C hex+ASCII 16 bytes per line
  1702. \& \-v Show all (no dup folding)
  1703. \& \-e FORMAT_STR Example: \*(Aq16/1 "%02x|""\en"\*(Aq
  1704. \& \-f FORMAT_FILE
  1705. \& \-n LENGTH Show only first LENGTH bytes
  1706. \& \-s OFFSET Skip OFFSET bytes
  1707. \& \-R Reverse of \*(Aqhexdump \-Cv\*(Aq
  1708. .Ve
  1709. .IP "\fBhexedit\fR" 4
  1710. .IX Item "hexedit"
  1711. hexedit \s-1FILE\s0
  1712. .Sp
  1713. Edit \s-1FILE\s0 in hexadecimal
  1714. .IP "\fBhostid\fR" 4
  1715. .IX Item "hostid"
  1716. hostid
  1717. .Sp
  1718. Print out a unique 32\-bit identifier for the machine
  1719. .IP "\fBhostname\fR" 4
  1720. .IX Item "hostname"
  1721. hostname [\s-1OPTIONS\s0] [\s-1HOSTNAME\s0 | \-F \s-1FILE\s0]
  1722. .Sp
  1723. Get or set hostname or \s-1DNS\s0 domain name
  1724. .Sp
  1725. .Vb 5
  1726. \& \-s Short
  1727. \& \-i Addresses for the hostname
  1728. \& \-d DNS domain name
  1729. \& \-f Fully qualified domain name
  1730. \& \-F FILE Use FILE\*(Aqs content as hostname
  1731. .Ve
  1732. .IP "\fBhttpd\fR" 4
  1733. .IX Item "httpd"
  1734. httpd [\-ifv[v]] [\-c \s-1CONFFILE\s0] [\-p [\s-1IP:\s0]PORT] [\-u USER[:GRP]] [\-r \s-1REALM\s0] [\-h \s-1HOME\s0]
  1735. or httpd \-d/\-e/\-m \s-1STRING\s0
  1736. .Sp
  1737. Listen for incoming \s-1HTTP\s0 requests
  1738. .Sp
  1739. .Vb 11
  1740. \& \-i Inetd mode
  1741. \& \-f Don\*(Aqt daemonize
  1742. \& \-v[v] Verbose
  1743. \& \-p [IP:]PORT Bind to IP:PORT (default *:80)
  1744. \& \-u USER[:GRP] Set uid/gid after binding to port
  1745. \& \-r REALM Authentication Realm for Basic Authentication
  1746. \& \-h HOME Home directory (default .)
  1747. \& \-c FILE Configuration file (default {/etc,HOME}/httpd.conf)
  1748. \& \-m STRING MD5 crypt STRING
  1749. \& \-e STRING HTML encode STRING
  1750. \& \-d STRING URL decode STRING
  1751. .Ve
  1752. .IP "\fBhush\fR" 4
  1753. .IX Item "hush"
  1754. hush [\-enxl] [\-c '\s-1SCRIPT\s0' [\s-1ARG0\s0 [\s-1ARGS\s0]] / \s-1FILE\s0 [\s-1ARGS\s0]]
  1755. .Sp
  1756. Unix shell interpreter
  1757. .IP "\fBhwclock\fR" 4
  1758. .IX Item "hwclock"
  1759. hwclock [\-r|\-\-show] [\-s|\-\-hctosys] [\-w|\-\-systohc] [\-\-systz] [\-\-localtime] [\-u|\-\-utc] [\-f|\-\-rtc \s-1FILE\s0]
  1760. .Sp
  1761. Query and set hardware clock (\s-1RTC\s0)
  1762. .Sp
  1763. .Vb 8
  1764. \& \-r Show hardware clock time
  1765. \& \-s Set system time from hardware clock
  1766. \& \-w Set hardware clock from system time
  1767. \& \-\-systz Set in\-kernel timezone, correct system time
  1768. \& if hardware clock is in local time
  1769. \& \-u Assume hardware clock is kept in UTC
  1770. \& \-\-localtime Assume hardware clock is kept in local time
  1771. \& \-f FILE Use specified device (e.g. /dev/rtc2)
  1772. .Ve
  1773. .IP "\fBi2cdetect\fR" 4
  1774. .IX Item "i2cdetect"
  1775. i2cdetect \-l | \-F I2CBUS | [\-ya] [\-q|\-r] I2CBUS [\s-1FIRST LAST\s0]
  1776. .Sp
  1777. Detect I2C chips
  1778. .Sp
  1779. .Vb 7
  1780. \& \-l List installed buses
  1781. \& \-F BUS# List functionalities on this bus
  1782. \& \-y Disable interactive mode
  1783. \& \-a Force scanning of non\-regular addresses
  1784. \& \-q Use smbus quick write commands for probing (default)
  1785. \& \-r Use smbus read byte commands for probing
  1786. \& FIRST and LAST limit probing range
  1787. .Ve
  1788. .IP "\fBi2cdump\fR" 4
  1789. .IX Item "i2cdump"
  1790. i2cdump [\-fy] [\-r \s-1FIRST\-LAST\s0] \s-1BUS ADDR\s0 [\s-1MODE\s0]
  1791. .Sp
  1792. Examine I2C registers
  1793. .Sp
  1794. .Vb 3
  1795. \& I2CBUS I2C bus number
  1796. \& ADDRESS 0x03\-0x77
  1797. \&MODE is:
  1798. \&
  1799. \& b Byte (default)
  1800. \& w Word
  1801. \& W Word on even register addresses
  1802. \& i I2C block
  1803. \& s SMBus block
  1804. \& c Consecutive byte
  1805. \& Append p for SMBus PEC
  1806. \&
  1807. \& \-f Force access
  1808. \& \-y Disable interactive mode
  1809. \& \-r Limit the number of registers being accessed
  1810. .Ve
  1811. .IP "\fBi2cget\fR" 4
  1812. .IX Item "i2cget"
  1813. i2cget [\-fy] \s-1BUS\s0 CHIP-ADDRESS [\s-1DATA\-ADDRESS\s0 [\s-1MODE\s0]]
  1814. .Sp
  1815. Read from I2C/SMBus chip registers
  1816. .Sp
  1817. .Vb 3
  1818. \& I2CBUS I2C bus number
  1819. \& ADDRESS 0x03\-0x77
  1820. \&MODE is:
  1821. \&
  1822. \& b Read byte data (default)
  1823. \& w Read word data
  1824. \& c Write byte/read byte
  1825. \& Append p for SMBus PEC
  1826. \&
  1827. \& \-f Force access
  1828. \& \-y Disable interactive mode
  1829. .Ve
  1830. .IP "\fBi2cset\fR" 4
  1831. .IX Item "i2cset"
  1832. i2cset [\-fy] [\-m \s-1MASK\s0] \s-1BUS\s0 CHIP-ADDRESS DATA-ADDRESS [\s-1VALUE\s0] ... [\s-1MODE\s0]
  1833. .Sp
  1834. Set I2C registers
  1835. .Sp
  1836. .Vb 3
  1837. \& I2CBUS I2C bus number
  1838. \& ADDRESS 0x03\-0x77
  1839. \&MODE is:
  1840. \&
  1841. \& c Byte, no value
  1842. \& b Byte data (default)
  1843. \& w Word data
  1844. \& i I2C block data
  1845. \& s SMBus block data
  1846. \& Append p for SMBus PEC
  1847. \&
  1848. \& \-f Force access
  1849. \& \-y Disable interactive mode
  1850. \& \-r Read back and compare the result
  1851. \& \-m MASK Mask specifying which bits to write
  1852. .Ve
  1853. .IP "\fBid\fR" 4
  1854. .IX Item "id"
  1855. id [\s-1OPTIONS\s0] [\s-1USER\s0]
  1856. .Sp
  1857. Print information about \s-1USER\s0 or the current user
  1858. .Sp
  1859. .Vb 5
  1860. \& \-u User ID
  1861. \& \-g Group ID
  1862. \& \-G Supplementary group IDs
  1863. \& \-n Print names instead of numbers
  1864. \& \-r Print real ID instead of effective ID
  1865. .Ve
  1866. .IP "\fBifconfig\fR" 4
  1867. .IX Item "ifconfig"
  1868. ifconfig [\-a] interface [address]
  1869. .Sp
  1870. Configure a network interface
  1871. .Sp
  1872. .Vb 10
  1873. \& [add ADDRESS[/PREFIXLEN]]
  1874. \& [del ADDRESS[/PREFIXLEN]]
  1875. \& [[\-]broadcast [ADDRESS]] [[\-]pointopoint [ADDRESS]]
  1876. \& [netmask ADDRESS] [dstaddr ADDRESS]
  1877. \& [outfill NN] [keepalive NN]
  1878. \& [hw ether|infiniband ADDRESS] [metric NN] [mtu NN]
  1879. \& [[\-]trailers] [[\-]arp] [[\-]allmulti]
  1880. \& [multicast] [[\-]promisc] [txqueuelen NN] [[\-]dynamic]
  1881. \& [mem_start NN] [io_addr NN] [irq NN]
  1882. \& [up|down] ...
  1883. .Ve
  1884. .IP "\fBifdown\fR" 4
  1885. .IX Item "ifdown"
  1886. ifdown [\-anmvf] [\-i \s-1FILE\s0] \s-1IFACE...\s0
  1887. .Sp
  1888. .Vb 7
  1889. \& \-a Deconfigure all interfaces
  1890. \& \-i FILE Use FILE for interface definitions
  1891. \& \-n Print out what would happen, but don\*(Aqt do it
  1892. \& (note: doesn\*(Aqt disable mappings)
  1893. \& \-m Don\*(Aqt run any mappings
  1894. \& \-v Print out what would happen before doing it
  1895. \& \-f Force deconfiguration
  1896. .Ve
  1897. .IP "\fBifenslave\fR" 4
  1898. .IX Item "ifenslave"
  1899. ifenslave [\-cdf] \s-1MASTER_IFACE SLAVE_IFACE...\s0
  1900. .Sp
  1901. Configure network interfaces for parallel routing
  1902. .Sp
  1903. .Vb 3
  1904. \& \-c Change active slave
  1905. \& \-d Remove slave interface from bonding device
  1906. \& \-f Force, even if interface is not Ethernet
  1907. .Ve
  1908. .IP "\fBifplugd\fR" 4
  1909. .IX Item "ifplugd"
  1910. ifplugd [\s-1OPTIONS\s0]
  1911. .Sp
  1912. Network interface plug detection daemon
  1913. .Sp
  1914. .Vb 10
  1915. \& \-n Don\*(Aqt daemonize
  1916. \& \-s Don\*(Aqt log to syslog
  1917. \& \-i IFACE Interface
  1918. \& \-f/\-F Treat link detection error as link down/link up
  1919. \& (otherwise exit on error)
  1920. \& \-a Don\*(Aqt up interface at each link probe
  1921. \& \-M Monitor creation/destruction of interface
  1922. \& (otherwise it must exist)
  1923. \& \-r PROG Script to run
  1924. \& \-x ARG Extra argument for script
  1925. \& \-I Don\*(Aqt exit on nonzero exit code from script
  1926. \& \-p Don\*(Aqt run "up" script on startup
  1927. \& \-q Don\*(Aqt run "down" script on exit
  1928. \& \-l Always run script on startup
  1929. \& \-t SECS Poll time in seconds
  1930. \& \-u SECS Delay before running script after link up
  1931. \& \-d SECS Delay after link down
  1932. \& \-m MODE API mode (mii, priv, ethtool, wlan, iff, auto)
  1933. \& \-k Kill running daemon
  1934. .Ve
  1935. .IP "\fBifup\fR" 4
  1936. .IX Item "ifup"
  1937. ifup [\-anmvf] [\-i \s-1FILE\s0] \s-1IFACE...\s0
  1938. .Sp
  1939. .Vb 7
  1940. \& \-a Configure all interfaces
  1941. \& \-i FILE Use FILE instead of /etc/network/interfaces
  1942. \& \-n Print out what would happen, but don\*(Aqt do it
  1943. \& (note: doesn\*(Aqt disable mappings)
  1944. \& \-m Don\*(Aqt run any mappings
  1945. \& \-v Print out what would happen before doing it
  1946. \& \-f Force configuration
  1947. .Ve
  1948. .IP "\fBinetd\fR" 4
  1949. .IX Item "inetd"
  1950. inetd [\-fe] [\-q N] [\-R N] [\s-1CONFFILE\s0]
  1951. .Sp
  1952. Listen for network connections and launch programs
  1953. .Sp
  1954. .Vb 6
  1955. \& \-f Run in foreground
  1956. \& \-e Log to stderr
  1957. \& \-q N Socket listen queue (default 128)
  1958. \& \-R N Pause services after N connects/min
  1959. \& (default 0 \- disabled)
  1960. \& Default CONFFILE is /etc/inetd.conf
  1961. .Ve
  1962. .IP "\fBinit\fR" 4
  1963. .IX Item "init"
  1964. init
  1965. .Sp
  1966. Init is the first process started during boot. It never exits.
  1967. It (re)spawns children according to /etc/inittab.
  1968. .IP "\fBinsmod\fR" 4
  1969. .IX Item "insmod"
  1970. insmod \s-1FILE\s0 [SYMBOL=VALUE]...
  1971. .Sp
  1972. Load kernel module
  1973. .IP "\fBinstall\fR" 4
  1974. .IX Item "install"
  1975. install [\-cdDsp] [\-o \s-1USER\s0] [\-g \s-1GRP\s0] [\-m \s-1MODE\s0] [\-t \s-1DIR\s0] [\s-1SOURCE\s0]... \s-1DEST\s0
  1976. .Sp
  1977. Copy files and set attributes
  1978. .Sp
  1979. .Vb 9
  1980. \& \-c Just copy (default)
  1981. \& \-d Create directories
  1982. \& \-D Create leading target directories
  1983. \& \-s Strip symbol table
  1984. \& \-p Preserve date
  1985. \& \-o USER Set ownership
  1986. \& \-g GRP Set group ownership
  1987. \& \-m MODE Set permissions
  1988. \& \-t DIR Install to DIR
  1989. .Ve
  1990. .IP "\fBionice\fR" 4
  1991. .IX Item "ionice"
  1992. ionice [\-c 1\-3] [\-n 0\-7] [\-p \s-1PID\s0] [\s-1PROG\s0]
  1993. .Sp
  1994. Change I/O priority and class
  1995. .Sp
  1996. .Vb 2
  1997. \& \-c Class. 1:realtime 2:best\-effort 3:idle
  1998. \& \-n Priority
  1999. .Ve
  2000. .IP "\fBiostat\fR" 4
  2001. .IX Item "iostat"
  2002. iostat [\-c] [\-d] [\-t] [\-z] [\-k|\-m] [ALL|BLOCKDEV...] [\s-1INTERVAL\s0 [\s-1COUNT\s0]]
  2003. .Sp
  2004. Report \s-1CPU\s0 and I/O statistics
  2005. .Sp
  2006. .Vb 6
  2007. \& \-c Show CPU utilization
  2008. \& \-d Show device utilization
  2009. \& \-t Print current time
  2010. \& \-z Omit devices with no activity
  2011. \& \-k Use kb/s
  2012. \& \-m Use Mb/s
  2013. .Ve
  2014. .IP "\fBip\fR" 4
  2015. .IX Item "ip"
  2016. ip [\s-1OPTIONS\s0] address|route|link|tunnel|neigh|rule [\s-1COMMAND\s0]
  2017. .Sp
  2018. \&\s-1OPTIONS\s0 := \-f[amily] inet|inet6|link | \-o[neline]
  2019. \&\s-1COMMAND\s0 :=
  2020. ip addr add|del \s-1IFADDR\s0 dev \s-1IFACE\s0 | show|flush [dev \s-1IFACE\s0] [to \s-1PREFIX\s0]
  2021. ip route list|flush|add|del|change|append|replace|test \s-1ROUTE\s0
  2022. ip link set \s-1IFACE\s0 [up|down] [arp on|off] | show [\s-1IFACE\s0]
  2023. ip tunnel add|change|del|show [\s-1NAME\s0]
  2024. [mode ipip|gre|sit]
  2025. [remote \s-1ADDR\s0] [local \s-1ADDR\s0] [ttl \s-1TTL\s0]
  2026. ip neigh show|flush [to \s-1PREFIX\s0] [dev \s-1DEV\s0] [nud \s-1STATE\s0]
  2027. ip rule [list] | add|del \s-1SELECTOR ACTION\s0
  2028. .IP "\fBipaddr\fR" 4
  2029. .IX Item "ipaddr"
  2030. ipaddr add|del \s-1IFADDR\s0 dev \s-1IFACE\s0 | show|flush [dev \s-1IFACE\s0] [to \s-1PREFIX\s0]
  2031. .Sp
  2032. ipaddr add|change|replace|delete dev \s-1IFACE IFADDR\s0
  2033. \s-1IFADDR\s0 := \s-1PREFIX\s0 | \s-1ADDR\s0 peer \s-1PREFIX\s0 [broadcast ADDR|+|\-]
  2034. [anycast \s-1ADDR\s0] [label \s-1STRING\s0] [scope \s-1SCOPE\s0]
  2035. \s-1PREFIX\s0 := ADDR[/MASK]
  2036. \s-1SCOPE\s0 := [host|link|global|NUMBER]
  2037. ipaddr show|flush [dev \s-1IFACE\s0] [scope \s-1SCOPE\s0] [to \s-1PREFIX\s0] [label \s-1PATTERN\s0]
  2038. .IP "\fBipcalc\fR" 4
  2039. .IX Item "ipcalc"
  2040. ipcalc [\s-1OPTIONS\s0] ADDRESS[/PREFIX] [\s-1NETMASK\s0]
  2041. .Sp
  2042. Calculate and display network settings from \s-1IP\s0 address
  2043. .Sp
  2044. .Vb 6
  2045. \& \-b Broadcast address
  2046. \& \-n Network address
  2047. \& \-m Default netmask for IP
  2048. \& \-p Prefix for IP/NETMASK
  2049. \& \-h Resolved host name
  2050. \& \-s No error messages
  2051. .Ve
  2052. .IP "\fBipcrm\fR" 4
  2053. .IX Item "ipcrm"
  2054. ipcrm [\-MQS key] [\-mqs id]
  2055. .Sp
  2056. Upper-case options \s-1MQS\s0 remove an object by shmkey value.
  2057. Lower-case options remove an object by shmid value.
  2058. .Sp
  2059. .Vb 3
  2060. \& \-mM Remove memory segment after last detach
  2061. \& \-qQ Remove message queue
  2062. \& \-sS Remove semaphore
  2063. .Ve
  2064. .IP "\fBipcs\fR" 4
  2065. .IX Item "ipcs"
  2066. ipcs [[\-smq] \-i shmid] | [[\-asmq] [\-tcplu]]
  2067. .Sp
  2068. .Vb 2
  2069. \& \-i Show specific resource
  2070. \&Resource specification:
  2071. \&
  2072. \& \-m Shared memory segments
  2073. \& \-q Message queues
  2074. \& \-s Semaphore arrays
  2075. \& \-a All (default)
  2076. \&Output format:
  2077. \&
  2078. \& \-t Time
  2079. \& \-c Creator
  2080. \& \-p Pid
  2081. \& \-l Limits
  2082. \& \-u Summary
  2083. .Ve
  2084. .IP "\fBiplink\fR" 4
  2085. .IX Item "iplink"
  2086. iplink set \s-1IFACE\s0 [up|down] [arp on|off] | show [\s-1IFACE\s0]
  2087. .Sp
  2088. iplink set \s-1IFACE\s0 [up|down] [arp on|off] [multicast on|off] [promisc on|off]
  2089. [mtu \s-1NUM\s0] [name \s-1NAME\s0] [qlen \s-1NUM\s0] [address \s-1MAC\s0]
  2090. iplink show [\s-1IFACE\s0]
  2091. .IP "\fBipneigh\fR" 4
  2092. .IX Item "ipneigh"
  2093. ipneigh show|flush [to \s-1PREFIX\s0] [dev \s-1DEV\s0] [nud \s-1STATE\s0]
  2094. .IP "\fBiproute\fR" 4
  2095. .IX Item "iproute"
  2096. iproute list|flush|add|del|change|append|replace|test \s-1ROUTE\s0
  2097. .Sp
  2098. iproute list|flush \s-1SELECTOR\s0
  2099. \s-1SELECTOR\s0 := [root \s-1PREFIX\s0] [match \s-1PREFIX\s0] [proto \s-1RTPROTO\s0]
  2100. \s-1PREFIX\s0 := default|ADDR[/MASK]
  2101. iproute get \s-1ADDR\s0 [from \s-1ADDR\s0 iif \s-1IFACE\s0]
  2102. [oif \s-1IFACE\s0] [tos \s-1TOS\s0]
  2103. iproute add|del|change|append|replace|test \s-1ROUTE\s0
  2104. \s-1ROUTE\s0 := \s-1NODE_SPEC\s0 [\s-1INFO_SPEC\s0]
  2105. \s-1NODE_SPEC\s0 := \s-1PREFIX\s0 [table \s-1TABLE_ID\s0] [proto \s-1RTPROTO\s0] [scope \s-1SCOPE\s0] [metric \s-1METRIC\s0]
  2106. \s-1INFO_SPEC\s0 := \s-1NH OPTIONS\s0
  2107. \s-1NH\s0 := [via [inet|inet6] \s-1ADDR\s0] [dev \s-1IFACE\s0] [src \s-1ADDR\s0] [onlink]
  2108. \s-1OPTIONS\s0 := [mtu [lock] \s-1NUM\s0] [advmss [lock] \s-1NUM\s0]
  2109. .IP "\fBiprule\fR" 4
  2110. .IX Item "iprule"
  2111. iprule [list] | add|del \s-1SELECTOR ACTION\s0
  2112. .Sp
  2113. .Vb 6
  2114. \& SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK]
  2115. \& [dev IFACE] [pref NUMBER]
  2116. \& ACTION := [table TABLE_ID] [nat ADDR]
  2117. \& [prohibit|reject|unreachable]
  2118. \& [realms [SRCREALM/]DSTREALM]
  2119. \& TABLE_ID := [local|main|default|NUMBER]
  2120. .Ve
  2121. .IP "\fBiptunnel\fR" 4
  2122. .IX Item "iptunnel"
  2123. iptunnel add|change|del|show [\s-1NAME\s0]
  2124. [mode ipip|gre|sit]
  2125. [remote \s-1ADDR\s0] [local \s-1ADDR\s0] [ttl \s-1TTL\s0]
  2126. .Sp
  2127. iptunnel add|change|del|show [\s-1NAME\s0]
  2128. [mode ipip|gre|sit] [remote \s-1ADDR\s0] [local \s-1ADDR\s0]
  2129. [[i|o]seq] [[i|o]key \s-1KEY\s0] [[i|o]csum]
  2130. [ttl \s-1TTL\s0] [tos \s-1TOS\s0] [[no]pmtudisc] [dev \s-1PHYS_DEV\s0]
  2131. .IP "\fBkbd_mode\fR" 4
  2132. .IX Item "kbd_mode"
  2133. kbd_mode [\-a|k|s|u] [\-C \s-1TTY\s0]
  2134. .Sp
  2135. Report or set \s-1VT\s0 console keyboard mode
  2136. .Sp
  2137. .Vb 5
  2138. \& \-a Default (ASCII)
  2139. \& \-k Medium\-raw (keycode)
  2140. \& \-s Raw (scancode)
  2141. \& \-u Unicode (utf\-8)
  2142. \& \-C TTY Affect TTY
  2143. .Ve
  2144. .IP "\fBkill\fR" 4
  2145. .IX Item "kill"
  2146. kill [\-l] [\-SIG] \s-1PID...\s0
  2147. .Sp
  2148. Send a signal (default: \s-1TERM\s0) to given PIDs
  2149. .Sp
  2150. .Vb 1
  2151. \& \-l List all signal names and numbers
  2152. .Ve
  2153. .IP "\fBkillall\fR" 4
  2154. .IX Item "killall"
  2155. killall [\-l] [\-q] [\-SIG] \s-1PROCESS_NAME...\s0
  2156. .Sp
  2157. Send a signal (default: \s-1TERM\s0) to given processes
  2158. .Sp
  2159. .Vb 2
  2160. \& \-l List all signal names and numbers
  2161. \& \-q Don\*(Aqt complain if no processes were killed
  2162. .Ve
  2163. .IP "\fBkillall5\fR" 4
  2164. .IX Item "killall5"
  2165. killall5 [\-l] [\-SIG] [\-o \s-1PID\s0]...
  2166. .Sp
  2167. Send a signal (default: \s-1TERM\s0) to all processes outside current session
  2168. .Sp
  2169. .Vb 2
  2170. \& \-l List all signal names and numbers
  2171. \& \-o PID Don\*(Aqt signal this PID
  2172. .Ve
  2173. .IP "\fBklogd\fR" 4
  2174. .IX Item "klogd"
  2175. klogd [\-c N] [\-n]
  2176. .Sp
  2177. Kernel logger
  2178. .Sp
  2179. .Vb 2
  2180. \& \-c N Print to console messages more urgent than prio N (1\-8)
  2181. \& \-n Run in foreground
  2182. .Ve
  2183. .IP "\fBlast\fR" 4
  2184. .IX Item "last"
  2185. last [\-HW] [\-f \s-1FILE\s0]
  2186. .Sp
  2187. Show listing of the last users that logged into the system
  2188. .Sp
  2189. .Vb 2
  2190. \& \-W Display with no host column truncation
  2191. \& \-f FILE Read from FILE instead of /var/log/wtmp
  2192. .Ve
  2193. .IP "\fBless\fR" 4
  2194. .IX Item "less"
  2195. less [\-EIMmNSh~] [\s-1FILE\s0]...
  2196. .Sp
  2197. View \s-1FILE\s0 (or stdin) one screenful at a time
  2198. .Sp
  2199. .Vb 7
  2200. \& \-E Quit once the end of a file is reached
  2201. \& \-I Ignore case in all searches
  2202. \& \-M,\-m Display status line with line numbers
  2203. \& and percentage through the file
  2204. \& \-N Prefix line number to each line
  2205. \& \-S Truncate long lines
  2206. \& \-~ Suppress ~s displayed past EOF
  2207. .Ve
  2208. .IP "\fBlink\fR" 4
  2209. .IX Item "link"
  2210. link \s-1FILE LINK\s0
  2211. .Sp
  2212. Create hard \s-1LINK\s0 to \s-1FILE\s0
  2213. .IP "\fBln\fR" 4
  2214. .IX Item "ln"
  2215. ln [\s-1OPTIONS\s0] \s-1TARGET...\s0 LINK|DIR
  2216. .Sp
  2217. Create a link \s-1LINK\s0 or \s-1DIR/TARGET\s0 to the specified \s-1TARGET\s0(s)
  2218. .Sp
  2219. .Vb 7
  2220. \& \-s Make symlinks instead of hardlinks
  2221. \& \-f Remove existing destinations
  2222. \& \-n Don\*(Aqt dereference symlinks \- treat like normal file
  2223. \& \-b Make a backup of the target (if exists) before link operation
  2224. \& \-S suf Use suffix instead of ~ when making backup files
  2225. \& \-T 2nd arg must be a DIR
  2226. \& \-v Verbose
  2227. .Ve
  2228. .IP "\fBloadfont\fR" 4
  2229. .IX Item "loadfont"
  2230. loadfont < font
  2231. .Sp
  2232. Load a console font from stdin
  2233. .IP "\fBloadkmap\fR" 4
  2234. .IX Item "loadkmap"
  2235. loadkmap < keymap
  2236. .Sp
  2237. Load a binary keyboard translation table from stdin
  2238. .IP "\fBlogger\fR" 4
  2239. .IX Item "logger"
  2240. logger [\s-1OPTIONS\s0] [\s-1MESSAGE\s0]
  2241. .Sp
  2242. Write \s-1MESSAGE\s0 (or stdin) to syslog
  2243. .Sp
  2244. .Vb 3
  2245. \& \-s Log to stderr as well as the system log
  2246. \& \-t TAG Log using the specified tag (defaults to user name)
  2247. \& \-p PRIO Priority (numeric or facility.level pair)
  2248. .Ve
  2249. .IP "\fBlogin\fR" 4
  2250. .IX Item "login"
  2251. login [\-p] [\-h \s-1HOST\s0] [[\-f] \s-1USER\s0]
  2252. .Sp
  2253. Begin a new session on the system
  2254. .Sp
  2255. .Vb 3
  2256. \& \-f Don\*(Aqt authenticate (user already authenticated)
  2257. \& \-h HOST Host user came from (for network logins)
  2258. \& \-p Preserve environment
  2259. .Ve
  2260. .IP "\fBlogname\fR" 4
  2261. .IX Item "logname"
  2262. logname
  2263. .Sp
  2264. Print the name of the current user
  2265. .IP "\fBlogread\fR" 4
  2266. .IX Item "logread"
  2267. logread [\-fF]
  2268. .Sp
  2269. Show messages in syslogd's circular buffer
  2270. .Sp
  2271. .Vb 2
  2272. \& \-f Output data as log grows
  2273. \& \-F Same as \-f, but dump buffer first
  2274. .Ve
  2275. .IP "\fBlosetup\fR" 4
  2276. .IX Item "losetup"
  2277. losetup [\-r] [\-o \s-1OFS\s0] {\-f|LOOPDEV} \s-1FILE\s0 \- associate loop devices
  2278. losetup \-d \s-1LOOPDEV\s0 \- disassociate
  2279. losetup \-a \- show status
  2280. losetup \-f \- show next free loop device
  2281. .Sp
  2282. .Vb 3
  2283. \& \-o OFS Start OFS bytes into FILE
  2284. \& \-r Read\-only
  2285. \& \-f Show/use next free loop device
  2286. .Ve
  2287. .IP "\fBlpd\fR" 4
  2288. .IX Item "lpd"
  2289. lpd \s-1SPOOLDIR\s0 [\s-1HELPER\s0 [\s-1ARGS\s0]]
  2290. .Sp
  2291. \&\s-1SPOOLDIR\s0 must contain (symlinks to) device nodes or directories
  2292. with names matching print queue names. In the first case, jobs are
  2293. sent directly to the device. Otherwise each job is stored in queue
  2294. directory and \s-1HELPER\s0 program is called. Name of file to print
  2295. is passed in \f(CW$DATAFILE\fR variable.
  2296. Example:
  2297. .Sp
  2298. .Vb 1
  2299. \& tcpsvd \-E 0 515 softlimit \-m 999999 lpd /var/spool ./print
  2300. .Ve
  2301. .IP "\fBlpq\fR" 4
  2302. .IX Item "lpq"
  2303. lpq [\-P queue[@host[:port]]] [\-U \s-1USERNAME\s0] [\-d \s-1JOBID\s0]... [\-fs]
  2304. .Sp
  2305. .Vb 4
  2306. \& \-P lp service to connect to (else uses $PRINTER)
  2307. \& \-d Delete jobs
  2308. \& \-f Force any waiting job to be printed
  2309. \& \-s Short display
  2310. .Ve
  2311. .IP "\fBlpr\fR" 4
  2312. .IX Item "lpr"
  2313. lpr \-P queue[@host[:port]] \-U \s-1USERNAME\s0 \-J \s-1TITLE\s0 \-Vmh [\s-1FILE\s0]...
  2314. .Sp
  2315. .Vb 4
  2316. \& \-P lp service to connect to (else uses $PRINTER)
  2317. \& \-m Send mail on completion
  2318. \& \-h Print banner page too
  2319. \& \-V Verbose
  2320. .Ve
  2321. .IP "\fBls\fR" 4
  2322. .IX Item "ls"
  2323. ls [\-1AaCxdLHRFplinshrSXvctu] [\-w \s-1WIDTH\s0] [\s-1FILE\s0]...
  2324. .Sp
  2325. List directory contents
  2326. .Sp
  2327. .Vb 10
  2328. \& \-1 One column output
  2329. \& \-a Include entries which start with .
  2330. \& \-A Like \-a, but exclude . and ..
  2331. \& \-x List by lines
  2332. \& \-d List directory entries instead of contents
  2333. \& \-L Follow symlinks
  2334. \& \-H Follow symlinks on command line
  2335. \& \-R Recurse
  2336. \& \-p Append / to dir entries
  2337. \& \-F Append indicator (one of */=@|) to entries
  2338. \& \-l Long listing format
  2339. \& \-i List inode numbers
  2340. \& \-n List numeric UIDs and GIDs instead of names
  2341. \& \-s List allocated blocks
  2342. \& \-lc List ctime
  2343. \& \-lu List atime
  2344. \& \-\-full\-time List full date and time
  2345. \& \-h Human readable sizes (1K 243M 2G)
  2346. \& \-\-group\-directories\-first
  2347. \& \-S Sort by size
  2348. \& \-X Sort by extension
  2349. \& \-v Sort by version
  2350. \& \-t Sort by mtime
  2351. \& \-tc Sort by ctime
  2352. \& \-tu Sort by atime
  2353. \& \-r Reverse sort order
  2354. \& \-w N Format N columns wide
  2355. \& \-\-color[={always,never,auto}] Control coloring
  2356. .Ve
  2357. .IP "\fBlsattr\fR" 4
  2358. .IX Item "lsattr"
  2359. lsattr [\-Radlv] [\s-1FILE\s0]...
  2360. .Sp
  2361. List ext2 file attributes
  2362. .Sp
  2363. .Vb 5
  2364. \& \-R Recurse
  2365. \& \-a Don\*(Aqt hide entries starting with .
  2366. \& \-d List directory entries instead of contents
  2367. \& \-l List long flag names
  2368. \& \-v List version/generation number
  2369. .Ve
  2370. .IP "\fBlsmod\fR" 4
  2371. .IX Item "lsmod"
  2372. lsmod
  2373. .Sp
  2374. List loaded kernel modules
  2375. .IP "\fBlsof\fR" 4
  2376. .IX Item "lsof"
  2377. lsof
  2378. .Sp
  2379. Show all open files
  2380. .IP "\fBlspci\fR" 4
  2381. .IX Item "lspci"
  2382. lspci [\-mk]
  2383. .Sp
  2384. List all \s-1PCI\s0 devices
  2385. .Sp
  2386. .Vb 2
  2387. \& \-m Parsable output
  2388. \& \-k Show driver
  2389. .Ve
  2390. .IP "\fBlzcat\fR" 4
  2391. .IX Item "lzcat"
  2392. lzcat [\s-1FILE\s0]...
  2393. .Sp
  2394. Decompress to stdout
  2395. .IP "\fBlzma\fR" 4
  2396. .IX Item "lzma"
  2397. lzma \-d [\-cfk] [\s-1FILE\s0]...
  2398. .Sp
  2399. Decompress \s-1FILE\s0 (or stdin)
  2400. .Sp
  2401. .Vb 4
  2402. \& \-d Decompress
  2403. \& \-c Write to stdout
  2404. \& \-f Force
  2405. \& \-k Keep input files
  2406. .Ve
  2407. .IP "\fBlzop\fR" 4
  2408. .IX Item "lzop"
  2409. lzop [\-cfUvd123456789CF] [\s-1FILE\s0]...
  2410. .Sp
  2411. .Vb 8
  2412. \& \-1..9 Compression level
  2413. \& \-d Decompress
  2414. \& \-c Write to stdout
  2415. \& \-f Force
  2416. \& \-U Delete input files
  2417. \& \-v Verbose
  2418. \& \-F Don\*(Aqt store or verify checksum
  2419. \& \-C Also write checksum of compressed block
  2420. .Ve
  2421. .IP "\fBmakedevs\fR" 4
  2422. .IX Item "makedevs"
  2423. makedevs [\-d device_table] rootdir
  2424. .Sp
  2425. Create a range of special files as specified in a device table.
  2426. Device table entries take the form of:
  2427. .Sp
  2428. <name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>
  2429. Where name is the file name, type can be one of:
  2430. f Regular file
  2431. d Directory
  2432. c Character device
  2433. b Block device
  2434. p Fifo (named pipe)
  2435. uid is the user id for the target file, gid is the group id for the
  2436. target file. The rest of the entries (major, minor, etc) apply to
  2437. to device special files. A '\-' may be used for blank entries.
  2438. .IP "\fBmakemime\fR" 4
  2439. .IX Item "makemime"
  2440. makemime [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  2441. .Sp
  2442. Create multipart MIME-encoded message from FILEs
  2443. .Sp
  2444. .Vb 5
  2445. \& \-o FILE Output. Default: stdout
  2446. \& \-a HDR Add header(s). Examples:
  2447. \& "From: user@host.org", "Date: \`date \-R\`"
  2448. \& \-c CT Content type. Default: application/octet\-stream
  2449. \& \-C CS Charset. Default: us\-ascii
  2450. .Ve
  2451. .Sp
  2452. Other options are silently ignored
  2453. .IP "\fBman\fR" 4
  2454. .IX Item "man"
  2455. man [\-aw] [\s-1MANPAGE\s0]...
  2456. .Sp
  2457. Format and display manual page
  2458. .Sp
  2459. .Vb 2
  2460. \& \-a Display all pages
  2461. \& \-w Show page locations
  2462. .Ve
  2463. .Sp
  2464. \&\f(CW$COLUMNS\fR overrides output width
  2465. .IP "\fBmd5sum\fR" 4
  2466. .IX Item "md5sum"
  2467. md5sum [\-c[sw]] [\s-1FILE\s0]...
  2468. .Sp
  2469. Print or check \s-1MD5\s0 checksums
  2470. .Sp
  2471. .Vb 3
  2472. \& \-c Check sums against list in FILEs
  2473. \& \-s Don\*(Aqt output anything, status code shows success
  2474. \& \-w Warn about improperly formatted checksum lines
  2475. .Ve
  2476. .IP "\fBmdev\fR" 4
  2477. .IX Item "mdev"
  2478. mdev [\-s]
  2479. .Sp
  2480. mdev \-s is to be run during boot to scan /sys and populate /dev.
  2481. .Sp
  2482. Bare mdev is a kernel hotplug helper. To activate it:
  2483. echo /sbin/mdev >/proc/sys/kernel/hotplug
  2484. .Sp
  2485. It uses /etc/mdev.conf with lines
  2486. [\-][ENV=regex;]...DEVNAME \s-1UID:GID PERM\s0 [>|=PATH]|[!] [@|$|*PROG]
  2487. where \s-1DEVNAME\s0 is device name regex, \f(CW@major\fR,minor[\-minor2], or
  2488. environment variable regex. A common use of the latter is
  2489. to load modules for hotplugged devices:
  2490. .Sp
  2491. .Vb 1
  2492. \& $MODALIAS=.* 0:0 660 @modprobe "$MODALIAS"
  2493. .Ve
  2494. .Sp
  2495. If /dev/mdev.seq file exists, mdev will wait for its value
  2496. to match \f(CW$SEQNUM\fR variable. This prevents plug/unplug races.
  2497. To activate this feature, create empty /dev/mdev.seq at boot.
  2498. .Sp
  2499. If /dev/mdev.log file exists, debug log will be appended to it.
  2500. .IP "\fBmesg\fR" 4
  2501. .IX Item "mesg"
  2502. mesg [y|n]
  2503. .Sp
  2504. Control write access to your terminal
  2505. y Allow write access to your terminal
  2506. n Disallow write access to your terminal
  2507. .IP "\fBmicrocom\fR" 4
  2508. .IX Item "microcom"
  2509. microcom [\-d \s-1DELAY\s0] [\-t \s-1TIMEOUT\s0] [\-s \s-1SPEED\s0] [\-X] \s-1TTY\s0
  2510. .Sp
  2511. Copy bytes for stdin to \s-1TTY\s0 and from \s-1TTY\s0 to stdout
  2512. .Sp
  2513. .Vb 5
  2514. \& \-d Wait up to DELAY ms for TTY output before sending every
  2515. \& next byte to it
  2516. \& \-t Exit if both stdin and TTY are silent for TIMEOUT ms
  2517. \& \-s Set serial line to SPEED
  2518. \& \-X Disable special meaning of NUL and Ctrl\-X from stdin
  2519. .Ve
  2520. .IP "\fBmkdir\fR" 4
  2521. .IX Item "mkdir"
  2522. mkdir [\s-1OPTIONS\s0] \s-1DIRECTORY...\s0
  2523. .Sp
  2524. Create \s-1DIRECTORY\s0
  2525. .Sp
  2526. .Vb 2
  2527. \& \-m MODE Mode
  2528. \& \-p No error if exists; make parent directories as needed
  2529. .Ve
  2530. .IP "\fBmkdosfs\fR" 4
  2531. .IX Item "mkdosfs"
  2532. mkdosfs [\-v] [\-n \s-1LABEL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0]
  2533. .Sp
  2534. Make a \s-1FAT32\s0 filesystem
  2535. .Sp
  2536. .Vb 2
  2537. \& \-v Verbose
  2538. \& \-n LBL Volume label
  2539. .Ve
  2540. .IP "\fBmke2fs\fR" 4
  2541. .IX Item "mke2fs"
  2542. mke2fs [\-Fn] [\-b \s-1BLK_SIZE\s0] [\-i \s-1INODE_RATIO\s0] [\-I \s-1INODE_SIZE\s0] [\-m \s-1RESERVED_PERCENT\s0] [\-L \s-1LABEL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0]
  2543. .Sp
  2544. .Vb 7
  2545. \& \-b BLK_SIZE Block size, bytes
  2546. \& \-F Force
  2547. \& \-i RATIO Max number of files is filesystem_size / RATIO
  2548. \& \-I BYTES Inode size (min 128)
  2549. \& \-L LBL Volume label
  2550. \& \-m PERCENT Percent of blocks to reserve for admin
  2551. \& \-n Dry run
  2552. .Ve
  2553. .IP "\fBmkfifo\fR" 4
  2554. .IX Item "mkfifo"
  2555. mkfifo [\-m \s-1MODE\s0] \s-1NAME\s0
  2556. .Sp
  2557. Create named pipe
  2558. .Sp
  2559. .Vb 1
  2560. \& \-m MODE Mode (default a=rw)
  2561. .Ve
  2562. .IP "\fBmkfs.ext2\fR" 4
  2563. .IX Item "mkfs.ext2"
  2564. mkfs.ext2 [\-Fn] [\-b \s-1BLK_SIZE\s0] [\-i \s-1INODE_RATIO\s0] [\-I \s-1INODE_SIZE\s0] [\-m \s-1RESERVED_PERCENT\s0] [\-L \s-1LABEL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0]
  2565. .Sp
  2566. .Vb 7
  2567. \& \-b BLK_SIZE Block size, bytes
  2568. \& \-F Force
  2569. \& \-i RATIO Max number of files is filesystem_size / RATIO
  2570. \& \-I BYTES Inode size (min 128)
  2571. \& \-L LBL Volume label
  2572. \& \-m PERCENT Percent of blocks to reserve for admin
  2573. \& \-n Dry run
  2574. .Ve
  2575. .IP "\fBmkfs.minix\fR" 4
  2576. .IX Item "mkfs.minix"
  2577. mkfs.minix [\-c | \-l \s-1FILE\s0] [\-nXX] [\-iXX] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0]
  2578. .Sp
  2579. Make a \s-1MINIX\s0 filesystem
  2580. .Sp
  2581. .Vb 5
  2582. \& \-c Check device for bad blocks
  2583. \& \-n [14|30] Maximum length of filenames
  2584. \& \-i INODES Number of inodes for the filesystem
  2585. \& \-l FILE Read bad blocks list from FILE
  2586. \& \-v Make version 2 filesystem
  2587. .Ve
  2588. .IP "\fBmkfs.vfat\fR" 4
  2589. .IX Item "mkfs.vfat"
  2590. mkfs.vfat [\-v] [\-n \s-1LABEL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0]
  2591. .Sp
  2592. Make a \s-1FAT32\s0 filesystem
  2593. .Sp
  2594. .Vb 2
  2595. \& \-v Verbose
  2596. \& \-n LBL Volume label
  2597. .Ve
  2598. .IP "\fBmknod\fR" 4
  2599. .IX Item "mknod"
  2600. mknod [\-m \s-1MODE\s0] \s-1NAME TYPE MAJOR MINOR\s0
  2601. .Sp
  2602. Create a special file (block, character, or pipe)
  2603. .Sp
  2604. .Vb 5
  2605. \& \-m MODE Creation mode (default a=rw)
  2606. \&TYPE:
  2607. \& b Block device
  2608. \& c or u Character device
  2609. \& p Named pipe (MAJOR and MINOR are ignored)
  2610. .Ve
  2611. .IP "\fBmkpasswd\fR" 4
  2612. .IX Item "mkpasswd"
  2613. mkpasswd [\s-1OPTIONS\s0] [\s-1PASSWORD\s0] [\s-1SALT\s0]
  2614. .Sp
  2615. Print \fIcrypt\fR\|(3) hashed \s-1PASSWORD\s0
  2616. .Sp
  2617. .Vb 3
  2618. \& \-P,\-\-password\-fd N Read password from fd N
  2619. \& \-m,\-\-method TYPE des,md5,sha256/512 (default des)
  2620. \& \-S,\-\-salt SALT
  2621. .Ve
  2622. .IP "\fBmkswap\fR" 4
  2623. .IX Item "mkswap"
  2624. mkswap [\-L \s-1LBL\s0] \s-1BLOCKDEV\s0 [\s-1KBYTES\s0]
  2625. .Sp
  2626. Prepare \s-1BLOCKDEV\s0 to be used as swap partition
  2627. .Sp
  2628. .Vb 1
  2629. \& \-L LBL Label
  2630. .Ve
  2631. .IP "\fBmktemp\fR" 4
  2632. .IX Item "mktemp"
  2633. mktemp [\-dt] [\-p \s-1DIR\s0] [\s-1TEMPLATE\s0]
  2634. .Sp
  2635. Create a temporary file with name based on \s-1TEMPLATE\s0 and print its name.
  2636. \&\s-1TEMPLATE\s0 must end with \s-1XXXXXX\s0 (e.g. [/dir/]nameXXXXXX).
  2637. Without \s-1TEMPLATE,\s0 \-t tmp.XXXXXX is assumed.
  2638. .Sp
  2639. .Vb 5
  2640. \& \-d Make directory, not file
  2641. \& \-q Fail silently on errors
  2642. \& \-t Prepend base directory name to TEMPLATE
  2643. \& \-p DIR Use DIR as a base directory (implies \-t)
  2644. \& \-u Do not create anything; print a name
  2645. .Ve
  2646. .Sp
  2647. Base directory is: \-p \s-1DIR,\s0 else \f(CW$TMPDIR\fR, else /tmp
  2648. .IP "\fBmodinfo\fR" 4
  2649. .IX Item "modinfo"
  2650. modinfo [\-adlpn0] [\-F keyword] \s-1MODULE\s0
  2651. .Sp
  2652. .Vb 6
  2653. \& \-a Shortcut for \*(Aq\-F author\*(Aq
  2654. \& \-d Shortcut for \*(Aq\-F description\*(Aq
  2655. \& \-l Shortcut for \*(Aq\-F license\*(Aq
  2656. \& \-p Shortcut for \*(Aq\-F parm\*(Aq
  2657. \& \-F keyword Keyword to look for
  2658. \& \-0 Separate output with NULs
  2659. .Ve
  2660. .IP "\fBmodprobe\fR" 4
  2661. .IX Item "modprobe"
  2662. modprobe [\-rq] \s-1MODULE\s0 [SYMBOL=VALUE]...
  2663. .Sp
  2664. .Vb 2
  2665. \& \-r Remove MODULE
  2666. \& \-q Quiet
  2667. .Ve
  2668. .IP "\fBmore\fR" 4
  2669. .IX Item "more"
  2670. more [\s-1FILE\s0]...
  2671. .Sp
  2672. View \s-1FILE\s0 (or stdin) one screenful at a time
  2673. .IP "\fBmount\fR" 4
  2674. .IX Item "mount"
  2675. mount [\s-1OPTIONS\s0] [\-o \s-1OPT\s0] \s-1DEVICE NODE\s0
  2676. .Sp
  2677. Mount a filesystem. Filesystem autodetection requires /proc.
  2678. .Sp
  2679. .Vb 10
  2680. \& \-a Mount all filesystems in fstab
  2681. \& \-f Dry run
  2682. \& \-v Verbose
  2683. \& \-r Read\-only mount
  2684. \& \-t FSTYPE[,...] Filesystem type(s)
  2685. \& \-T FILE Read FILE instead of /etc/fstab
  2686. \& \-O OPT Mount only filesystems with option OPT (\-a only)
  2687. \&\-o OPT:
  2688. \& loop Ignored (loop devices are autodetected)
  2689. \& [a]sync Writes are [a]synchronous
  2690. \& [no]atime Disable/enable updates to inode access times
  2691. \& [no]diratime Disable/enable atime updates to directories
  2692. \& [no]relatime Disable/enable atime updates relative to modification time
  2693. \& [no]dev (Dis)allow use of special device files
  2694. \& [no]exec (Dis)allow use of executable files
  2695. \& [no]suid (Dis)allow set\-user\-id\-root programs
  2696. \& [r]shared Convert [recursively] to a shared subtree
  2697. \& [r]slave Convert [recursively] to a slave subtree
  2698. \& [r]private Convert [recursively] to a private subtree
  2699. \& [un]bindable Make mount point [un]able to be bind mounted
  2700. \& [r]bind Bind a file or directory [recursively] to another location
  2701. \& move Relocate an existing mount point
  2702. \& remount Remount a mounted filesystem, changing flags
  2703. \& ro Same as \-r
  2704. .Ve
  2705. .Sp
  2706. There are filesystem-specific \-o flags.
  2707. .IP "\fBmountpoint\fR" 4
  2708. .IX Item "mountpoint"
  2709. mountpoint [\-q] <[\-dn] \s-1DIR\s0 | \-x \s-1DEVICE\s0>
  2710. .Sp
  2711. Check if the directory is a mountpoint
  2712. .Sp
  2713. .Vb 4
  2714. \& \-q Quiet
  2715. \& \-d Print major/minor device number of the filesystem
  2716. \& \-n Print device name of the filesystem
  2717. \& \-x Print major/minor device number of the blockdevice
  2718. .Ve
  2719. .IP "\fBmpstat\fR" 4
  2720. .IX Item "mpstat"
  2721. mpstat [\-A] [\-I SUM|CPU|ALL|SCPU] [\-u] [\-P num|ALL] [\s-1INTERVAL\s0 [\s-1COUNT\s0]]
  2722. .Sp
  2723. Per-processor statistics
  2724. .Sp
  2725. .Vb 4
  2726. \& \-A Same as \-I ALL \-u \-P ALL
  2727. \& \-I SUM|CPU|ALL|SCPU Report interrupt statistics
  2728. \& \-P num|ALL Processor to monitor
  2729. \& \-u Report CPU utilization
  2730. .Ve
  2731. .IP "\fBmt\fR" 4
  2732. .IX Item "mt"
  2733. mt [\-f device] opcode value
  2734. .Sp
  2735. Control magnetic tape drive operation
  2736. .Sp
  2737. Available Opcodes:
  2738. .Sp
  2739. bsf bsfm bsr bss datacompression drvbuffer eof eom erase
  2740. fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2
  2741. ras3 reset retension rewind rewoffline seek setblk setdensity
  2742. setpart tell unload unlock weof wset
  2743. .IP "\fBmv\fR" 4
  2744. .IX Item "mv"
  2745. mv [\-fin] \s-1SOURCE DEST\s0
  2746. or: mv [\-fin] \s-1SOURCE... DIRECTORY\s0
  2747. .Sp
  2748. Rename \s-1SOURCE\s0 to \s-1DEST,\s0 or move \s-1SOURCE\s0(s) to \s-1DIRECTORY\s0
  2749. .Sp
  2750. .Vb 3
  2751. \& \-f Don\*(Aqt prompt before overwriting
  2752. \& \-i Interactive, prompt before overwrite
  2753. \& \-n Don\*(Aqt overwrite an existing file
  2754. .Ve
  2755. .IP "\fBnameif\fR" 4
  2756. .IX Item "nameif"
  2757. nameif [\-s] [\-c \s-1FILE\s0] [\s-1IFNAME SELECTOR\s0]...
  2758. .Sp
  2759. Rename network interface while it in the down state.
  2760. The device matched by \s-1SELECTOR\s0 is renamed to \s-1IFACE.
  2761. SELECTOR\s0 can be a combination of:
  2762. .Sp
  2763. .Vb 4
  2764. \& driver=STRING
  2765. \& bus=STRING
  2766. \& phy_address=NUM
  2767. \& [mac=]XX:XX:XX:XX:XX:XX
  2768. \&
  2769. \& \-c FILE Configuration file (default: /etc/mactab)
  2770. \& \-s Log to syslog
  2771. .Ve
  2772. .IP "\fBnanddump\fR" 4
  2773. .IX Item "nanddump"
  2774. nanddump [\-no] [\-\-bb padbad|skipbad] [\-s \s-1ADDR\s0] [\-l \s-1LEN\s0] [\-f \s-1FILE\s0] \s-1MTD_DEVICE\s0
  2775. .Sp
  2776. Dump \s-1MTD_DEVICE\s0
  2777. .Sp
  2778. .Vb 8
  2779. \& \-n Read without ecc
  2780. \& \-o Dump oob data
  2781. \& \-s ADDR Start address
  2782. \& \-l LEN Length
  2783. \& \-f FILE Dump to file (\*(Aq\-\*(Aq for stdout)
  2784. \& \-\-bb METHOD
  2785. \& skipbad: skip bad blocks
  2786. \& padbad: substitute bad blocks by 0xff (default)
  2787. .Ve
  2788. .IP "\fBnandwrite\fR" 4
  2789. .IX Item "nandwrite"
  2790. nandwrite [\-np] [\-s \s-1ADDR\s0] \s-1MTD_DEVICE\s0 [\s-1FILE\s0]
  2791. .Sp
  2792. Write to \s-1MTD_DEVICE\s0
  2793. .Sp
  2794. .Vb 3
  2795. \& \-n Write without ecc
  2796. \& \-p Pad to page size
  2797. \& \-s ADDR Start address
  2798. .Ve
  2799. .IP "\fBnbd-client\fR" 4
  2800. .IX Item "nbd-client"
  2801. nbd-client \s-1HOST PORT BLOCKDEV\s0
  2802. .Sp
  2803. Connect to \s-1HOST\s0 and provide a network block device on \s-1BLOCKDEV\s0
  2804. .IP "\fBnc\fR" 4
  2805. .IX Item "nc"
  2806. nc [\s-1OPTIONS\s0] \s-1HOST PORT\s0 \- connect
  2807. nc [\s-1OPTIONS\s0] \-l \-p \s-1PORT\s0 [\s-1HOST\s0] [\s-1PORT\s0] \- listen
  2808. .Sp
  2809. .Vb 12
  2810. \& \-e PROG Run PROG after connect (must be last)
  2811. \& \-l Listen mode, for inbound connects
  2812. \& \-lk With \-e, provides persistent server
  2813. \& \-p PORT Local port
  2814. \& \-s ADDR Local address
  2815. \& \-w SEC Timeout for connects and final net reads
  2816. \& \-i SEC Delay interval for lines sent
  2817. \& \-n Don\*(Aqt do DNS resolution
  2818. \& \-u UDP mode
  2819. \& \-v Verbose
  2820. \& \-o FILE Hex dump traffic
  2821. \& \-z Zero\-I/O mode (scanning)
  2822. .Ve
  2823. .IP "\fBnetstat\fR" 4
  2824. .IX Item "netstat"
  2825. netstat [\-ral] [\-tuwx] [\-enWp]
  2826. .Sp
  2827. Display networking information
  2828. .Sp
  2829. .Vb 10
  2830. \& \-r Routing table
  2831. \& \-a All sockets
  2832. \& \-l Listening sockets
  2833. \& Else: connected sockets
  2834. \& \-t TCP sockets
  2835. \& \-u UDP sockets
  2836. \& \-w Raw sockets
  2837. \& \-x Unix sockets
  2838. \& Else: all socket types
  2839. \& \-e Other/more information
  2840. \& \-n Don\*(Aqt resolve names
  2841. \& \-W Wide display
  2842. \& \-p Show PID/program name for sockets
  2843. .Ve
  2844. .IP "\fBnice\fR" 4
  2845. .IX Item "nice"
  2846. nice [\-n \s-1ADJUST\s0] [\s-1PROG ARGS\s0]
  2847. .Sp
  2848. Change scheduling priority, run \s-1PROG\s0
  2849. .Sp
  2850. .Vb 1
  2851. \& \-n ADJUST Adjust priority by ADJUST
  2852. .Ve
  2853. .IP "\fBnl\fR" 4
  2854. .IX Item "nl"
  2855. nl [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  2856. .Sp
  2857. Write FILEs to standard output with line numbers added
  2858. .Sp
  2859. .Vb 5
  2860. \& \-b STYLE Which lines to number \- a: all, t: nonempty, n: none
  2861. \& \-i N Line number increment
  2862. \& \-s STRING Use STRING as line number separator
  2863. \& \-v N Start from N
  2864. \& \-w N Width of line numbers
  2865. .Ve
  2866. .IP "\fBnmeter\fR" 4
  2867. .IX Item "nmeter"
  2868. nmeter [\-d \s-1MSEC\s0] \s-1FORMAT_STRING\s0
  2869. .Sp
  2870. Monitor system in real time
  2871. .Sp
  2872. .Vb 1
  2873. \& \-d MSEC Milliseconds between updates, default:1000, none:\-1
  2874. .Ve
  2875. .Sp
  2876. Format specifiers:
  2877. .Sp
  2878. .Vb 10
  2879. \& %Nc or %[cN] CPU. N \- bar size (default 10)
  2880. \& (displays: S:system U:user N:niced D:iowait I:irq i:softirq)
  2881. \& %[nINTERFACE] Network INTERFACE
  2882. \& %m Allocated memory
  2883. \& %[mf] Free memory
  2884. \& %[mt] Total memory
  2885. \& %s Allocated swap
  2886. \& %f Number of used file descriptors
  2887. \& %Ni Total/specific IRQ rate
  2888. \& %x Context switch rate
  2889. \& %p Forks
  2890. \& %[pn] # of processes
  2891. \& %b Block io
  2892. \& %Nt Time (with N decimal points)
  2893. \& %r Print <cr> instead of <lf> at EOL
  2894. .Ve
  2895. .IP "\fBnohup\fR" 4
  2896. .IX Item "nohup"
  2897. nohup \s-1PROG ARGS\s0
  2898. .Sp
  2899. Run \s-1PROG\s0 immune to hangups, with output to a non-tty
  2900. .IP "\fBnproc\fR" 4
  2901. .IX Item "nproc"
  2902. nproc
  2903. .Sp
  2904. Print number of CPUs
  2905. .IP "\fBnsenter\fR" 4
  2906. .IX Item "nsenter"
  2907. nsenter [\s-1OPTIONS\s0] [\s-1PROG\s0 [\s-1ARGS\s0]]
  2908. .Sp
  2909. .Vb 10
  2910. \& \-t PID Target process to get namespaces from
  2911. \& \-m[FILE] Enter mount namespace
  2912. \& \-u[FILE] Enter UTS namespace (hostname etc)
  2913. \& \-i[FILE] Enter System V IPC namespace
  2914. \& \-n[FILE] Enter network namespace
  2915. \& \-p[FILE] Enter pid namespace
  2916. \& \-U[FILE] Enter user namespace
  2917. \& \-S UID Set uid in entered namespace
  2918. \& \-G GID Set gid in entered namespace
  2919. \& \-\-preserve\-credentials Don\*(Aqt touch uids or gids
  2920. \& \-r[DIR] Set root directory
  2921. \& \-w[DIR] Set working directory
  2922. \& \-F Don\*(Aqt fork before exec\*(Aqing PROG
  2923. .Ve
  2924. .IP "\fBnslookup\fR" 4
  2925. .IX Item "nslookup"
  2926. nslookup [\s-1HOST\s0] [\s-1SERVER\s0]
  2927. .Sp
  2928. Query the nameserver for the \s-1IP\s0 address of the given \s-1HOST\s0
  2929. optionally using a specified \s-1DNS\s0 server
  2930. .IP "\fBntpd\fR" 4
  2931. .IX Item "ntpd"
  2932. ntpd [\-dnqNwl \-I \s-1IFACE\s0] [\-S \s-1PROG\s0] [\-p \s-1PEER\s0]...
  2933. .Sp
  2934. \&\s-1NTP\s0 client/server
  2935. .Sp
  2936. .Vb 11
  2937. \& \-d Verbose (may be repeated)
  2938. \& \-n Do not daemonize
  2939. \& \-q Quit after clock is set
  2940. \& \-N Run at high priority
  2941. \& \-w Do not set time (only query peers), implies \-n
  2942. \& \-S PROG Run PROG after stepping time, stratum change, and every 11 mins
  2943. \& \-p PEER Obtain time from PEER (may be repeated)
  2944. \& If \-p is not given, \*(Aqserver HOST\*(Aq lines
  2945. \& from /etc/ntp.conf are used
  2946. \& \-l Also run as server on port 123
  2947. \& \-I IFACE Bind server to IFACE, implies \-l
  2948. .Ve
  2949. .IP "\fBnuke\fR" 4
  2950. .IX Item "nuke"
  2951. nuke \s-1DIR...\s0
  2952. .Sp
  2953. Remove DIRs
  2954. .IP "\fBod\fR" 4
  2955. .IX Item "od"
  2956. od [\-abcdfhilovxs] [\-t \s-1TYPE\s0] [\-A \s-1RADIX\s0] [\-N \s-1SIZE\s0] [\-j \s-1SKIP\s0] [\-S \s-1MINSTR\s0] [\-w \s-1WIDTH\s0] [\s-1FILE\s0]...
  2957. .Sp
  2958. Print FILEs (or stdin) unambiguously, as octal bytes by default
  2959. .IP "\fBopenvt\fR" 4
  2960. .IX Item "openvt"
  2961. openvt [\-c N] [\-sw] [\s-1PROG ARGS\s0]
  2962. .Sp
  2963. Start \s-1PROG\s0 on a new virtual terminal
  2964. .Sp
  2965. .Vb 3
  2966. \& \-c N Use specified VT
  2967. \& \-s Switch to the VT
  2968. \& \-w Wait for PROG to exit
  2969. .Ve
  2970. .IP "\fBpartprobe\fR" 4
  2971. .IX Item "partprobe"
  2972. partprobe \s-1DEVICE...\s0
  2973. .Sp
  2974. Ask kernel to rescan partition table
  2975. .IP "\fBpasswd\fR" 4
  2976. .IX Item "passwd"
  2977. passwd [\s-1OPTIONS\s0] [\s-1USER\s0]
  2978. .Sp
  2979. Change \s-1USER\s0's password (default: current user)
  2980. .Sp
  2981. .Vb 4
  2982. \& \-a ALG des,md5,sha256/512 (default des)
  2983. \& \-d Set password to \*(Aq\*(Aq
  2984. \& \-l Lock (disable) account
  2985. \& \-u Unlock (enable) account
  2986. .Ve
  2987. .IP "\fBpaste\fR" 4
  2988. .IX Item "paste"
  2989. paste [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  2990. .Sp
  2991. Paste lines from each input file, separated with tab
  2992. .Sp
  2993. .Vb 2
  2994. \& \-d LIST Use delimiters from LIST, not tab
  2995. \& \-s Serial: one file at a time
  2996. .Ve
  2997. .IP "\fBpatch\fR" 4
  2998. .IX Item "patch"
  2999. patch [\s-1OPTIONS\s0] [\s-1ORIGFILE\s0 [\s-1PATCHFILE\s0]]
  3000. .Sp
  3001. .Vb 5
  3002. \& \-p,\-\-strip N Strip N leading components from file names
  3003. \& \-i,\-\-input DIFF Read DIFF instead of stdin
  3004. \& \-R,\-\-reverse Reverse patch
  3005. \& \-N,\-\-forward Ignore already applied patches
  3006. \& \-E,\-\-remove\-empty\-files Remove output files if they become empty
  3007. .Ve
  3008. .IP "\fBpgrep\fR" 4
  3009. .IX Item "pgrep"
  3010. pgrep [\-flanovx] [\-s SID|\-P PPID|PATTERN]
  3011. .Sp
  3012. Display process(es) selected by regex \s-1PATTERN\s0
  3013. .Sp
  3014. .Vb 9
  3015. \& \-l Show command name too
  3016. \& \-a Show command line too
  3017. \& \-f Match against entire command line
  3018. \& \-n Show the newest process only
  3019. \& \-o Show the oldest process only
  3020. \& \-v Negate the match
  3021. \& \-x Match whole name (not substring)
  3022. \& \-s Match session ID (0 for current)
  3023. \& \-P Match parent process ID
  3024. .Ve
  3025. .IP "\fBpidof\fR" 4
  3026. .IX Item "pidof"
  3027. pidof [\s-1OPTIONS\s0] [\s-1NAME\s0]...
  3028. .Sp
  3029. List PIDs of all processes with names that match NAMEs
  3030. .Sp
  3031. .Vb 3
  3032. \& \-s Show only one PID
  3033. \& \-o PID Omit given pid
  3034. \& Use %PPID to omit pid of pidof\*(Aqs parent
  3035. .Ve
  3036. .IP "\fBping\fR" 4
  3037. .IX Item "ping"
  3038. ping [\s-1OPTIONS\s0] \s-1HOST\s0
  3039. .Sp
  3040. Send \s-1ICMP ECHO_REQUEST\s0 packets to network hosts
  3041. .Sp
  3042. .Vb 12
  3043. \& \-4,\-6 Force IP or IPv6 name resolution
  3044. \& \-c CNT Send only CNT pings
  3045. \& \-s SIZE Send SIZE data bytes in packets (default 56)
  3046. \& \-t TTL Set TTL
  3047. \& \-I IFACE/IP Source interface or IP address
  3048. \& \-W SEC Seconds to wait for the first response (default 10)
  3049. \& (after all \-c CNT packets are sent)
  3050. \& \-w SEC Seconds until ping exits (default:infinite)
  3051. \& (can exit earlier with \-c CNT)
  3052. \& \-q Quiet, only display output at start
  3053. \& and when finished
  3054. \& \-p HEXBYTE Pattern to use for payload
  3055. .Ve
  3056. .IP "\fBping6\fR" 4
  3057. .IX Item "ping6"
  3058. ping6 [\s-1OPTIONS\s0] \s-1HOST\s0
  3059. .Sp
  3060. Send \s-1ICMP ECHO_REQUEST\s0 packets to network hosts
  3061. .Sp
  3062. .Vb 6
  3063. \& \-c CNT Send only CNT pings
  3064. \& \-s SIZE Send SIZE data bytes in packets (default 56)
  3065. \& \-I IFACE/IP Source interface or IP address
  3066. \& \-q Quiet, only display output at start
  3067. \& and when finished
  3068. \& \-p HEXBYTE Pattern to use for payload
  3069. .Ve
  3070. .IP "\fBpivot_root\fR" 4
  3071. .IX Item "pivot_root"
  3072. pivot_root \s-1NEW_ROOT PUT_OLD\s0
  3073. .Sp
  3074. Move the current root file system to \s-1PUT_OLD\s0 and make \s-1NEW_ROOT\s0
  3075. the new root file system
  3076. .IP "\fBpkill\fR" 4
  3077. .IX Item "pkill"
  3078. pkill [\-l|\-SIGNAL] [\-fnovx] [\-s SID|\-P PPID|PATTERN]
  3079. .Sp
  3080. Send a signal to process(es) selected by regex \s-1PATTERN\s0
  3081. .Sp
  3082. .Vb 8
  3083. \& \-l List all signals
  3084. \& \-f Match against entire command line
  3085. \& \-n Signal the newest process only
  3086. \& \-o Signal the oldest process only
  3087. \& \-v Negate the match
  3088. \& \-x Match whole name (not substring)
  3089. \& \-s Match session ID (0 for current)
  3090. \& \-P Match parent process ID
  3091. .Ve
  3092. .IP "\fBpmap\fR" 4
  3093. .IX Item "pmap"
  3094. pmap [\-xq] \s-1PID...\s0
  3095. .Sp
  3096. Display process memory usage
  3097. .Sp
  3098. .Vb 2
  3099. \& \-x Show details
  3100. \& \-q Quiet
  3101. .Ve
  3102. .IP "\fBpopmaildir\fR" 4
  3103. .IX Item "popmaildir"
  3104. popmaildir [\s-1OPTIONS\s0] \s-1MAILDIR\s0 [\s-1CONN_HELPER ARGS\s0]
  3105. .Sp
  3106. Fetch content of remote mailbox to local maildir
  3107. .Sp
  3108. .Vb 6
  3109. \& \-s Skip authorization
  3110. \& \-T Get messages with TOP instead of RETR
  3111. \& \-k Keep retrieved messages on the server
  3112. \& \-t SEC Network timeout
  3113. \& \-F "PROG ARGS" Filter program (may be repeated)
  3114. \& \-M "PROG ARGS" Delivery program
  3115. .Ve
  3116. .Sp
  3117. Fetch from plain \s-1POP3\s0 server:
  3118. popmaildir \-k \s-1DIR\s0 nc pop3.server.com 110 <user_and_pass.txt
  3119. Fetch from SSLed \s-1POP3\s0 server and delete fetched emails:
  3120. popmaildir \s-1DIR\s0 \*(-- openssl s_client \-quiet \-connect pop3.server.com:995 <user_and_pass.txt
  3121. .IP "\fBpoweroff\fR" 4
  3122. .IX Item "poweroff"
  3123. poweroff [\-d \s-1DELAY\s0] [\-n] [\-f]
  3124. .Sp
  3125. Halt and shut off power
  3126. .Sp
  3127. .Vb 3
  3128. \& \-d SEC Delay interval
  3129. \& \-n Do not sync
  3130. \& \-f Force (don\*(Aqt go through init)
  3131. .Ve
  3132. .IP "\fBpowertop\fR" 4
  3133. .IX Item "powertop"
  3134. powertop
  3135. .Sp
  3136. Analyze power consumption on Intel-based laptops
  3137. .IP "\fBprintenv\fR" 4
  3138. .IX Item "printenv"
  3139. printenv [\s-1VARIABLE\s0]...
  3140. .Sp
  3141. Print environment VARIABLEs.
  3142. If no \s-1VARIABLE\s0 specified, print all.
  3143. .IP "\fBprintf\fR" 4
  3144. .IX Item "printf"
  3145. printf \s-1FORMAT\s0 [\s-1ARG\s0]...
  3146. .Sp
  3147. Format and print \s-1ARG\s0(s) according to \s-1FORMAT\s0 (a\-la C printf)
  3148. .IP "\fBps\fR" 4
  3149. .IX Item "ps"
  3150. ps [\-o \s-1COL1\s0,COL2=HEADER] [\-T]
  3151. .Sp
  3152. Show list of processes
  3153. .Sp
  3154. .Vb 2
  3155. \& \-o COL1,COL2=HEADER Select columns for display
  3156. \& \-T Show threads
  3157. .Ve
  3158. .IP "\fBpscan\fR" 4
  3159. .IX Item "pscan"
  3160. pscan [\-cb] [\-p \s-1MIN_PORT\s0] [\-P \s-1MAX_PORT\s0] [\-t \s-1TIMEOUT\s0] [\-T \s-1MIN_RTT\s0] \s-1HOST\s0
  3161. .Sp
  3162. Scan a host, print all open ports
  3163. .Sp
  3164. .Vb 6
  3165. \& \-c Show closed ports too
  3166. \& \-b Show blocked ports too
  3167. \& \-p Scan from this port (default 1)
  3168. \& \-P Scan up to this port (default 1024)
  3169. \& \-t Timeout (default 5000 ms)
  3170. \& \-T Minimum rtt (default 5 ms, increase for congested hosts)
  3171. .Ve
  3172. .IP "\fBpstree\fR" 4
  3173. .IX Item "pstree"
  3174. pstree [\-p] [PID|USER]
  3175. .Sp
  3176. Display process tree, optionally start from \s-1USER\s0 or \s-1PID\s0
  3177. .Sp
  3178. .Vb 1
  3179. \& \-p Show pids
  3180. .Ve
  3181. .IP "\fBpwd\fR" 4
  3182. .IX Item "pwd"
  3183. pwd
  3184. .Sp
  3185. Print the full filename of the current working directory
  3186. .IP "\fBpwdx\fR" 4
  3187. .IX Item "pwdx"
  3188. pwdx \s-1PID...\s0
  3189. .Sp
  3190. Show current directory for PIDs
  3191. .IP "\fBraidautorun\fR" 4
  3192. .IX Item "raidautorun"
  3193. raidautorun \s-1DEVICE\s0
  3194. .Sp
  3195. Tell the kernel to automatically search and start \s-1RAID\s0 arrays
  3196. .IP "\fBrdate\fR" 4
  3197. .IX Item "rdate"
  3198. rdate [\-s/\-p] \s-1HOST\s0
  3199. .Sp
  3200. Set and print time from \s-1HOST\s0 using \s-1RFC 868\s0
  3201. .Sp
  3202. .Vb 2
  3203. \& \-s Only set system time
  3204. \& \-p Only print time
  3205. .Ve
  3206. .IP "\fBrdev\fR" 4
  3207. .IX Item "rdev"
  3208. rdev
  3209. .Sp
  3210. Print the device node associated with the filesystem mounted at '/'
  3211. .IP "\fBreadahead\fR" 4
  3212. .IX Item "readahead"
  3213. readahead [\s-1FILE\s0]...
  3214. .Sp
  3215. Preload FILEs to \s-1RAM\s0
  3216. .IP "\fBreadlink\fR" 4
  3217. .IX Item "readlink"
  3218. readlink [\-fnv] \s-1FILE\s0
  3219. .Sp
  3220. Display the value of a symlink
  3221. .Sp
  3222. .Vb 3
  3223. \& \-f Canonicalize by following all symlinks
  3224. \& \-n Don\*(Aqt add newline
  3225. \& \-v Verbose
  3226. .Ve
  3227. .IP "\fBreadprofile\fR" 4
  3228. .IX Item "readprofile"
  3229. readprofile [\s-1OPTIONS\s0]
  3230. .Sp
  3231. .Vb 10
  3232. \& \-m mapfile (Default: /boot/System.map)
  3233. \& \-p profile (Default: /proc/profile)
  3234. \& \-M NUM Set the profiling multiplier to NUM
  3235. \& \-i Print only info about the sampling step
  3236. \& \-v Verbose
  3237. \& \-a Print all symbols, even if count is 0
  3238. \& \-b Print individual histogram\-bin counts
  3239. \& \-s Print individual counters within functions
  3240. \& \-r Reset all the counters (root only)
  3241. \& \-n Disable byte order auto\-detection
  3242. .Ve
  3243. .IP "\fBrealpath\fR" 4
  3244. .IX Item "realpath"
  3245. realpath \s-1FILE...\s0
  3246. .Sp
  3247. Return the absolute pathnames of given \s-1FILE\s0
  3248. .IP "\fBreboot\fR" 4
  3249. .IX Item "reboot"
  3250. reboot [\-d \s-1DELAY\s0] [\-n] [\-f]
  3251. .Sp
  3252. Reboot the system
  3253. .Sp
  3254. .Vb 3
  3255. \& \-d SEC Delay interval
  3256. \& \-n Do not sync
  3257. \& \-f Force (don\*(Aqt go through init)
  3258. .Ve
  3259. .IP "\fBreformime\fR" 4
  3260. .IX Item "reformime"
  3261. reformime [\s-1OPTIONS\s0]
  3262. .Sp
  3263. Parse MIME-encoded message on stdin
  3264. .Sp
  3265. .Vb 3
  3266. \& \-x PREFIX Extract content of MIME sections to files
  3267. \& \-X PROG ARGS Filter content of MIME sections through PROG
  3268. \& Must be the last option
  3269. .Ve
  3270. .Sp
  3271. Other options are silently ignored
  3272. .IP "\fBremove-shell\fR" 4
  3273. .IX Item "remove-shell"
  3274. remove-shell \s-1SHELL...\s0
  3275. .Sp
  3276. Remove SHELLs from /etc/shells
  3277. .IP "\fBrenice\fR" 4
  3278. .IX Item "renice"
  3279. renice [\-n] \s-1PRIORITY\s0 [[\-p | \-g | \-u] \s-1ID...\s0]...
  3280. .Sp
  3281. Change scheduling priority of a running process
  3282. .Sp
  3283. .Vb 5
  3284. \& \-n Add PRIORITY to current nice value
  3285. \& Without \-n, nice value is set to PRIORITY
  3286. \& \-p Process ids (default)
  3287. \& \-g Process group ids
  3288. \& \-u Process user names
  3289. .Ve
  3290. .IP "\fBreset\fR" 4
  3291. .IX Item "reset"
  3292. reset
  3293. .Sp
  3294. Reset the screen
  3295. .IP "\fBresize\fR" 4
  3296. .IX Item "resize"
  3297. resize
  3298. .Sp
  3299. Resize the screen
  3300. .IP "\fBresume\fR" 4
  3301. .IX Item "resume"
  3302. resume \s-1BLOCKDEV\s0 [\s-1OFFSET\s0]
  3303. .Sp
  3304. Restore system state from 'suspend\-to\-disk' data in \s-1BLOCKDEV\s0
  3305. .IP "\fBrev\fR" 4
  3306. .IX Item "rev"
  3307. rev [\s-1FILE\s0]...
  3308. .Sp
  3309. Reverse lines of \s-1FILE\s0
  3310. .IP "\fBrm\fR" 4
  3311. .IX Item "rm"
  3312. rm [\-irf] \s-1FILE...\s0
  3313. .Sp
  3314. Remove (unlink) FILEs
  3315. .Sp
  3316. .Vb 3
  3317. \& \-i Always prompt before removing
  3318. \& \-f Never prompt
  3319. \& \-R,\-r Recurse
  3320. .Ve
  3321. .IP "\fBrmdir\fR" 4
  3322. .IX Item "rmdir"
  3323. rmdir [\s-1OPTIONS\s0] \s-1DIRECTORY...\s0
  3324. .Sp
  3325. Remove \s-1DIRECTORY\s0 if it is empty
  3326. .Sp
  3327. .Vb 2
  3328. \& \-p Include parents
  3329. \& \-\-ignore\-fail\-on\-non\-empty
  3330. .Ve
  3331. .IP "\fBrmmod\fR" 4
  3332. .IX Item "rmmod"
  3333. rmmod \s-1MODULE...\s0
  3334. .Sp
  3335. Unload kernel modules
  3336. .IP "\fBroute\fR" 4
  3337. .IX Item "route"
  3338. route [{add|del|delete}]
  3339. .Sp
  3340. Edit kernel routing tables
  3341. .Sp
  3342. .Vb 3
  3343. \& \-n Don\*(Aqt resolve names
  3344. \& \-e Display other/more information
  3345. \& \-A inet{6} Select address family
  3346. .Ve
  3347. .IP "\fBrpm\fR" 4
  3348. .IX Item "rpm"
  3349. rpm \-i \s-1PACKAGE\s0.rpm; rpm \-qp[ildc] \s-1PACKAGE\s0.rpm
  3350. .Sp
  3351. Manipulate \s-1RPM\s0 packages
  3352. .Sp
  3353. Commands:
  3354. .Sp
  3355. .Vb 6
  3356. \& \-i Install package
  3357. \& \-qp Query package
  3358. \& \-qpi Show information
  3359. \& \-qpl List contents
  3360. \& \-qpd List documents
  3361. \& \-qpc List config files
  3362. .Ve
  3363. .IP "\fBrpm2cpio\fR" 4
  3364. .IX Item "rpm2cpio"
  3365. rpm2cpio \s-1PACKAGE\s0.rpm
  3366. .Sp
  3367. Output a cpio archive of the rpm file
  3368. .IP "\fBrtcwake\fR" 4
  3369. .IX Item "rtcwake"
  3370. rtcwake [\-a | \-l | \-u] [\-d \s-1DEV\s0] [\-m \s-1MODE\s0] [\-s \s-1SEC\s0 | \-t \s-1TIME\s0]
  3371. .Sp
  3372. Enter a system sleep state until specified wakeup time
  3373. .Sp
  3374. .Vb 7
  3375. \& \-a,\-\-auto Read clock mode from adjtime
  3376. \& \-l,\-\-local Clock is set to local time
  3377. \& \-u,\-\-utc Clock is set to UTC time
  3378. \& \-d,\-\-device DEV Specify the RTC device
  3379. \& \-m,\-\-mode MODE Set sleep state (default: standby)
  3380. \& \-s,\-\-seconds SEC Set timeout in SEC seconds from now
  3381. \& \-t,\-\-time TIME Set timeout to TIME seconds from epoch
  3382. .Ve
  3383. .IP "\fBrun-init\fR" 4
  3384. .IX Item "run-init"
  3385. run-init [\-d \s-1CAP,CAP...\s0] [\-n] [\-c \s-1CONSOLE_DEV\s0] \s-1NEW_ROOT NEW_INIT\s0 [\s-1ARGS\s0]
  3386. .Sp
  3387. Free initramfs and switch to another root fs:
  3388. .Sp
  3389. chroot to \s-1NEW_ROOT,\s0 delete all in /, move \s-1NEW_ROOT\s0 to /,
  3390. execute \s-1NEW_INIT. PID\s0 must be 1. \s-1NEW_ROOT\s0 must be a mountpoint.
  3391. .Sp
  3392. .Vb 3
  3393. \& \-c DEV Reopen stdio to DEV after switch
  3394. \& \-d CAPS Drop capabilities
  3395. \& \-n Dry run
  3396. .Ve
  3397. .IP "\fBrun-parts\fR" 4
  3398. .IX Item "run-parts"
  3399. run-parts [\-a \s-1ARG\s0]... [\-u \s-1UMASK\s0] [\-\-reverse] [\-\-test] [\-\-exit\-on\-error] [\-\-list] \s-1DIRECTORY\s0
  3400. .Sp
  3401. Run a bunch of scripts in \s-1DIRECTORY\s0
  3402. .Sp
  3403. .Vb 6
  3404. \& \-a ARG Pass ARG as argument to scripts
  3405. \& \-u UMASK Set UMASK before running scripts
  3406. \& \-\-reverse Reverse execution order
  3407. \& \-\-test Dry run
  3408. \& \-\-exit\-on\-error Exit if a script exits with non\-zero
  3409. \& \-\-list Print names of matching files even if they are not executable
  3410. .Ve
  3411. .IP "\fBrunlevel\fR" 4
  3412. .IX Item "runlevel"
  3413. runlevel [\s-1FILE\s0]
  3414. .Sp
  3415. Find the current and previous system runlevel
  3416. .Sp
  3417. If no utmp \s-1FILE\s0 exists or if no runlevel record can be found,
  3418. print \*(L"unknown\*(R"
  3419. .IP "\fBrunsv\fR" 4
  3420. .IX Item "runsv"
  3421. runsv \s-1DIR\s0
  3422. .Sp
  3423. Start and monitor a service and optionally an appendant log service
  3424. .IP "\fBrunsvdir\fR" 4
  3425. .IX Item "runsvdir"
  3426. runsvdir [\-P] [\-s \s-1SCRIPT\s0] \s-1DIR\s0
  3427. .Sp
  3428. Start a runsv process for each subdirectory. If it exits, restart it.
  3429. .Sp
  3430. .Vb 2
  3431. \& \-P Put each runsv in a new session
  3432. \& \-s SCRIPT Run SCRIPT <signo> after signal is processed
  3433. .Ve
  3434. .IP "\fBrx\fR" 4
  3435. .IX Item "rx"
  3436. rx \s-1FILE\s0
  3437. .Sp
  3438. Receive a file using the xmodem protocol
  3439. .IP "\fBscript\fR" 4
  3440. .IX Item "script"
  3441. script [\-afq] [\-t[\s-1FILE\s0]] [\-c \s-1PROG\s0] [\s-1OUTFILE\s0]
  3442. .Sp
  3443. Default \s-1OUTFILE\s0 is 'typescript'
  3444. .Sp
  3445. .Vb 4
  3446. \& \-a Append output
  3447. \& \-c PROG Run PROG, not shell
  3448. \& \-q Quiet
  3449. \& \-t[FILE] Send timing to stderr or FILE
  3450. .Ve
  3451. .IP "\fBscriptreplay\fR" 4
  3452. .IX Item "scriptreplay"
  3453. scriptreplay \s-1TIMINGFILE\s0 [\s-1TYPESCRIPT\s0 [\s-1DIVISOR\s0]]
  3454. .Sp
  3455. Play back typescripts, using timing information
  3456. .IP "\fBsed\fR" 4
  3457. .IX Item "sed"
  3458. sed [\-i[\s-1SFX\s0]] [\-nrE] [\-f \s-1FILE\s0]... [\-e \s-1CMD\s0]... [\s-1FILE\s0]...
  3459. or: sed [\-i[\s-1SFX\s0]] [\-nrE] \s-1CMD\s0 [\s-1FILE\s0]...
  3460. .Sp
  3461. .Vb 6
  3462. \& \-e CMD Add CMD to sed commands to be executed
  3463. \& \-f FILE Add FILE contents to sed commands to be executed
  3464. \& \-i[SFX] Edit files in\-place (otherwise sends to stdout)
  3465. \& Optionally back files up, appending SFX
  3466. \& \-n Suppress automatic printing of pattern space
  3467. \& \-r,\-E Use extended regex syntax
  3468. .Ve
  3469. .Sp
  3470. If no \-e or \-f, the first non-option argument is the sed command string.
  3471. Remaining arguments are input files (stdin if none).
  3472. .IP "\fBsendmail\fR" 4
  3473. .IX Item "sendmail"
  3474. sendmail [\-tv] [\-f \s-1SENDER\s0] [\-amLOGIN 4<user_pass.txt | \-auUSER \-apPASS]
  3475. [\-w \s-1SECS\s0] [\-H '\s-1PROG ARGS\s0' | \-S \s-1HOST\s0] [\s-1RECIPIENT_EMAIL\s0]...
  3476. .Sp
  3477. Read email from stdin and send it
  3478. .Sp
  3479. Standard options:
  3480. .Sp
  3481. .Vb 5
  3482. \& \-t Read additional recipients from message body
  3483. \& \-f SENDER For use in MAIL FROM:<sender>. Can be empty string
  3484. \& Default: \-auUSER, or username of current UID
  3485. \& \-o OPTIONS Various options. \-oi implied, others are ignored
  3486. \& \-i \-oi synonym, implied and ignored
  3487. .Ve
  3488. .Sp
  3489. Busybox specific options:
  3490. .Sp
  3491. .Vb 10
  3492. \& \-v Verbose
  3493. \& \-w SECS Network timeout
  3494. \& \-H \*(AqPROG ARGS\*(Aq Run connection helper. Examples:
  3495. \& openssl s_client \-quiet \-tls1 \-starttls smtp \-connect smtp.gmail.com:25
  3496. \& openssl s_client \-quiet \-tls1 \-connect smtp.gmail.com:465
  3497. \& $SMTP_ANTISPAM_DELAY: seconds to wait after helper connect
  3498. \& \-S HOST[:PORT] Server (default $SMTPHOST or 127.0.0.1)
  3499. \& \-amLOGIN Log in using AUTH LOGIN (\-amCRAM\-MD5 not supported)
  3500. \& \-auUSER Username for AUTH
  3501. \& \-apPASS Password for AUTH
  3502. .Ve
  3503. .Sp
  3504. If no \-a options are given, authentication is not done.
  3505. If \-amLOGIN is given but no \-au/\-ap, user/password is read from fd #4.
  3506. Other options are silently ignored; \-oi is implied.
  3507. Use makemime to create emails with attachments.
  3508. .IP "\fBseq\fR" 4
  3509. .IX Item "seq"
  3510. seq [\-w] [\-s \s-1SEP\s0] [\s-1FIRST\s0 [\s-1INC\s0]] \s-1LAST\s0
  3511. .Sp
  3512. Print numbers from \s-1FIRST\s0 to \s-1LAST,\s0 in steps of \s-1INC.
  3513. FIRST, INC\s0 default to 1.
  3514. .Sp
  3515. .Vb 2
  3516. \& \-w Pad to last with leading zeros
  3517. \& \-s SEP String separator
  3518. .Ve
  3519. .IP "\fBsetarch\fR" 4
  3520. .IX Item "setarch"
  3521. setarch \s-1PERSONALITY\s0 [\-R] \s-1PROG ARGS\s0
  3522. .Sp
  3523. \&\s-1PERSONALITY\s0 may be:
  3524. .Sp
  3525. .Vb 2
  3526. \& linux32 Set 32bit uname emulation
  3527. \& linux64 Set 64bit uname emulation
  3528. \&
  3529. \& \-R Disable address space randomization
  3530. .Ve
  3531. .IP "\fBsetconsole\fR" 4
  3532. .IX Item "setconsole"
  3533. setconsole [\-r] [\s-1DEVICE\s0]
  3534. .Sp
  3535. Make writes to /dev/console appear on \s-1DEVICE\s0 (default: /dev/tty).
  3536. Does not redirect kernel log output or reads from /dev/console.
  3537. .Sp
  3538. .Vb 1
  3539. \& \-r Reset: writes to /dev/console go to kernel log tty(s)
  3540. .Ve
  3541. .IP "\fBsetfattr\fR" 4
  3542. .IX Item "setfattr"
  3543. setfattr [\-h] \-n|\-x \s-1ATTR\s0 [\-v \s-1VALUE\s0] \s-1FILE...\s0
  3544. .Sp
  3545. Set extended attributes
  3546. .Sp
  3547. .Vb 4
  3548. \& \-h Do not follow symlinks
  3549. \& \-x ATTR Remove attribute ATTR
  3550. \& \-n ATTR Set attribute ATTR to VALUE
  3551. \& \-v VALUE (default: empty)
  3552. .Ve
  3553. .IP "\fBsetfont\fR" 4
  3554. .IX Item "setfont"
  3555. setfont \s-1FONT\s0 [\-m \s-1MAPFILE\s0] [\-C \s-1TTY\s0]
  3556. .Sp
  3557. Load a console font
  3558. .Sp
  3559. .Vb 2
  3560. \& \-m MAPFILE Load console screen map
  3561. \& \-C TTY Affect TTY instead of /dev/tty
  3562. .Ve
  3563. .IP "\fBsetkeycodes\fR" 4
  3564. .IX Item "setkeycodes"
  3565. setkeycodes { \s-1SCANCODE KEYCODE\s0 }...
  3566. .Sp
  3567. Modify kernel's scancode-to-keycode map,
  3568. allowing unusual keyboards to generate usable keycodes.
  3569. .Sp
  3570. \&\s-1SCANCODE\s0 is either xx or e0xx (hexadecimal), \s-1KEYCODE\s0 is decimal.
  3571. .IP "\fBsetlogcons\fR" 4
  3572. .IX Item "setlogcons"
  3573. setlogcons [N]
  3574. .Sp
  3575. Pin kernel output to \s-1VT\s0 console N. Default:0 (do not pin)
  3576. .IP "\fBsetpriv\fR" 4
  3577. .IX Item "setpriv"
  3578. setpriv [\s-1OPTIONS\s0] \s-1PROG\s0 [\s-1ARGS\s0]
  3579. .Sp
  3580. Run \s-1PROG\s0 with different privilege settings
  3581. .Sp
  3582. \&\-d,\-\-dump Show current capabilities
  3583. \&\-\-nnp,\-\-no\-new\-privs Ignore setuid/setgid bits and file capabilities
  3584. \&\-\-inh\-caps \s-1CAP,CAP\s0 Set inheritable capabilities
  3585. \&\-\-ambient\-caps \s-1CAP,CAP\s0 Set ambient capabilities
  3586. .IP "\fBsetserial\fR" 4
  3587. .IX Item "setserial"
  3588. setserial [\-abGvz] { \s-1DEVICE\s0 [\s-1PARAMETER\s0 [\s-1ARG\s0]]... | \-g \s-1DEVICE...\s0 }
  3589. .Sp
  3590. Print or set serial port parameters
  3591. .Sp
  3592. .Vb 6
  3593. \& \-a Print all
  3594. \& \-b Print summary
  3595. \& \-G Print as setserial PARAMETERs
  3596. \& \-v Verbose
  3597. \& \-z Zero out serial flags before setting
  3598. \& \-g All args are device names
  3599. .Ve
  3600. .Sp
  3601. PARAMETERs: (* = takes \s-1ARG,\s0 ^ = can be turned off by preceding ^)
  3602. *port, *irq, *divisor, *uart, *baud_base, *close_delay, *closing_wait,
  3603. ^fourport, ^auto_irq, ^skip_test, ^sak, ^session_lockout, ^pgrp_lockout,
  3604. ^callout_nohup, ^split_termios, ^hup_notify, ^low_latency, autoconfig,
  3605. spd_normal, spd_hi, spd_vhi, spd_shi, spd_warp, spd_cust
  3606. \&\s-1ARG\s0 for uart:
  3607. .Sp
  3608. .Vb 3
  3609. \& unknown, 8250, 16450, 16550, 16550A, Cirrus, 16650, 16650V2, 16750,
  3610. \& 16950, 16954, 16654, 16850, RSA, NS16550A, XSCALE, RM9000, OCTEON, AR7,
  3611. \& U6_16550A
  3612. .Ve
  3613. .IP "\fBsetsid\fR" 4
  3614. .IX Item "setsid"
  3615. setsid [\-c] \s-1PROG ARGS\s0
  3616. .Sp
  3617. Run \s-1PROG\s0 in a new session. \s-1PROG\s0 will have no controlling terminal
  3618. and will not be affected by keyboard signals (^C etc).
  3619. .Sp
  3620. .Vb 1
  3621. \& \-c Set controlling terminal to stdin
  3622. .Ve
  3623. .IP "\fBsetuidgid\fR" 4
  3624. .IX Item "setuidgid"
  3625. setuidgid \s-1USER PROG ARGS\s0
  3626. .Sp
  3627. Set uid and gid to \s-1USER\s0's uid and gid, drop supplementary group ids,
  3628. run \s-1PROG\s0
  3629. .IP "\fBsh\fR" 4
  3630. .IX Item "sh"
  3631. sh [\-/+OPTIONS] [\-/+o \s-1OPT\s0]... [\-c '\s-1SCRIPT\s0' [\s-1ARG0\s0 [\s-1ARGS\s0]] / \s-1FILE\s0 [\s-1ARGS\s0]]
  3632. .Sp
  3633. Unix shell interpreter
  3634. .IP "\fBsha1sum\fR" 4
  3635. .IX Item "sha1sum"
  3636. sha1sum [\-c[sw]] [\s-1FILE\s0]...
  3637. .Sp
  3638. Print or check \s-1SHA1\s0 checksums
  3639. .Sp
  3640. .Vb 3
  3641. \& \-c Check sums against list in FILEs
  3642. \& \-s Don\*(Aqt output anything, status code shows success
  3643. \& \-w Warn about improperly formatted checksum lines
  3644. .Ve
  3645. .IP "\fBsha256sum\fR" 4
  3646. .IX Item "sha256sum"
  3647. sha256sum [\-c[sw]] [\s-1FILE\s0]...
  3648. .Sp
  3649. Print or check \s-1SHA256\s0 checksums
  3650. .Sp
  3651. .Vb 3
  3652. \& \-c Check sums against list in FILEs
  3653. \& \-s Don\*(Aqt output anything, status code shows success
  3654. \& \-w Warn about improperly formatted checksum lines
  3655. .Ve
  3656. .IP "\fBsha3sum\fR" 4
  3657. .IX Item "sha3sum"
  3658. sha3sum [\-c[sw]] [\-a \s-1BITS\s0] [\s-1FILE\s0]...
  3659. .Sp
  3660. Print or check \s-1SHA3\s0 checksums
  3661. .Sp
  3662. .Vb 4
  3663. \& \-c Check sums against list in FILEs
  3664. \& \-s Don\*(Aqt output anything, status code shows success
  3665. \& \-w Warn about improperly formatted checksum lines
  3666. \& \-a BITS 224 (default), 256, 384, 512
  3667. .Ve
  3668. .IP "\fBsha512sum\fR" 4
  3669. .IX Item "sha512sum"
  3670. sha512sum [\-c[sw]] [\s-1FILE\s0]...
  3671. .Sp
  3672. Print or check \s-1SHA512\s0 checksums
  3673. .Sp
  3674. .Vb 3
  3675. \& \-c Check sums against list in FILEs
  3676. \& \-s Don\*(Aqt output anything, status code shows success
  3677. \& \-w Warn about improperly formatted checksum lines
  3678. .Ve
  3679. .IP "\fBshowkey\fR" 4
  3680. .IX Item "showkey"
  3681. showkey [\-a | \-k | \-s]
  3682. .Sp
  3683. Show keys pressed
  3684. .Sp
  3685. .Vb 3
  3686. \& \-a Display decimal/octal/hex values of the keys
  3687. \& \-k Display interpreted keycodes (default)
  3688. \& \-s Display raw scan\-codes
  3689. .Ve
  3690. .IP "\fBshred\fR" 4
  3691. .IX Item "shred"
  3692. shred \s-1FILE...\s0
  3693. .Sp
  3694. Overwrite/delete FILEs
  3695. .Sp
  3696. .Vb 4
  3697. \& \-f Chmod to ensure writability
  3698. \& \-n N Overwrite N times (default 3)
  3699. \& \-z Final overwrite with zeros
  3700. \& \-u Remove file
  3701. .Ve
  3702. .IP "\fBshuf\fR" 4
  3703. .IX Item "shuf"
  3704. shuf [\-e|\-i L\-H] [\-n \s-1NUM\s0] [\-o \s-1FILE\s0] [\-z] [FILE|ARG...]
  3705. .Sp
  3706. Randomly permute lines
  3707. .Sp
  3708. .Vb 5
  3709. \& \-e Treat ARGs as lines
  3710. \& \-i L\-H Treat numbers L\-H as lines
  3711. \& \-n NUM Output at most NUM lines
  3712. \& \-o FILE Write to FILE, not standard output
  3713. \& \-z End lines with zero byte, not newline
  3714. .Ve
  3715. .IP "\fBslattach\fR" 4
  3716. .IX Item "slattach"
  3717. slattach [\-ehmLF] [\-c \s-1SCRIPT\s0] [\-s \s-1BAUD\s0] [\-p \s-1PROTOCOL\s0] \s-1SERIAL_DEVICE\s0
  3718. .Sp
  3719. Configure serial line as \s-1SLIP\s0 network interface
  3720. .Sp
  3721. .Vb 8
  3722. \& \-p PROT Protocol: slip, cslip (default), slip6, clisp6, adaptive
  3723. \& \-s BAUD Line speed
  3724. \& \-e Exit after initialization
  3725. \& \-h Exit if carrier is lost (else never exits)
  3726. \& \-c PROG Run PROG on carrier loss
  3727. \& \-m Do NOT set raw 8bit mode
  3728. \& \-L Enable 3\-wire operation
  3729. \& \-F Disable RTS/CTS flow control
  3730. .Ve
  3731. .IP "\fBsleep\fR" 4
  3732. .IX Item "sleep"
  3733. sleep [N]...
  3734. .Sp
  3735. Pause for a time equal to the total of the args given, where each arg can
  3736. have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays
  3737. .IP "\fBsmemcap\fR" 4
  3738. .IX Item "smemcap"
  3739. smemcap >\s-1SMEMDATA.TAR\s0
  3740. .Sp
  3741. Collect memory usage data in /proc and write it to stdout
  3742. .IP "\fBsoftlimit\fR" 4
  3743. .IX Item "softlimit"
  3744. softlimit [\-a \s-1BYTES\s0] [\-m \s-1BYTES\s0] [\-d \s-1BYTES\s0] [\-s \s-1BYTES\s0] [\-l \s-1BYTES\s0]
  3745. [\-f \s-1BYTES\s0] [\-c \s-1BYTES\s0] [\-r \s-1BYTES\s0] [\-o N] [\-p N] [\-t N]
  3746. \s-1PROG ARGS\s0
  3747. .Sp
  3748. Set soft resource limits, then run \s-1PROG\s0
  3749. .Sp
  3750. .Vb 8
  3751. \& \-a BYTES Limit total size of all segments
  3752. \& \-m BYTES Same as \-d BYTES \-s BYTES \-l BYTES \-a BYTES
  3753. \& \-d BYTES Limit data segment
  3754. \& \-s BYTES Limit stack segment
  3755. \& \-l BYTES Limit locked memory size
  3756. \& \-o N Limit number of open files per process
  3757. \& \-p N Limit number of processes per uid
  3758. \&Options controlling file sizes:
  3759. \&
  3760. \& \-f BYTES Limit output file sizes
  3761. \& \-c BYTES Limit core file size
  3762. \&Efficiency opts:
  3763. \&
  3764. \& \-r BYTES Limit resident set size
  3765. \& \-t N Limit CPU time, process receives
  3766. \& a SIGXCPU after N seconds
  3767. .Ve
  3768. .IP "\fBsort\fR" 4
  3769. .IX Item "sort"
  3770. sort [\-nrugMcszbdfiokt] [\-o \s-1FILE\s0] [\-k start[.offset][opts][,end[.offset][opts]] [\-t \s-1CHAR\s0] [\s-1FILE\s0]...
  3771. .Sp
  3772. Sort lines of text
  3773. .Sp
  3774. .Vb 10
  3775. \& \-o FILE Output to FILE
  3776. \& \-c Check whether input is sorted
  3777. \& \-b Ignore leading blanks
  3778. \& \-f Ignore case
  3779. \& \-i Ignore unprintable characters
  3780. \& \-d Dictionary order (blank or alphanumeric only)
  3781. \& \-g General numerical sort
  3782. \& \-M Sort month
  3783. \& \-n Sort numbers
  3784. \& \-t CHAR Field separator
  3785. \& \-k N[,M] Sort by Nth field
  3786. \& \-r Reverse sort order
  3787. \& \-s Stable (don\*(Aqt sort ties alphabetically)
  3788. \& \-u Suppress duplicate lines
  3789. \& \-z Lines are terminated by NUL, not newline
  3790. .Ve
  3791. .IP "\fBsplit\fR" 4
  3792. .IX Item "split"
  3793. split [\s-1OPTIONS\s0] [\s-1INPUT\s0 [\s-1PREFIX\s0]]
  3794. .Sp
  3795. .Vb 3
  3796. \& \-b N[k|m] Split by N (kilo|mega)bytes
  3797. \& \-l N Split by N lines
  3798. \& \-a N Use N letters as suffix
  3799. .Ve
  3800. .IP "\fBssl_client\fR" 4
  3801. .IX Item "ssl_client"
  3802. ssl_client \-s \s-1FD\s0 [\-r \s-1FD\s0] [\-n \s-1SNI\s0]
  3803. .IP "\fBstart-stop-daemon\fR" 4
  3804. .IX Item "start-stop-daemon"
  3805. start-stop-daemon [\s-1OPTIONS\s0] [\-S|\-K] ... [\-\- \s-1ARGS...\s0]
  3806. .Sp
  3807. Search for matching processes, and then
  3808. \&\-K: stop all matching processes
  3809. \&\-S: start a process unless a matching process is found
  3810. .Sp
  3811. Process matching:
  3812. .Sp
  3813. .Vb 10
  3814. \& \-u USERNAME|UID Match only this user\*(Aqs processes
  3815. \& \-n NAME Match processes with NAME
  3816. \& in comm field in /proc/PID/stat
  3817. \& \-x EXECUTABLE Match processes with this command
  3818. \& command in /proc/PID/cmdline
  3819. \& \-p FILE Match a process with PID from FILE
  3820. \& All specified conditions must match
  3821. \&\-S only:
  3822. \& \-x EXECUTABLE Program to run
  3823. \& \-a NAME Zeroth argument
  3824. \& \-b Background
  3825. \& \-N N Change nice level
  3826. \& \-c USER[:[GRP]] Change user/group
  3827. \& \-m Write PID to pidfile specified by \-p
  3828. \&\-K only:
  3829. \& \-s SIG Signal to send
  3830. \& \-t Match only, exit with 0 if found
  3831. \&Other:
  3832. \&
  3833. \& \-o Exit with status 0 if nothing is done
  3834. \& \-v Verbose
  3835. \& \-q Quiet
  3836. .Ve
  3837. .IP "\fBstat\fR" 4
  3838. .IX Item "stat"
  3839. stat [\s-1OPTIONS\s0] \s-1FILE...\s0
  3840. .Sp
  3841. Display file (default) or filesystem status
  3842. .Sp
  3843. .Vb 4
  3844. \& \-c FMT Use the specified format
  3845. \& \-f Display filesystem status
  3846. \& \-L Follow links
  3847. \& \-t Terse display
  3848. .Ve
  3849. .Sp
  3850. \&\s-1FMT\s0 sequences for files:
  3851. .Sp
  3852. .Vb 10
  3853. \& %a Access rights in octal
  3854. \& %A Access rights in human readable form
  3855. \& %b Number of blocks allocated (see %B)
  3856. \& %B Size in bytes of each block reported by %b
  3857. \& %d Device number in decimal
  3858. \& %D Device number in hex
  3859. \& %f Raw mode in hex
  3860. \& %F File type
  3861. \& %g Group ID
  3862. \& %G Group name
  3863. \& %h Number of hard links
  3864. \& %i Inode number
  3865. \& %n File name
  3866. \& %N File name, with \-> TARGET if symlink
  3867. \& %o I/O block size
  3868. \& %s Total size in bytes
  3869. \& %t Major device type in hex
  3870. \& %T Minor device type in hex
  3871. \& %u User ID
  3872. \& %U User name
  3873. \& %x Time of last access
  3874. \& %X Time of last access as seconds since Epoch
  3875. \& %y Time of last modification
  3876. \& %Y Time of last modification as seconds since Epoch
  3877. \& %z Time of last change
  3878. \& %Z Time of last change as seconds since Epoch
  3879. .Ve
  3880. .Sp
  3881. \&\s-1FMT\s0 sequences for file systems:
  3882. .Sp
  3883. .Vb 12
  3884. \& %a Free blocks available to non\-superuser
  3885. \& %b Total data blocks
  3886. \& %c Total file nodes
  3887. \& %d Free file nodes
  3888. \& %f Free blocks
  3889. \& %i File System ID in hex
  3890. \& %l Maximum length of filenames
  3891. \& %n File name
  3892. \& %s Block size (for faster transfer)
  3893. \& %S Fundamental block size (for block counts)
  3894. \& %t Type in hex
  3895. \& %T Type in human readable form
  3896. .Ve
  3897. .IP "\fBstrings\fR" 4
  3898. .IX Item "strings"
  3899. strings [\-fo] [\-t o/d/x] [\-n \s-1LEN\s0] [\s-1FILE\s0]...
  3900. .Sp
  3901. Display printable strings in a binary file
  3902. .Sp
  3903. .Vb 4
  3904. \& \-f Precede strings with filenames
  3905. \& \-o Precede strings with octal offsets
  3906. \& \-t o/d/x Precede strings with offsets in base 8/10/16
  3907. \& \-n LEN At least LEN characters form a string (default 4)
  3908. .Ve
  3909. .IP "\fBstty\fR" 4
  3910. .IX Item "stty"
  3911. stty [\-a|g] [\-F \s-1DEVICE\s0] [\s-1SETTING\s0]...
  3912. .Sp
  3913. Without arguments, prints baud rate, line discipline,
  3914. and deviations from stty sane
  3915. .Sp
  3916. .Vb 4
  3917. \& \-F DEVICE Open device instead of stdin
  3918. \& \-a Print all current settings in human\-readable form
  3919. \& \-g Print in stty\-readable form
  3920. \& [SETTING] See manpage
  3921. .Ve
  3922. .IP "\fBsu\fR" 4
  3923. .IX Item "su"
  3924. su [\-lmp] [\-] [\-s \s-1SH\s0] [\s-1USER\s0 [\s-1SCRIPT ARGS /\s0 \-c '\s-1CMD\s0' \s-1ARG0 ARGS\s0]]
  3925. .Sp
  3926. Run shell under \s-1USER\s0 (by default, root)
  3927. .Sp
  3928. .Vb 4
  3929. \& \-,\-l Clear environment, go to home dir, run shell as login shell
  3930. \& \-p,\-m Do not set new $HOME, $SHELL, $USER, $LOGNAME
  3931. \& \-c CMD Command to pass to \*(Aqsh \-c\*(Aq
  3932. \& \-s SH Shell to use instead of user\*(Aqs default
  3933. .Ve
  3934. .IP "\fBsulogin\fR" 4
  3935. .IX Item "sulogin"
  3936. sulogin [\-t N] [\s-1TTY\s0]
  3937. .Sp
  3938. Single user login
  3939. .Sp
  3940. .Vb 1
  3941. \& \-t N Timeout
  3942. .Ve
  3943. .IP "\fBsum\fR" 4
  3944. .IX Item "sum"
  3945. sum [\-rs] [\s-1FILE\s0]...
  3946. .Sp
  3947. Checksum and count the blocks in a file
  3948. .Sp
  3949. .Vb 2
  3950. \& \-r Use BSD sum algorithm (1K blocks)
  3951. \& \-s Use System V sum algorithm (512byte blocks)
  3952. .Ve
  3953. .IP "\fBsv\fR" 4
  3954. .IX Item "sv"
  3955. sv [\-v] [\-w \s-1SEC\s0] \s-1CMD SERVICE_DIR...\s0
  3956. .Sp
  3957. Control services monitored by runsv supervisor.
  3958. Commands (only first character is enough):
  3959. .Sp
  3960. status: query service status
  3961. up: if service isn't running, start it. If service stops, restart it
  3962. once: like 'up', but if service stops, don't restart it
  3963. down: send \s-1TERM\s0 and \s-1CONT\s0 signals. If ./run exits, start ./finish
  3964. if it exists. After it stops, don't restart service
  3965. exit: send \s-1TERM\s0 and \s-1CONT\s0 signals to service and log service. If they exit,
  3966. runsv exits too
  3967. pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send
  3968. \&\s-1STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL\s0 signal to service
  3969. .IP "\fBsvc\fR" 4
  3970. .IX Item "svc"
  3971. svc [\-udopchaitkx] \s-1SERVICE_DIR...\s0
  3972. .Sp
  3973. Control services monitored by runsv supervisor
  3974. .Sp
  3975. .Vb 5
  3976. \& \-u If service is not running, start it; restart if it stops
  3977. \& \-d If service is running, send TERM+CONT signals; do not restart it
  3978. \& \-o Once: if service is not running, start it; do not restart it
  3979. \& \-pchaitk Send STOP, CONT, HUP, ALRM, INT, TERM, KILL signal to service
  3980. \& \-x Exit: runsv will exit as soon as the service is down
  3981. .Ve
  3982. .IP "\fBsvlogd\fR" 4
  3983. .IX Item "svlogd"
  3984. svlogd [\-tttv] [\-r C] [\-R \s-1CHARS\s0] [\-l \s-1MATCHLEN\s0] [\-b \s-1BUFLEN\s0] \s-1DIR...\s0
  3985. .Sp
  3986. Read log data from stdin and write to rotated log files in DIRs
  3987. .Sp
  3988. \&\-r C Replace non-printable characters with C
  3989. \&\-R \s-1CHARS\s0 Also replace \s-1CHARS\s0 with C (default _)
  3990. \&\-t Timestamp with \f(CW@tai64n\fR
  3991. \&\-tt Timestamp with yyyy\-mm\-dd_hh:mm:ss.sssss
  3992. \&\-ttt Timestamp with yyyy\-mm\-ddThh:mm:ss.sssss
  3993. \&\-v Verbose
  3994. .Sp
  3995. DIR/config file modifies behavior:
  3996. sSIZE \- when to rotate logs (default 1000000, 0 disables)
  3997. nNUM \- number of files to retain
  3998. !PROG \- process rotated log with \s-1PROG
  3999. +,\-PATTERN\s0 \- (de)select line for logging
  4000. E,ePATTERN \- (de)select line for stderr
  4001. .IP "\fBswapoff\fR" 4
  4002. .IX Item "swapoff"
  4003. swapoff [\-a] [\s-1DEVICE\s0]
  4004. .Sp
  4005. Stop swapping on \s-1DEVICE\s0
  4006. .Sp
  4007. .Vb 1
  4008. \& \-a Stop swapping on all swap devices
  4009. .Ve
  4010. .IP "\fBswapon\fR" 4
  4011. .IX Item "swapon"
  4012. swapon [\-a] [\-e] [\-d[\s-1POL\s0]] [\-p \s-1PRI\s0] [\s-1DEVICE\s0]
  4013. .Sp
  4014. Start swapping on \s-1DEVICE\s0
  4015. .Sp
  4016. .Vb 5
  4017. \& \-a Start swapping on all swap devices
  4018. \& \-d[POL] Discard blocks at swapon (POL=once),
  4019. \& as freed (POL=pages), or both (POL omitted)
  4020. \& \-e Silently skip devices that do not exist
  4021. \& \-p PRI Set swap device priority
  4022. .Ve
  4023. .IP "\fBswitch_root\fR" 4
  4024. .IX Item "switch_root"
  4025. switch_root [\-c \s-1CONSOLE_DEV\s0] \s-1NEW_ROOT NEW_INIT\s0 [\s-1ARGS\s0]
  4026. .Sp
  4027. Free initramfs and switch to another root fs:
  4028. .Sp
  4029. chroot to \s-1NEW_ROOT,\s0 delete all in /, move \s-1NEW_ROOT\s0 to /,
  4030. execute \s-1NEW_INIT. PID\s0 must be 1. \s-1NEW_ROOT\s0 must be a mountpoint.
  4031. .Sp
  4032. .Vb 1
  4033. \& \-c DEV Reopen stdio to DEV after switch
  4034. .Ve
  4035. .IP "\fBsync\fR" 4
  4036. .IX Item "sync"
  4037. sync [\-df] [\s-1FILE\s0]...
  4038. .Sp
  4039. Write all buffered blocks (in FILEs) to disk
  4040. \-d Avoid syncing metadata
  4041. \-f Sync filesystems underlying FILEs
  4042. .IP "\fBsysctl\fR" 4
  4043. .IX Item "sysctl"
  4044. sysctl \-p [\-enq] [\s-1FILE...\s0] / [\-enqaw] [KEY[=VALUE]]...
  4045. .Sp
  4046. Show/set kernel parameters
  4047. .Sp
  4048. .Vb 6
  4049. \& \-p Set values from FILEs (default /etc/sysctl.conf)
  4050. \& \-e Don\*(Aqt warn about unknown keys
  4051. \& \-n Don\*(Aqt show key names
  4052. \& \-q Quiet
  4053. \& \-a Show all values
  4054. \& \-w Set values
  4055. .Ve
  4056. .IP "\fBsyslogd\fR" 4
  4057. .IX Item "syslogd"
  4058. syslogd [\s-1OPTIONS\s0]
  4059. .Sp
  4060. System logging utility
  4061. .Sp
  4062. .Vb 12
  4063. \& \-n Run in foreground
  4064. \& \-R HOST[:PORT] Log to HOST:PORT (default PORT:514)
  4065. \& \-L Log locally and via network (default is network only if \-R)
  4066. \& \-C[size_kb] Log to shared mem buffer (use logread to read it)
  4067. \& \-K Log to kernel printk buffer (use dmesg to read it)
  4068. \& \-O FILE Log to FILE (default: /var/log/messages, stdout if \-)
  4069. \& \-s SIZE Max size (KB) before rotation (default 200KB, 0=off)
  4070. \& \-b N N rotated logs to keep (default 1, max 99, 0=purge)
  4071. \& \-l N Log only messages more urgent than prio N (1\-8)
  4072. \& \-S Smaller output
  4073. \& \-D Drop duplicates
  4074. \& \-f FILE Use FILE as config (default:/etc/syslog.conf)
  4075. .Ve
  4076. .IP "\fBtac\fR" 4
  4077. .IX Item "tac"
  4078. tac [\s-1FILE\s0]...
  4079. .Sp
  4080. Concatenate FILEs and print them in reverse
  4081. .IP "\fBtail\fR" 4
  4082. .IX Item "tail"
  4083. tail [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  4084. .Sp
  4085. Print last 10 lines of each \s-1FILE\s0 (or stdin) to stdout.
  4086. With more than one \s-1FILE,\s0 precede each with a filename header.
  4087. .Sp
  4088. .Vb 8
  4089. \& \-f Print data as file grows
  4090. \& \-c [+]N[kbm] Print last N bytes
  4091. \& \-n N[kbm] Print last N lines
  4092. \& \-n +N[kbm] Start on Nth line and print the rest
  4093. \& \-q Never print headers
  4094. \& \-s SECONDS Wait SECONDS between reads with \-f
  4095. \& \-v Always print headers
  4096. \& \-F Same as \-f, but keep retrying
  4097. .Ve
  4098. .Sp
  4099. N may be suffixed by k (x1024), b (x512), or m (x1024^2).
  4100. .IP "\fBtar\fR" 4
  4101. .IX Item "tar"
  4102. tar c|x|t [\-zJjahmvO] [\-f \s-1TARFILE\s0] [\-C \s-1DIR\s0] [\-T \s-1FILE\s0] [\-X \s-1FILE\s0] [\-\-exclude \s-1PATTERN\s0]... [\s-1FILE\s0]...
  4103. .Sp
  4104. Create, extract, or list files from a tar file
  4105. .Sp
  4106. Operation:
  4107. .Sp
  4108. .Vb 10
  4109. \& c Create
  4110. \& x Extract
  4111. \& t List
  4112. \& \-f FILE Name of TARFILE (\*(Aq\-\*(Aq for stdin/out)
  4113. \& \-C DIR Change to DIR before operation
  4114. \& \-v Verbose
  4115. \& \-z (De)compress using gzip
  4116. \& \-J (De)compress using xz
  4117. \& \-j (De)compress using bzip2
  4118. \& \-a (De)compress using lzma
  4119. \& \-O Extract to stdout
  4120. \& \-h Follow symlinks
  4121. \& \-m Don\*(Aqt restore mtime
  4122. \& \-T FILE File with names to include
  4123. \& \-X FILE File with glob patterns to exclude
  4124. \& \-\-exclude PATTERN Glob pattern to exclude
  4125. .Ve
  4126. .IP "\fBtaskset\fR" 4
  4127. .IX Item "taskset"
  4128. taskset [\-p] [\s-1HEXMASK\s0] \s-1PID\s0 | \s-1PROG ARGS\s0
  4129. .Sp
  4130. Set or get \s-1CPU\s0 affinity
  4131. .Sp
  4132. .Vb 1
  4133. \& \-p Operate on an existing PID
  4134. .Ve
  4135. .IP "\fBtcpsvd\fR" 4
  4136. .IX Item "tcpsvd"
  4137. tcpsvd [\-hEv] [\-c N] [\-C N[:MSG]] [\-b N] [\-u \s-1USER\s0] [\-l \s-1NAME\s0] \s-1IP PORT PROG\s0
  4138. .Sp
  4139. Create \s-1TCP\s0 socket, bind to \s-1IP:PORT\s0 and listen for incoming connections.
  4140. Run \s-1PROG\s0 for each connection.
  4141. .Sp
  4142. .Vb 12
  4143. \& IP PORT IP:PORT to listen on
  4144. \& PROG ARGS Program to run
  4145. \& \-u USER[:GRP] Change to user/group after bind
  4146. \& \-c N Up to N connections simultaneously (default 30)
  4147. \& \-b N Allow backlog of approximately N TCP SYNs (default 20)
  4148. \& \-C N[:MSG] Allow only up to N connections from the same IP:
  4149. \& new connections from this IP address are closed
  4150. \& immediately, MSG is written to the peer before close
  4151. \& \-E Don\*(Aqt set up environment
  4152. \& \-h Look up peer\*(Aqs hostname
  4153. \& \-l NAME Local hostname (else look up local hostname in DNS)
  4154. \& \-v Verbose
  4155. .Ve
  4156. .Sp
  4157. Environment if no \-E:
  4158. PROTO='\s-1TCP\s0'
  4159. TCPREMOTEADDR='ip:port' ('[ip]:port' for IPv6)
  4160. TCPLOCALADDR='ip:port'
  4161. TCPORIGDSTADDR='ip:port' of destination before firewall
  4162. Useful for REDIRECTed-to-local connections:
  4163. iptables \-t nat \-A \s-1PREROUTING\s0 \-p tcp \-\-dport 80 \-j \s-1REDIRECT\s0 \-\-to 8080
  4164. TCPCONCURRENCY=num_of_connects_from_this_ip
  4165. If \-h:
  4166. TCPLOCALHOST='hostname' (\-l \s-1NAME\s0 is used if specified)
  4167. TCPREMOTEHOST='hostname'
  4168. .IP "\fBtee\fR" 4
  4169. .IX Item "tee"
  4170. tee [\-ai] [\s-1FILE\s0]...
  4171. .Sp
  4172. Copy stdin to each \s-1FILE,\s0 and also to stdout
  4173. .Sp
  4174. .Vb 2
  4175. \& \-a Append to the given FILEs, don\*(Aqt overwrite
  4176. \& \-i Ignore interrupt signals (SIGINT)
  4177. .Ve
  4178. .IP "\fBtelnet\fR" 4
  4179. .IX Item "telnet"
  4180. telnet [\-a] [\-l \s-1USER\s0] \s-1HOST\s0 [\s-1PORT\s0]
  4181. .Sp
  4182. Connect to telnet server
  4183. .Sp
  4184. .Vb 2
  4185. \& \-a Automatic login with $USER variable
  4186. \& \-l USER Automatic login as USER
  4187. .Ve
  4188. .IP "\fBtelnetd\fR" 4
  4189. .IX Item "telnetd"
  4190. telnetd [\s-1OPTIONS\s0]
  4191. .Sp
  4192. Handle incoming telnet connections
  4193. .Sp
  4194. .Vb 10
  4195. \& \-l LOGIN Exec LOGIN on connect
  4196. \& \-f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue
  4197. \& \-K Close connection as soon as login exits
  4198. \& (normally wait until all programs close slave pty)
  4199. \& \-p PORT Port to listen on
  4200. \& \-b ADDR[:PORT] Address to bind to
  4201. \& \-F Run in foreground
  4202. \& \-i Inetd mode
  4203. \& \-w SEC Inetd \*(Aqwait\*(Aq mode, linger time SEC
  4204. \& \-S Log to syslog (implied by \-i or without \-F and \-w)
  4205. .Ve
  4206. .IP "\fBtftp\fR" 4
  4207. .IX Item "tftp"
  4208. tftp [\s-1OPTIONS\s0] \s-1HOST\s0 [\s-1PORT\s0]
  4209. .Sp
  4210. Transfer a file from/to tftp server
  4211. .Sp
  4212. .Vb 5
  4213. \& \-l FILE Local FILE
  4214. \& \-r FILE Remote FILE
  4215. \& \-g Get file
  4216. \& \-p Put file
  4217. \& \-b SIZE Transfer blocks of SIZE octets
  4218. .Ve
  4219. .IP "\fBtftpd\fR" 4
  4220. .IX Item "tftpd"
  4221. tftpd [\-cr] [\-u \s-1USER\s0] [\s-1DIR\s0]
  4222. .Sp
  4223. Transfer a file on tftp client's request
  4224. .Sp
  4225. tftpd should be used as an inetd service.
  4226. tftpd's line for inetd.conf:
  4227. 69 dgram udp nowait root tftpd tftpd \-l /files/to/serve
  4228. It also can be ran from udpsvd:
  4229. .Sp
  4230. .Vb 1
  4231. \& udpsvd \-vE 0.0.0.0 69 tftpd /files/to/serve
  4232. \&
  4233. \& \-r Prohibit upload
  4234. \& \-c Allow file creation via upload
  4235. \& \-u Access files as USER
  4236. \& \-l Log to syslog (inetd mode requires this)
  4237. .Ve
  4238. .IP "\fBtime\fR" 4
  4239. .IX Item "time"
  4240. time [\-vpa] [\-o \s-1FILE\s0] \s-1PROG ARGS\s0
  4241. .Sp
  4242. Run \s-1PROG,\s0 display resource usage when it exits
  4243. .Sp
  4244. .Vb 5
  4245. \& \-v Verbose
  4246. \& \-p POSIX output format
  4247. \& \-f FMT Custom format
  4248. \& \-o FILE Write result to FILE
  4249. \& \-a Append (else overwrite)
  4250. .Ve
  4251. .IP "\fBtimeout\fR" 4
  4252. .IX Item "timeout"
  4253. timeout [\-t \s-1SECS\s0] [\-s \s-1SIG\s0] \s-1PROG ARGS\s0
  4254. .Sp
  4255. Runs \s-1PROG.\s0 Sends \s-1SIG\s0 to it if it is not gone in \s-1SECS\s0 seconds.
  4256. Defaults: \s-1SECS: 10, SIG: TERM.\s0
  4257. .IP "\fBtop\fR" 4
  4258. .IX Item "top"
  4259. top [\-b] [\-nCOUNT] [\-dSECONDS] [\-m]
  4260. .Sp
  4261. Provide a view of process activity in real time.
  4262. Read the status of all processes from /proc each \s-1SECONDS\s0
  4263. and display a screenful of them.
  4264. Keys:
  4265. .Sp
  4266. .Vb 5
  4267. \& N/M/P/T: show CPU usage, sort by pid/mem/cpu/time
  4268. \& S: show memory
  4269. \& R: reverse sort
  4270. \& H: toggle threads, 1: toggle SMP
  4271. \& Q,^C: exit
  4272. .Ve
  4273. .Sp
  4274. Options:
  4275. .Sp
  4276. .Vb 4
  4277. \& \-b Batch mode
  4278. \& \-n N Exit after N iterations
  4279. \& \-d N Delay between updates
  4280. \& \-m Same as \*(Aqs\*(Aq key
  4281. .Ve
  4282. .IP "\fBtouch\fR" 4
  4283. .IX Item "touch"
  4284. touch [\-c] [\-d \s-1DATE\s0] [\-t \s-1DATE\s0] [\-r \s-1FILE\s0] \s-1FILE...\s0
  4285. .Sp
  4286. Update the last-modified date on the given FILE[s]
  4287. .Sp
  4288. .Vb 5
  4289. \& \-c Don\*(Aqt create files
  4290. \& \-h Don\*(Aqt follow links
  4291. \& \-d DT Date/time to use
  4292. \& \-t DT Date/time to use
  4293. \& \-r FILE Use FILE\*(Aqs date/time
  4294. .Ve
  4295. .IP "\fBtr\fR" 4
  4296. .IX Item "tr"
  4297. tr [\-cds] \s-1STRING1\s0 [\s-1STRING2\s0]
  4298. .Sp
  4299. Translate, squeeze, or delete characters from stdin, writing to stdout
  4300. .Sp
  4301. .Vb 3
  4302. \& \-c Take complement of STRING1
  4303. \& \-d Delete input characters coded STRING1
  4304. \& \-s Squeeze multiple output characters of STRING2 into one character
  4305. .Ve
  4306. .IP "\fBtraceroute\fR" 4
  4307. .IX Item "traceroute"
  4308. traceroute [\-46FIlnrv] [\-f 1ST_TTL] [\-m \s-1MAXTTL\s0] [\-q \s-1PROBES\s0] [\-p \s-1PORT\s0]
  4309. [\-t \s-1TOS\s0] [\-w \s-1WAIT_SEC\s0] [\-s \s-1SRC_IP\s0] [\-i \s-1IFACE\s0]
  4310. [\-z \s-1PAUSE_MSEC\s0] \s-1HOST\s0 [\s-1BYTES\s0]
  4311. .Sp
  4312. Trace the route to \s-1HOST\s0
  4313. .Sp
  4314. .Vb 10
  4315. \& \-4,\-6 Force IP or IPv6 name resolution
  4316. \& \-F Set don\*(Aqt fragment bit
  4317. \& \-I Use ICMP ECHO instead of UDP datagrams
  4318. \& \-l Display TTL value of the returned packet
  4319. \& \-n Print numeric addresses
  4320. \& \-r Bypass routing tables, send directly to HOST
  4321. \& \-v Verbose
  4322. \& \-f N First number of hops (default 1)
  4323. \& \-m N Max number of hops
  4324. \& \-q N Number of probes per hop (default 3)
  4325. \& \-p N Base UDP port number used in probes
  4326. \& (default 33434)
  4327. \& \-s IP Source address
  4328. \& \-i IFACE Source interface
  4329. \& \-t N Type\-of\-service in probe packets (default 0)
  4330. \& \-w SEC Time to wait for a response (default 3)
  4331. \& \-g IP Loose source route gateway (8 max)
  4332. .Ve
  4333. .IP "\fBtraceroute6\fR" 4
  4334. .IX Item "traceroute6"
  4335. traceroute6 [\-nrv] [\-m \s-1MAXTTL\s0] [\-q \s-1PROBES\s0] [\-p \s-1PORT\s0]
  4336. [\-t \s-1TOS\s0] [\-w \s-1WAIT_SEC\s0] [\-s \s-1SRC_IP\s0] [\-i \s-1IFACE\s0]
  4337. \s-1HOST\s0 [\s-1BYTES\s0]
  4338. .Sp
  4339. Trace the route to \s-1HOST\s0
  4340. .Sp
  4341. .Vb 11
  4342. \& \-n Print numeric addresses
  4343. \& \-r Bypass routing tables, send directly to HOST
  4344. \& \-v Verbose
  4345. \& \-m N Max number of hops
  4346. \& \-q N Number of probes per hop (default 3)
  4347. \& \-p N Base UDP port number used in probes
  4348. \& (default 33434)
  4349. \& \-s IP Source address
  4350. \& \-i IFACE Source interface
  4351. \& \-t N Type\-of\-service in probe packets (default 0)
  4352. \& \-w SEC Time wait for a response (default 3)
  4353. .Ve
  4354. .IP "\fBtruncate\fR" 4
  4355. .IX Item "truncate"
  4356. truncate [\-c] \-s \s-1SIZE FILE...\s0
  4357. .Sp
  4358. Truncate FILEs to the given size
  4359. .Sp
  4360. .Vb 2
  4361. \& \-c Do not create files
  4362. \& \-s SIZE Truncate to SIZE
  4363. .Ve
  4364. .IP "\fBtty\fR" 4
  4365. .IX Item "tty"
  4366. tty
  4367. .Sp
  4368. Print file name of stdin's terminal
  4369. .Sp
  4370. .Vb 1
  4371. \& \-s Print nothing, only return exit status
  4372. .Ve
  4373. .IP "\fBttysize\fR" 4
  4374. .IX Item "ttysize"
  4375. ttysize [w] [h]
  4376. .Sp
  4377. Print dimensions of stdin tty, or 80x24
  4378. .IP "\fBtunctl\fR" 4
  4379. .IX Item "tunctl"
  4380. tunctl [\-f device] ([\-t name] | \-d name) [\-u owner] [\-g group] [\-b]
  4381. .Sp
  4382. Create or delete tun interfaces
  4383. .Sp
  4384. .Vb 6
  4385. \& \-f name tun device (/dev/net/tun)
  4386. \& \-t name Create iface \*(Aqname\*(Aq
  4387. \& \-d name Delete iface \*(Aqname\*(Aq
  4388. \& \-u owner Set iface owner
  4389. \& \-g group Set iface group
  4390. \& \-b Brief output
  4391. .Ve
  4392. .IP "\fBubiattach\fR" 4
  4393. .IX Item "ubiattach"
  4394. ubiattach \-m \s-1MTD_NUM\s0 [\-d \s-1UBI_NUM\s0] [\-O \s-1VID_HDR_OFF\s0] \s-1UBI_CTRL_DEV\s0
  4395. .Sp
  4396. Attach \s-1MTD\s0 device to \s-1UBI\s0
  4397. .Sp
  4398. .Vb 3
  4399. \& \-m MTD_NUM MTD device number to attach
  4400. \& \-d UBI_NUM UBI device number to assign
  4401. \& \-O VID_HDR_OFF VID header offset
  4402. .Ve
  4403. .IP "\fBubidetach\fR" 4
  4404. .IX Item "ubidetach"
  4405. ubidetach \-d \s-1UBI_NUM UBI_CTRL_DEV\s0
  4406. .Sp
  4407. Detach \s-1MTD\s0 device from \s-1UBI\s0
  4408. .Sp
  4409. .Vb 1
  4410. \& \-d UBI_NUM UBI device number
  4411. .Ve
  4412. .IP "\fBubimkvol\fR" 4
  4413. .IX Item "ubimkvol"
  4414. ubimkvol \-N \s-1NAME\s0 [\-s \s-1SIZE\s0 | \-m] \s-1UBI_DEVICE\s0
  4415. .Sp
  4416. Create \s-1UBI\s0 volume
  4417. .Sp
  4418. .Vb 7
  4419. \& \-a ALIGNMENT Volume alignment (default 1)
  4420. \& \-m Set volume size to maximum available
  4421. \& \-n VOLID Volume ID. If not specified,
  4422. \& assigned automatically
  4423. \& \-N NAME Volume name
  4424. \& \-s SIZE Size in bytes
  4425. \& \-t TYPE Volume type (static|dynamic)
  4426. .Ve
  4427. .IP "\fBubirename\fR" 4
  4428. .IX Item "ubirename"
  4429. ubirename \s-1UBI_DEVICE OLD_VOLNAME NEW_VOLNAME\s0 [\s-1OLD2 NEW2\s0]...
  4430. .Sp
  4431. Rename \s-1UBI\s0 volumes on \s-1UBI_DEVICE\s0
  4432. .IP "\fBubirmvol\fR" 4
  4433. .IX Item "ubirmvol"
  4434. ubirmvol \-n \s-1VOLID /\s0 \-N \s-1VOLNAME UBI_DEVICE\s0
  4435. .Sp
  4436. Remove \s-1UBI\s0 volume
  4437. .Sp
  4438. .Vb 2
  4439. \& \-n VOLID Volume ID
  4440. \& \-N VOLNAME Volume name
  4441. .Ve
  4442. .IP "\fBubirsvol\fR" 4
  4443. .IX Item "ubirsvol"
  4444. ubirsvol \-n \s-1VOLID\s0 \-s \s-1SIZE UBI_DEVICE\s0
  4445. .Sp
  4446. Resize \s-1UBI\s0 volume
  4447. .Sp
  4448. .Vb 2
  4449. \& \-n VOLID Volume ID
  4450. \& \-s SIZE Size in bytes
  4451. .Ve
  4452. .IP "\fBubiupdatevol\fR" 4
  4453. .IX Item "ubiupdatevol"
  4454. ubiupdatevol \-t \s-1UBI_DEVICE\s0 | [\-s \s-1SIZE\s0] \s-1UBI_DEVICE IMG_FILE\s0
  4455. .Sp
  4456. Update \s-1UBI\s0 volume
  4457. .Sp
  4458. .Vb 2
  4459. \& \-t Truncate to zero size
  4460. \& \-s SIZE Size in bytes to resize to
  4461. .Ve
  4462. .IP "\fBudhcpc\fR" 4
  4463. .IX Item "udhcpc"
  4464. udhcpc [\-fbqvRB] [\-a[\s-1MSEC\s0]] [\-t N] [\-T \s-1SEC\s0] [\-A SEC/\-n]
  4465. [\-i \s-1IFACE\s0] [\-s \s-1PROG\s0] [\-p \s-1PIDFILE\s0]
  4466. [\-oC] [\-r \s-1IP\s0] [\-V \s-1VENDOR\s0] [\-F \s-1NAME\s0] [\-x \s-1OPT:VAL\s0]... [\-O \s-1OPT\s0]...
  4467. .Sp
  4468. .Vb 10
  4469. \& \-i IFACE Interface to use (default eth0)
  4470. \& \-s PROG Run PROG at DHCP events (default /usr/share/udhcpc/default.script)
  4471. \& \-p FILE Create pidfile
  4472. \& \-B Request broadcast replies
  4473. \& \-t N Send up to N discover packets (default 3)
  4474. \& \-T SEC Pause between packets (default 3)
  4475. \& \-A SEC Wait if lease is not obtained (default 20)
  4476. \& \-n Exit if lease is not obtained
  4477. \& \-q Exit after obtaining lease
  4478. \& \-R Release IP on exit
  4479. \& \-f Run in foreground
  4480. \& \-b Background if lease is not obtained
  4481. \& \-S Log to syslog too
  4482. \& \-a[MSEC] Validate offered address with ARP ping
  4483. \& \-r IP Request this IP address
  4484. \& \-o Don\*(Aqt request any options (unless \-O is given)
  4485. \& \-O OPT Request option OPT from server (cumulative)
  4486. \& \-x OPT:VAL Include option OPT in sent packets (cumulative)
  4487. \& Examples of string, numeric, and hex byte opts:
  4488. \& \-x hostname:bbox \- option 12
  4489. \& \-x lease:3600 \- option 51 (lease time)
  4490. \& \-x 0x3d:0100BEEFC0FFEE \- option 61 (client id)
  4491. \& \-F NAME Ask server to update DNS mapping for NAME
  4492. \& \-V VENDOR Vendor identifier (default \*(Aqudhcp VERSION\*(Aq)
  4493. \& \-C Don\*(Aqt send MAC as client identifier
  4494. \& \-v Verbose
  4495. \&Signals:
  4496. \&
  4497. \& USR1 Renew lease
  4498. \& USR2 Release lease
  4499. .Ve
  4500. .IP "\fBudhcpd\fR" 4
  4501. .IX Item "udhcpd"
  4502. udhcpd [\-fS] [\-I \s-1ADDR\s0] [\s-1CONFFILE\s0]
  4503. .Sp
  4504. \&\s-1DHCP\s0 server
  4505. .Sp
  4506. .Vb 4
  4507. \& \-f Run in foreground
  4508. \& \-S Log to syslog too
  4509. \& \-I ADDR Local address
  4510. \& \-a MSEC Timeout for ARP ping (default 2000)
  4511. .Ve
  4512. .IP "\fBudpsvd\fR" 4
  4513. .IX Item "udpsvd"
  4514. udpsvd [\-hEv] [\-c N] [\-u \s-1USER\s0] [\-l \s-1NAME\s0] \s-1IP PORT PROG\s0
  4515. .Sp
  4516. Create \s-1UDP\s0 socket, bind to \s-1IP:PORT\s0 and wait for incoming packets.
  4517. Run \s-1PROG\s0 for each packet, redirecting all further packets with same
  4518. peer ip:port to it.
  4519. .Sp
  4520. .Vb 8
  4521. \& IP PORT IP:PORT to listen on
  4522. \& PROG ARGS Program to run
  4523. \& \-u USER[:GRP] Change to user/group after bind
  4524. \& \-c N Up to N connections simultaneously (default 30)
  4525. \& \-E Don\*(Aqt set up environment
  4526. \& \-h Look up peer\*(Aqs hostname
  4527. \& \-l NAME Local hostname (else look up local hostname in DNS)
  4528. \& \-v Verbose
  4529. .Ve
  4530. .Sp
  4531. Environment if no \-E:
  4532. PROTO='\s-1UDP\s0'
  4533. UDPREMOTEADDR='ip:port' ('[ip]:port' for IPv6)
  4534. UDPLOCALADDR='ip:port'
  4535. If \-h:
  4536. UDPLOCALHOST='hostname' (\-l \s-1NAME\s0 is used if specified)
  4537. UDPREMOTEHOST='hostname'
  4538. .IP "\fBuevent\fR" 4
  4539. .IX Item "uevent"
  4540. uevent [\s-1PROG\s0 [\s-1ARGS\s0]]
  4541. .Sp
  4542. uevent runs \s-1PROG\s0 for every netlink notification.
  4543. \&\s-1PROG\s0's environment contains data passed from the kernel.
  4544. Typical usage (daemon for dynamic device node creation):
  4545. # uevent mdev & mdev \-s
  4546. .IP "\fBumount\fR" 4
  4547. .IX Item "umount"
  4548. umount [\s-1OPTIONS\s0] FILESYSTEM|DIRECTORY
  4549. .Sp
  4550. Unmount file systems
  4551. .Sp
  4552. .Vb 5
  4553. \& \-a Unmount all file systems
  4554. \& \-r Try to remount devices as read\-only if mount is busy
  4555. \& \-l Lazy umount (detach filesystem)
  4556. \& \-f Force umount (i.e., unreachable NFS server)
  4557. \& \-d Free loop device if it has been used
  4558. .Ve
  4559. .IP "\fBuname\fR" 4
  4560. .IX Item "uname"
  4561. uname [\-amnrspvio]
  4562. .Sp
  4563. Print system information
  4564. .Sp
  4565. .Vb 9
  4566. \& \-a Print all
  4567. \& \-m The machine (hardware) type
  4568. \& \-n Hostname
  4569. \& \-r Kernel release
  4570. \& \-s Kernel name (default)
  4571. \& \-p Processor type
  4572. \& \-v Kernel version
  4573. \& \-i The hardware platform
  4574. \& \-o OS name
  4575. .Ve
  4576. .IP "\fBunexpand\fR" 4
  4577. .IX Item "unexpand"
  4578. unexpand [\-fa][\-t N] [\s-1FILE\s0]...
  4579. .Sp
  4580. Convert spaces to tabs, writing to stdout
  4581. .Sp
  4582. .Vb 3
  4583. \& \-a Convert all blanks
  4584. \& \-f Convert only leading blanks
  4585. \& \-t N Tabstops every N chars
  4586. .Ve
  4587. .IP "\fBuniq\fR" 4
  4588. .IX Item "uniq"
  4589. uniq [\-cdu][\-f,s,w N] [\s-1INPUT\s0 [\s-1OUTPUT\s0]]
  4590. .Sp
  4591. Discard duplicate lines
  4592. .Sp
  4593. .Vb 7
  4594. \& \-c Prefix lines by the number of occurrences
  4595. \& \-d Only print duplicate lines
  4596. \& \-u Only print unique lines
  4597. \& \-i Ignore case
  4598. \& \-f N Skip first N fields
  4599. \& \-s N Skip first N chars (after any skipped fields)
  4600. \& \-w N Compare N characters in line
  4601. .Ve
  4602. .IP "\fBunix2dos\fR" 4
  4603. .IX Item "unix2dos"
  4604. unix2dos [\-ud] [\s-1FILE\s0]
  4605. .Sp
  4606. Convert \s-1FILE\s0 in-place from Unix to \s-1DOS\s0 format.
  4607. When no file is given, use stdin/stdout.
  4608. .Sp
  4609. .Vb 2
  4610. \& \-u dos2unix
  4611. \& \-d unix2dos
  4612. .Ve
  4613. .IP "\fBunlink\fR" 4
  4614. .IX Item "unlink"
  4615. unlink \s-1FILE\s0
  4616. .Sp
  4617. Delete \s-1FILE\s0 by calling \fIunlink()\fR
  4618. .IP "\fBunlzma\fR" 4
  4619. .IX Item "unlzma"
  4620. unlzma [\-cfk] [\s-1FILE\s0]...
  4621. .Sp
  4622. Decompress \s-1FILE\s0 (or stdin)
  4623. .Sp
  4624. .Vb 3
  4625. \& \-c Write to stdout
  4626. \& \-f Force
  4627. \& \-k Keep input files
  4628. .Ve
  4629. .IP "\fBunshare\fR" 4
  4630. .IX Item "unshare"
  4631. unshare [\s-1OPTIONS\s0] [\s-1PROG\s0 [\s-1ARGS\s0]]
  4632. .Sp
  4633. .Vb 12
  4634. \& \-m,\-\-mount[=FILE] Unshare mount namespace
  4635. \& \-u,\-\-uts[=FILE] Unshare UTS namespace (hostname etc.)
  4636. \& \-i,\-\-ipc[=FILE] Unshare System V IPC namespace
  4637. \& \-n,\-\-net[=FILE] Unshare network namespace
  4638. \& \-p,\-\-pid[=FILE] Unshare PID namespace
  4639. \& \-U,\-\-user[=FILE] Unshare user namespace
  4640. \& \-f,\-\-fork Fork before execing PROG
  4641. \& \-r,\-\-map\-root\-user Map current user to root (implies \-U)
  4642. \& \-\-mount\-proc[=DIR] Mount /proc filesystem first (implies \-m)
  4643. \& \-\-propagation slave|shared|private|unchanged
  4644. \& Modify mount propagation in mount namespace
  4645. \& \-\-setgroups allow|deny Control the setgroups syscall in user namespaces
  4646. .Ve
  4647. .IP "\fBunxz\fR" 4
  4648. .IX Item "unxz"
  4649. unxz [\-cfk] [\s-1FILE\s0]...
  4650. .Sp
  4651. Decompress \s-1FILE\s0 (or stdin)
  4652. .Sp
  4653. .Vb 3
  4654. \& \-c Write to stdout
  4655. \& \-f Force
  4656. \& \-k Keep input files
  4657. .Ve
  4658. .IP "\fBunzip\fR" 4
  4659. .IX Item "unzip"
  4660. unzip [\-lnojpq] FILE[.zip] [\s-1FILE\s0]... [\-x \s-1FILE...\s0] [\-d \s-1DIR\s0]
  4661. .Sp
  4662. Extract FILEs from \s-1ZIP\s0 archive
  4663. .Sp
  4664. .Vb 8
  4665. \& \-l List contents (with \-q for short form)
  4666. \& \-n Never overwrite files (default: ask)
  4667. \& \-o Overwrite
  4668. \& \-j Do not restore paths
  4669. \& \-p Print to stdout
  4670. \& \-q Quiet
  4671. \& \-x FILE Exclude FILEs
  4672. \& \-d DIR Extract into DIR
  4673. .Ve
  4674. .IP "\fBuptime\fR" 4
  4675. .IX Item "uptime"
  4676. uptime
  4677. .Sp
  4678. Display the time since the last boot
  4679. .IP "\fBusers\fR" 4
  4680. .IX Item "users"
  4681. users
  4682. .Sp
  4683. Print the users currently logged on
  4684. .IP "\fBusleep\fR" 4
  4685. .IX Item "usleep"
  4686. usleep N
  4687. .Sp
  4688. Pause for N microseconds
  4689. .IP "\fBuudecode\fR" 4
  4690. .IX Item "uudecode"
  4691. uudecode [\-o \s-1OUTFILE\s0] [\s-1INFILE\s0]
  4692. .Sp
  4693. Uudecode a file
  4694. Finds \s-1OUTFILE\s0 in uuencoded source unless \-o is given
  4695. .IP "\fBuuencode\fR" 4
  4696. .IX Item "uuencode"
  4697. uuencode [\-m] [\s-1FILE\s0] \s-1STORED_FILENAME\s0
  4698. .Sp
  4699. Uuencode \s-1FILE\s0 (or stdin) to stdout
  4700. .Sp
  4701. .Vb 1
  4702. \& \-m Use base64 encoding per RFC1521
  4703. .Ve
  4704. .IP "\fBvconfig\fR" 4
  4705. .IX Item "vconfig"
  4706. vconfig \s-1COMMAND\s0 [\s-1OPTIONS\s0]
  4707. .Sp
  4708. Create and remove virtual ethernet devices
  4709. .Sp
  4710. .Vb 6
  4711. \& add IFACE VLAN_ID
  4712. \& rem VLAN_NAME
  4713. \& set_flag IFACE 0|1 VLAN_QOS
  4714. \& set_egress_map VLAN_NAME SKB_PRIO VLAN_QOS
  4715. \& set_ingress_map VLAN_NAME SKB_PRIO VLAN_QOS
  4716. \& set_name_type NAME_TYPE
  4717. .Ve
  4718. .IP "\fBvi\fR" 4
  4719. .IX Item "vi"
  4720. vi [\s-1OPTIONS\s0] [\s-1FILE\s0]...
  4721. .Sp
  4722. Edit \s-1FILE\s0
  4723. .Sp
  4724. .Vb 3
  4725. \& \-c CMD Initial command to run ($EXINIT also available)
  4726. \& \-R Read\-only
  4727. \& \-H List available features
  4728. .Ve
  4729. .IP "\fBvlock\fR" 4
  4730. .IX Item "vlock"
  4731. vlock [\-a]
  4732. .Sp
  4733. Lock a virtual terminal. A password is required to unlock.
  4734. .Sp
  4735. .Vb 1
  4736. \& \-a Lock all VTs
  4737. .Ve
  4738. .IP "\fBvolname\fR" 4
  4739. .IX Item "volname"
  4740. volname [\s-1DEVICE\s0]
  4741. .Sp
  4742. Show \s-1CD\s0 volume name of the \s-1DEVICE\s0 (default /dev/cdrom)
  4743. .IP "\fBw\fR" 4
  4744. .IX Item "w"
  4745. w
  4746. .Sp
  4747. Show who is logged on
  4748. .IP "\fBwall\fR" 4
  4749. .IX Item "wall"
  4750. wall [\s-1FILE\s0]
  4751. .Sp
  4752. Write content of \s-1FILE\s0 or stdin to all logged-in users
  4753. .IP "\fBwatch\fR" 4
  4754. .IX Item "watch"
  4755. watch [\-n \s-1SEC\s0] [\-t] \s-1PROG ARGS\s0
  4756. .Sp
  4757. Run \s-1PROG\s0 periodically
  4758. .Sp
  4759. .Vb 2
  4760. \& \-n Loop period in seconds (default 2)
  4761. \& \-t Don\*(Aqt print header
  4762. .Ve
  4763. .IP "\fBwatchdog\fR" 4
  4764. .IX Item "watchdog"
  4765. watchdog [\-t N[ms]] [\-T N[ms]] [\-F] \s-1DEV\s0
  4766. .Sp
  4767. Periodically write to watchdog device \s-1DEV\s0
  4768. .Sp
  4769. .Vb 3
  4770. \& \-T N Reboot after N seconds if not reset (default 60)
  4771. \& \-t N Reset every N seconds (default 30)
  4772. \& \-F Run in foreground
  4773. .Ve
  4774. .Sp
  4775. Use 500ms to specify period in milliseconds
  4776. .IP "\fBwc\fR" 4
  4777. .IX Item "wc"
  4778. wc [\-cmlwL] [\s-1FILE\s0]...
  4779. .Sp
  4780. Count lines, words, and bytes for each \s-1FILE\s0 (or stdin)
  4781. .Sp
  4782. .Vb 5
  4783. \& \-c Count bytes
  4784. \& \-m Count characters
  4785. \& \-l Count newlines
  4786. \& \-w Count words
  4787. \& \-L Print longest line length
  4788. .Ve
  4789. .IP "\fBwget\fR" 4
  4790. .IX Item "wget"
  4791. wget [\-c|\-\-continue] [\-\-spider] [\-q|\-\-quiet] [\-O|\-\-output\-document \s-1FILE\s0]
  4792. [\-\-header 'header: value'] [\-Y|\-\-proxy on/off] [\-P \s-1DIR\s0]
  4793. [\-S|\-\-server\-response] [\-U|\-\-user\-agent \s-1AGENT\s0] [\-T \s-1SEC\s0] \s-1URL...\s0
  4794. .Sp
  4795. Retrieve files via \s-1HTTP\s0 or \s-1FTP\s0
  4796. .Sp
  4797. .Vb 9
  4798. \& \-\-spider Only check URL existence: $? is 0 if exists
  4799. \& \-c Continue retrieval of aborted transfer
  4800. \& \-q Quiet
  4801. \& \-P DIR Save to DIR (default .)
  4802. \& \-S Show server response
  4803. \& \-T SEC Network read timeout is SEC seconds
  4804. \& \-O FILE Save to FILE (\*(Aq\-\*(Aq for stdout)
  4805. \& \-U STR Use STR for User\-Agent header
  4806. \& \-Y on/off Use proxy
  4807. .Ve
  4808. .IP "\fBwhich\fR" 4
  4809. .IX Item "which"
  4810. which [\s-1COMMAND\s0]...
  4811. .Sp
  4812. Locate a \s-1COMMAND\s0
  4813. .IP "\fBwho\fR" 4
  4814. .IX Item "who"
  4815. who [\-a]
  4816. .Sp
  4817. Show who is logged on
  4818. .Sp
  4819. .Vb 2
  4820. \& \-a Show all
  4821. \& \-H Print column headers
  4822. .Ve
  4823. .IP "\fBwhoami\fR" 4
  4824. .IX Item "whoami"
  4825. whoami
  4826. .Sp
  4827. Print the user name associated with the current effective user id
  4828. .IP "\fBwhois\fR" 4
  4829. .IX Item "whois"
  4830. whois [\-i] [\-h \s-1SERVER\s0] [\-p \s-1PORT\s0] \s-1NAME...\s0
  4831. .Sp
  4832. Query \s-1WHOIS\s0 info about \s-1NAME\s0
  4833. .Sp
  4834. .Vb 2
  4835. \& \-i Show redirect results too
  4836. \& \-h,\-p Server to query
  4837. .Ve
  4838. .IP "\fBxargs\fR" 4
  4839. .IX Item "xargs"
  4840. xargs [\s-1OPTIONS\s0] [\s-1PROG ARGS\s0]
  4841. .Sp
  4842. Run \s-1PROG\s0 on every item given by stdin
  4843. .Sp
  4844. .Vb 11
  4845. \& \-p Ask user whether to run each command
  4846. \& \-r Don\*(Aqt run command if input is empty
  4847. \& \-0 Input is separated by NUL characters
  4848. \& \-a FILE Read from FILE instead of stdin
  4849. \& \-t Print the command on stderr before execution
  4850. \& \-e[STR] STR stops input processing
  4851. \& \-n N Pass no more than N args to PROG
  4852. \& \-s N Pass command line of no more than N bytes
  4853. \& \-I STR Replace STR within PROG ARGS with input line
  4854. \& \-P N Run up to N PROGs in parallel
  4855. \& \-x Exit if size is exceeded
  4856. .Ve
  4857. .IP "\fBxxd\fR" 4
  4858. .IX Item "xxd"
  4859. xxd [\s-1OPTIONS\s0] [\s-1FILE\s0]
  4860. .Sp
  4861. Hex dump \s-1FILE\s0 (or stdin)
  4862. .Sp
  4863. .Vb 5
  4864. \& \-g N Bytes per group
  4865. \& \-c N Bytes per line
  4866. \& \-p Show only hex bytes, assumes \-c30
  4867. \& \-l LENGTH Show only first LENGTH bytes
  4868. \& \-s OFFSET Skip OFFSET bytes
  4869. .Ve
  4870. .IP "\fBxz\fR" 4
  4871. .IX Item "xz"
  4872. xz \-d [\-cfk] [\s-1FILE\s0]...
  4873. .Sp
  4874. Decompress \s-1FILE\s0 (or stdin)
  4875. .Sp
  4876. .Vb 4
  4877. \& \-d Decompress
  4878. \& \-c Write to stdout
  4879. \& \-f Force
  4880. \& \-k Keep input files
  4881. .Ve
  4882. .IP "\fBxzcat\fR" 4
  4883. .IX Item "xzcat"
  4884. xzcat [\s-1FILE\s0]...
  4885. .Sp
  4886. Decompress to stdout
  4887. .IP "\fByes\fR" 4
  4888. .IX Item "yes"
  4889. yes [\s-1STRING\s0]
  4890. .Sp
  4891. Repeatedly output a line with \s-1STRING,\s0 or 'y'
  4892. .IP "\fBzcat\fR" 4
  4893. .IX Item "zcat"
  4894. zcat [\s-1FILE\s0]...
  4895. .Sp
  4896. Decompress to stdout
  4897. .IP "\fBzcip\fR" 4
  4898. .IX Item "zcip"
  4899. zcip [\s-1OPTIONS\s0] \s-1IFACE SCRIPT\s0
  4900. .Sp
  4901. Manage a ZeroConf IPv4 link-local address
  4902. .Sp
  4903. .Vb 5
  4904. \& \-f Run in foreground
  4905. \& \-q Quit after obtaining address
  4906. \& \-r 169.254.x.x Request this address first
  4907. \& \-l x.x.0.0 Use this range instead of 169.254
  4908. \& \-v Verbose
  4909. .Ve
  4910. .Sp
  4911. \&\f(CW$LOGGING\fR=none Suppress logging
  4912. \&\f(CW$LOGGING\fR=syslog Log to syslog
  4913. .Sp
  4914. With no \-q, runs continuously monitoring for \s-1ARP\s0 conflicts,
  4915. exits only on I/O errors (link down etc)
  4916. .SH "LIBC NSS"
  4917. .IX Header "LIBC NSS"
  4918. \&\s-1GNU\s0 Libc (glibc) uses the Name Service Switch (\s-1NSS\s0) to configure the behavior
  4919. of the C library for the local environment, and to configure how it reads
  4920. system data, such as passwords and group information. This is implemented
  4921. using an /etc/nsswitch.conf configuration file, and using one or more of the
  4922. /lib/libnss_* libraries. BusyBox tries to avoid using any libc calls that make
  4923. use of \s-1NSS.\s0 Some applets however, such as login and su, will use libc functions
  4924. that require \s-1NSS.\s0
  4925. .PP
  4926. If you enable \s-1CONFIG_USE_BB_PWD_GRP,\s0 BusyBox will use internal functions to
  4927. directly access the /etc/passwd, /etc/group, and /etc/shadow files without
  4928. using \s-1NSS.\s0 This may allow you to run your system without the need for
  4929. installing any of the \s-1NSS\s0 configuration files and libraries.
  4930. .PP
  4931. When used with glibc, the BusyBox 'networking' applets will similarly require
  4932. that you install at least some of the glibc \s-1NSS\s0 stuff (in particular,
  4933. /etc/nsswitch.conf, /lib/libnss_dns*, /lib/libnss_files*, and /lib/libresolv*).
  4934. .PP
  4935. Shameless Plug: As an alternative, one could use a C library such as uClibc. In
  4936. addition to making your system significantly smaller, uClibc does not require the
  4937. use of any \s-1NSS\s0 support files or libraries.
  4938. .SH "MAINTAINER"
  4939. .IX Header "MAINTAINER"
  4940. Denis Vlasenko <vda.linux@googlemail.com>
  4941. .SH "AUTHORS"
  4942. .IX Header "AUTHORS"
  4943. The following people have contributed code to BusyBox whether they know it or
  4944. not. If you have written code included in BusyBox, you should probably be
  4945. listed here so you can obtain your bit of eternal glory. If you should be
  4946. listed here, or the description of what you have done needs more detail, or is
  4947. incorrect, please send in an update.
  4948. .PP
  4949. Emanuele Aina <emanuele.aina@tiscali.it>
  4950. run-parts
  4951. .PP
  4952. Erik Andersen <andersen@codepoet.org>
  4953. .PP
  4954. .Vb 4
  4955. \& Tons of new stuff, major rewrite of most of the
  4956. \& core apps, tons of new apps as noted in header files.
  4957. \& Lots of tedious effort writing these boring docs that
  4958. \& nobody is going to actually read.
  4959. .Ve
  4960. .PP
  4961. Laurence Anderson <l.d.anderson@warwick.ac.uk>
  4962. .PP
  4963. .Vb 1
  4964. \& rpm2cpio, unzip, get_header_cpio, read_gz interface, rpm
  4965. .Ve
  4966. .PP
  4967. Jeff Angielski <jeff@theptrgroup.com>
  4968. .PP
  4969. .Vb 1
  4970. \& ftpput, ftpget
  4971. .Ve
  4972. .PP
  4973. Edward Betts <edward@debian.org>
  4974. .PP
  4975. .Vb 1
  4976. \& expr, hostid, logname, whoami
  4977. .Ve
  4978. .PP
  4979. John Beppu <beppu@codepoet.org>
  4980. .PP
  4981. .Vb 1
  4982. \& du, nslookup, sort
  4983. .Ve
  4984. .PP
  4985. Brian Candler <B.Candler@pobox.com>
  4986. .PP
  4987. .Vb 1
  4988. \& tiny\-ls(ls)
  4989. .Ve
  4990. .PP
  4991. Randolph Chung <tausq@debian.org>
  4992. .PP
  4993. .Vb 1
  4994. \& fbset, ping, hostname
  4995. .Ve
  4996. .PP
  4997. Dave Cinege <dcinege@psychosis.com>
  4998. .PP
  4999. .Vb 2
  5000. \& more(v2), makedevs, dutmp, modularization, auto links file,
  5001. \& various fixes, Linux Router Project maintenance
  5002. .Ve
  5003. .PP
  5004. Jordan Crouse <jordan@cosmicpenguin.net>
  5005. .PP
  5006. .Vb 1
  5007. \& ipcalc
  5008. .Ve
  5009. .PP
  5010. Magnus Damm <damm@opensource.se>
  5011. .PP
  5012. .Vb 1
  5013. \& tftp client insmod powerpc support
  5014. .Ve
  5015. .PP
  5016. Larry Doolittle <ldoolitt@recycle.lbl.gov>
  5017. .PP
  5018. .Vb 1
  5019. \& pristine source directory compilation, lots of patches and fixes.
  5020. .Ve
  5021. .PP
  5022. Glenn Engel <glenne@engel.org>
  5023. .PP
  5024. .Vb 1
  5025. \& httpd
  5026. .Ve
  5027. .PP
  5028. Gennady Feldman <gfeldman@gena01.com>
  5029. .PP
  5030. .Vb 2
  5031. \& Sysklogd (single threaded syslogd, IPC Circular buffer support,
  5032. \& logread), various fixes.
  5033. .Ve
  5034. .PP
  5035. Karl M. Hegbloom <karlheg@debian.org>
  5036. .PP
  5037. .Vb 1
  5038. \& cp_mv.c, the test suite, various fixes to utility.c, &c.
  5039. .Ve
  5040. .PP
  5041. Daniel Jacobowitz <dan@debian.org>
  5042. .PP
  5043. .Vb 1
  5044. \& mktemp.c
  5045. .Ve
  5046. .PP
  5047. Matt Kraai <kraai@alumni.cmu.edu>
  5048. .PP
  5049. .Vb 1
  5050. \& documentation, bugfixes, test suite
  5051. .Ve
  5052. .PP
  5053. Stephan Linz <linz@li\-pro.net>
  5054. .PP
  5055. .Vb 1
  5056. \& ipcalc, Red Hat equivalence
  5057. .Ve
  5058. .PP
  5059. John Lombardo <john@deltanet.com>
  5060. .PP
  5061. .Vb 1
  5062. \& tr
  5063. .Ve
  5064. .PP
  5065. Glenn McGrath <bug1@iinet.net.au>
  5066. .PP
  5067. .Vb 3
  5068. \& Common unarchiving code and unarchiving applets, ifupdown, ftpgetput,
  5069. \& nameif, sed, patch, fold, install, uudecode.
  5070. \& Various bugfixes, review and apply numerous patches.
  5071. .Ve
  5072. .PP
  5073. Manuel Novoa \s-1III\s0 <mjn3@codepoet.org>
  5074. .PP
  5075. .Vb 3
  5076. \& cat, head, mkfifo, mknod, rmdir, sleep, tee, tty, uniq, usleep, wc, yes,
  5077. \& mesg, vconfig, make_directory, parse_mode, dirname, mode_string,
  5078. \& get_last_path_component, simplify_path, and a number trivial libbb routines
  5079. \&
  5080. \& also bug fixes, partial rewrites, and size optimizations in
  5081. \& ash, basename, cal, cmp, cp, df, du, echo, env, ln, logname, md5sum, mkdir,
  5082. \& mv, realpath, rm, sort, tail, touch, uname, watch, arith, human_readable,
  5083. \& interface, dutmp, ifconfig, route
  5084. .Ve
  5085. .PP
  5086. Vladimir Oleynik <dzo@simtreas.ru>
  5087. .PP
  5088. .Vb 4
  5089. \& cmdedit; xargs(current), httpd(current);
  5090. \& ports: ash, crond, fdisk, inetd, stty, traceroute, top;
  5091. \& locale, various fixes
  5092. \& and irreconcilable critic of everything not perfect.
  5093. .Ve
  5094. .PP
  5095. Bruce Perens <bruce@pixar.com>
  5096. .PP
  5097. .Vb 2
  5098. \& Original author of BusyBox in 1995, 1996. Some of his code can
  5099. \& still be found hiding here and there...
  5100. .Ve
  5101. .PP
  5102. Tim Riker <Tim@Rikers.org>
  5103. .PP
  5104. .Vb 1
  5105. \& bug fixes, member of fan club
  5106. .Ve
  5107. .PP
  5108. Kent Robotti <robotti@metconnect.com>
  5109. .PP
  5110. .Vb 1
  5111. \& reset, tons and tons of bug reports and patches.
  5112. .Ve
  5113. .PP
  5114. Chip Rosenthal <chip@unicom.com>, <crosenth@covad.com>
  5115. .PP
  5116. .Vb 1
  5117. \& wget \- Contributed by permission of Covad Communications
  5118. .Ve
  5119. .PP
  5120. Pavel Roskin <proski@gnu.org>
  5121. .PP
  5122. .Vb 1
  5123. \& Lots of bugs fixes and patches.
  5124. .Ve
  5125. .PP
  5126. Gyepi Sam <gyepi@praxis\-sw.com>
  5127. .PP
  5128. .Vb 1
  5129. \& Remote logging feature for syslogd
  5130. .Ve
  5131. .PP
  5132. Linus Torvalds <torvalds@transmeta.com>
  5133. .PP
  5134. .Vb 1
  5135. \& mkswap, fsck.minix, mkfs.minix
  5136. .Ve
  5137. .PP
  5138. Mark Whitley <markw@codepoet.org>
  5139. .PP
  5140. .Vb 2
  5141. \& grep, sed, cut, xargs(previous),
  5142. \& style\-guide, new\-applet\-HOWTO, bug fixes, etc.
  5143. .Ve
  5144. .PP
  5145. Charles P. Wright <cpwright@villagenet.com>
  5146. .PP
  5147. .Vb 1
  5148. \& gzip, mini\-netcat(nc)
  5149. .Ve
  5150. .PP
  5151. Enrique Zanardi <ezanardi@ull.es>
  5152. .PP
  5153. .Vb 1
  5154. \& tarcat (since removed), loadkmap, various fixes, Debian maintenance
  5155. .Ve
  5156. .PP
  5157. Tito Ragusa <farmatito@tiscali.it>
  5158. .PP
  5159. .Vb 1
  5160. \& devfsd and size optimizations in strings, openvt and deallocvt.
  5161. .Ve
  5162. .PP
  5163. Paul Fox <pgf@foxharp.boston.ma.us>
  5164. .PP
  5165. .Vb 1
  5166. \& vi editing mode for ash, various other patches/fixes
  5167. .Ve
  5168. .PP
  5169. Roberto A. Foglietta <me@roberto.foglietta.name>
  5170. .PP
  5171. .Vb 1
  5172. \& port: dnsd
  5173. .Ve
  5174. .PP
  5175. Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  5176. .PP
  5177. .Vb 1
  5178. \& misc
  5179. .Ve
  5180. .PP
  5181. Mike Frysinger <vapier@gentoo.org>
  5182. .PP
  5183. .Vb 1
  5184. \& initial e2fsprogs, printenv, setarch, sum, misc
  5185. .Ve
  5186. .PP
  5187. Jie Zhang <jie.zhang@analog.com>
  5188. .PP
  5189. .Vb 1
  5190. \& fixed two bugs in msh and hush (exitcode of killed processes)
  5191. .Ve