More (command)

more
Original author(s)Daniel Halbert, Eric Shienbrood, Geoff Peck,[1] John Foderaro[2]
Developer(s)DR, Microsoft, IBM, Toshiba, TSL, Jim Hall
Initial release1978, 46–47 years ago
Written inMS-DOS, PC-MOS: x86 assembly language
FreeDOS, ReactOS: C
Operating systemCross-platform
TypeCommand
LicenseUnix, Unix-like: BSD License, CDDL
MS-DOS: MIT
FreeDOS, ReactOS: GPL v2
PC-MOS: GPL v3

In computing, more is a command to view (but not modify) the contents of a text file one screen at a time. It is available on Unix and Unix-like systems, DOS,[3] Digital Research FlexOS,[4] IBM/Toshiba 4690 OS,[5] IBM OS/2,[6] Microsoft Windows and ReactOS.[7] Programs of this sort are called pagers.[8] more is a very basic pager, originally allowing only forward navigation through a file, though newer implementations do allow for limited backward movement.

History

The more command was originally written by Daniel Halbert, a graduate student at the University of California, Berkeley, in 1978. It was later expanded on by Eric Shienbrood, Geoff Peck (added underlining, single spacing) and John Foderaro (added -c, more environment variable history). It was first included in 3.0 BSD, and has since become a standard program in all Unix systems. less, a similar command with the extended capability of allowing both forward and backward navigation through the file, was written by Mark Nudelman between 1983 and 1985 and is now included in most Unix and Unix-like systems.

The command is available in MS-DOS versions 2 and later.[9] A more command is also part of ASCII's MSX-DOS2 Tools for MSX-DOS version 2.[10] The Software Link's PC-MOS includes an implementation of more.[11] Like the rest of the operating system, it is licensed under the GPL v3.[12] The FreeDOS version was developed by Jim Hall and is licensed under the GPL v2.[13] The command is also available in the KolibriOS Shell.[14]

The numerical computing environments MATLAB and GNU Octave include a more function that turns output pagination on or off.[15][16]

Usage

Unix-like

The command-syntax is:

more [options] [file_name]

If no file name is provided, more looks for input from standard input.

Once more has obtained input, it displays as much as can fit on the current screen and waits for user input to advance, with the exception that a form feed (^L) will also cause more to wait at that line, regardless of the amount of text on the screen. In the lower-left corner of the screen is displayed the text "--More--" and a percentage, representing the percent of the file that more has paged through. (This percentage includes the text displayed on the current screen.) When more reaches the end of a file (100%) it exits. The most common methods of navigating through a file are Enter, which advances the output by one line, and Space, which advances the output by one screen.

There are also other commands that can be used while navigating through the document; consult more's man page for more details.[17]

Options

Options are typically entered before the file name, but can also be entered in the environment variable $MORE. Options entered in the actual command line will override those entered in the $MORE environment variable. Available options may vary between Unix systems, but a typical set of options is as follows:

  • -num: This option specifies an integer which is the screen size (in lines).
  • -d: more will prompt the user with the message [Press space to continue, 'q' to quit.] and will display [Press 'h' for instructions.] instead of ringing the bell when an illegal key is pressed.
  • -l: more usually treats ^L (form feed) as a special character, and will pause after any line that contains a form feed. The -l option will prevent this behavior.
  • -f: Causes more to count logical, rather than screen lines (i.e., long lines are not folded).
  • -p: Do not scroll. Instead, clear the whole screen and then display the text.
  • -c: Do not scroll. Instead, paint each screen from the top, clearing the remainder of each line as it is displayed.
  • -s: Squeeze multiple blank lines into one.
  • -u: Backspaces and carriage returns to be treated as printable characters;
  • +/: This option specifies a string that will be searched for before each file is displayed. (Ex.: more +/Preamble gpl.txt)
  • +num: Start at line number num.

Microsoft Windows and ReactOS

The ReactOS more command

The command-syntax is:[18]

command | more [/c] [/p] [/s] [/tn] [+n]
more [[/c] [/p] [/s] [/tn] [+n]] < [Drive:] [Path] FileName
more [/c] [/p] [/s] [/tn] [+n] [files]

Examples

To display the file named letter.txt on the screen, the user can type either of the following two commands:

more letter.txt
type letter.txt | more

The command displays the first screen of information from letter.txt, and then the following prompt appears:

-- More—When the spacebar is pressed, the next screen of information will be displayed.

It is also possible to clear the screen and remove all extra blank lines before displaying the file:

more /c /s < letter.txt
type letter.txt | more /c /s

IBM OS/2

The command-syntax is:

MORE < [drive:][path]filename
command | more
  • drive:\path\filename – Specifies the location of the file to display one screen at a time.
  • command | – Specifies the command whose output will be displayed.

Example

Return the content of the OS/2 system directory using the dir command and display it one screen at a time using the more command:

[C:\]dir C:\OS2 | more

See also

References

  1. ^ Early history of the more command
  2. ^ more(1) — Linux manual pages
  3. ^ "ibiblio.org FreeDOS Group -- FreeDOS Base". www.ibiblio.org.
  4. ^ "Users guide" (PDF). www.bitsavers.org. Retrieved 2020-01-30.
  5. ^ [1][dead link]
  6. ^ "JaTomes Help - OS/2 Commands". www.jatomes.com.
  7. ^ "reactos/reactos". GitHub. 3 January 2022.
  8. ^ "pager from FOLDOC". foldoc.org.
  9. ^ Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. ISBN 0-7356-1812-7.
  10. ^ MSX-DOS2 Tools User's Manual by ASCII Corporation
  11. ^ "roelandjansen/pcmos386v501". GitHub. 2 January 2022.
  12. ^ Jansen, Roeland (8 February 2018). "pcmos386v501: PC-MOS/386 v5.01 final release including cdrom driver sources" – via GitHub.
  13. ^ "ibiblio.org FreeDOS Package -- more (FreeDOS Base)". www.ibiblio.org.
  14. ^ "Shell - KolibriOS wiki". wiki.kolibrios.org.
  15. ^ "Control paged output in Command Window - MATLAB more". www.mathworks.com.
  16. ^ "Function Reference: more". octave.sourceforge.io.
  17. ^ more: display files on a page-by-page basis – Shell and Utilities Reference, The Single UNIX Specification, Version 4 from The Open Group
  18. ^ "More". docs.microsoft.com.

Further reading

Read other articles:

В Википедии есть статьи о других людях с такой фамилией, см. Ивановский. Лев Константинович Ивановский Дата рождения 1845(1845) Дата смерти 9 (22) мая 1892(1892-05-22) Место смерти Петербург Страна  Российская империя Научная сфера археология, медицина Альма-матер Императорская мед...

 

Volcano that has erupted 1000 cubic km of lava in a single eruption For other uses, see Supervolcano (disambiguation). World map of known VEI 7 and VEI 8 volcanoes   VEI 8 (supervolcanoes)   VEI 7 A supervolcano is a volcano that has had an eruption with a volcanic explosivity index (VEI) of 8,[1] the largest recorded value on the index. This means the volume of deposits for such an eruption is greater than 1,000 cubic kilometers (240 cubic miles).[2] Locat...

 

У Вікіпедії є статті про інших людей із прізвищем Тома. Світлана Томарос. Светлана Тома Ім'я при народженні Світлана Андріївна ФомічоваНародилася 24 травня 1947(1947-05-24)[3][4][5] (76 років)Кишинів, СРСРГромадянство  СРСР РосіяДіяльність кіноакторка, акторкаРо...

Kapten TNI (Purn.)Junus Effendi HabibieDuta Besar Indonesia untuk BelandaMasa jabatan7 November 2006 – 31 Desember 2010PresidenSusilo Bambang YudhoyonoMenteri Luar NegeriHassan WirajudaMarty NatalegawaPendahuluMohammad YusufPenggantiRetno MarsudiDuta Besar Indonesia untuk Britania RayaMasa jabatan1993 – 1997(Merangkap Irlandia)PresidenSoehartoMenteri Luar NegeriAli AlatasPendahuluHadi ThayebPenggantiRahardjo Jamtomo Informasi pribadiLahirJunus Effendi Habibie(1937-06-11)...

 

يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها. (ديسمبر 2018) الكواكب الصغيرة:العابرة لمدار نبتون هي كل كويكب أو كوكب صغير يعبر مداره مدار كوكب نبتون (بالإنجليزية: Neptun...

 

Ini adalah nama Mandailing, marganya adalah Lubis. Raja Junjungan LubisAnggota Dewan Perwakilan RakyatMasa jabatan28 Oktober 1971 – 1 Oktober 1977PresidenSuhartoGubernur Sumatera UtaraMasa jabatan1 April 1960 – 5 April 1963PresidenSukarnoPendahuluZainal AbidinPenggantiEny KarimWali Kota SibolgaMasa jabatan11 Februari 1954 – 31 Desember 1957GubernurSutan Mohammad Amin NasutionZainal AbidinPendahuluIbnu Sa'danPenggantiD.E. Sutan BungaranBupati Tapanuli TengahMas...

Brand of manufactured snack For other uses, see Combo. CombosTypeSnackRegion or stateNorth AmericaCreated byMars, IncorporatedInvented1980s; 42 years ago (1980s)  Media: Combos Combos, officially called Combos Stuffed Snacks, are cylindrical tubes of cracker, pretzel, or tortilla, available with various fillings. History Combos Snacks, created in the early 1980s, are a snack food distributed by Mars, Incorporated, and sold throughout North America.[1] Though the ...

 

Military conflict between Aragon and Arborea (1353–1420) Sardinian–Catalan warThe battle of Sanluri by Giovanni MarghinottiDate1353–1420LocationSardiniaResult Aragonese victoryTerritorialchanges Arborea became part of Sardinia, thus making it part of Aragon.Belligerents Crown of Aragon Judicate of Arborea House of Doria Republic of Genoa The Sardinian–Aragonese war was a late medieval conflict lasting from 1353[1] to 1420. The fight was over supremacy of the land and t...

 

US Navy uniform badge This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article or section possibly contains synthesis of material which does not verifiably mention or relate to the main topic. Relevant discussion may be found on the talk page. (June 2009) (Learn how and when to remove this template message) This article needs additional citations for verification. Please help improve ...

Main battle tank TR-85 M1 A TR-85M1 during a multinational exercise in Germany, 2014.TypeMain battle tankPlace of originRomaniaService historyIn service1986–presentUsed byRomanian Land ForcesWarsRomanian Revolution of 1989Production historyDesignerInstitute 111Direcția Tancuri și AutoDesigned1978–1986ManufacturerMechanical Factory Bucharest (part of ROMARM military consortium).Produced1986-1990 (TR-85) 1997-2009 (TR-85M1 upgrade)[1]No. built617[2]...

 

The Right HonourableThe Lord GiddensGiddens at the Progressive Governance Conference, Budapest 2004Lahir18 Januari 1938 (umur 85)London, InggrisTempat tinggalInggrisKebangsaan BritaniaAlmamaterUniversitas Hull (BA) LSE (MA) Universitas Cambridge (PhD)Dikenal atasStructuration The Third WayKarier ilmiahBidangSosiologiInstitusiUniversitas Leicester Universitas Cambridge London School of Economics Anthony Giddens, Baron Giddens (lahir 18 Januari 1938) adalah sosiolog asal Britania Raya.[...

 

Хосе Малькампо-і-Монхеісп. José Malcampo Monge Голова Ради міністрів Іспанії 5 жовтня — 21 грудня 1871 року Монарх: Амадей I Попередник: Мануель Руїс Соррілья Наступник: Пракседес Матео Сагаста   Народження: 13 січня 1828(1828-01-13)[1]Сан-Фернандо, Кадіс, Андалусія, Іспанія Смерть:...

County in Arkansas, United States County in ArkansasPolk CountyCountyPolk County Courthouse in MenaLocation within the U.S. state of ArkansasArkansas's location within the U.S.Coordinates: 34°30′07″N 94°14′27″W / 34.501944444444°N 94.240833333333°W / 34.501944444444; -94.240833333333Country United StatesState ArkansasFoundedNovember 30, 1844Named forJames K. PolkSeatMenaLargest cityMenaArea • Total862 sq mi (2,230 km2)&#...

 

Conspiracy theory falsely accusing LGBT people of child grooming Part of a series onLGBT topics       LesbianGayBisexualTransgender Sexual orientation and gender Aromanticism Asexuality Gray asexuality Biology Bisexuality Pansexuality Demographics Environment Gender fluidity Gender identity Gender role Gender variance Homosexuality Intersex Non-heterosexual Non-binary gender Queer Queer heterosexuality Questioning Sexual identity Sex–gender distinction Trans ma...

 

Street food stall in Singapore Hong Kong Soya Sauce Chicken Rice and NoodleRestaurant informationHead chefChan Hon MengFood typeStreet foodStreet addressBlock 335 Smith St, #02-126, Chinatown Food Complex, Outram Planning AreaPostal/ZIP Code050335Country SingaporeCoordinates1°16′57″N 103°50′35″E / 1.282615°N 103.843048°E / 1.282615; 103.843048 Hong Kong Soya Sauce Chicken Rice and NoodleSimplified Chinese香港油鸡饭·面Traditional Chinese香...

This article is about the Metra station. For the CTA station, see O'Hare station. O'Hare Transfer General informationLocation10300 W. Zemke BoulevardChicago, Illinois 60666Coordinates41°59′42″N 87°52′50″W / 41.9950°N 87.8806°W / 41.9950; -87.8806Owned byCity of ChicagoPlatforms2 side platformsTracks2Connections ATS to O'Hare Airport Pace busesConstructionPlatform levels1ParkingNoAccessibleYesOther informationFare zoneDHistoryOpenedAugust 19, 1996[1...

 

American blues musician Taj MahalTaj Mahal in 2005BornHenry St. Claire Fredericks Jr. (1942-05-17) May 17, 1942 (age 81)Harlem, New York, U.S.Spouse(s)Anna de Leon, Inshirah Mahal (1976–Present)RelativesCarole Fredericks (sister), Aya de Leon (daughter), Deva Mahal (daughter)Musical careerGenres Blues blues rock R&B reggae jazz country blues world music Occupation(s) Musician songwriter Instrument(s) Vocals guitar banjo harmonica piano Years active1964–presentLabels Columbia Warn...

 

British botanical illustrator M.Sm. redirects here. Not to be confused with MSM. Matilda SmithBorn(1854-07-30)30 July 1854Mumbai, IndiaDied(1926-12-29)29 December 1926Kew, EnglandKnown forBotanical illustrationAwardsSilver Veitch Memorial Medal of the Royal Horticultural SocietyElectedLinnaean Society Matilda Smith (1854–1926) was a botanical artist whose work appeared in Curtis's Botanical Magazine for over forty years.[1] She became the first artist to depict New Zealand's fl...

Aseptik Z.Hrastnik Aseptik berarti bebas dari infeksi.[1] Aseptik adalah keadaan bebas dari mikroorganisme penyebab penyakit.[2] Teknik aseptik/asepsis adalah segala upaya yang dilakukan untuk mencegah masuknya mikroorganisme ke dalam tubuh yang kemungkinan besar akan mengakibatkan infeksi.[2] Tindakan asepsis ini bertujuan untuk mengurangi atau menghilangkan mikroorganisme yang terdapat pada permukaan benda hidup atau benda mati.[2] Tindakan ini meliputi antis...

 

Ez a szócikk az 1968-as amerikai filmről szól. Hasonló címmel lásd még: Furcsa pár (egyértelműsítő lap). Furcsa pár (The Odd Couple)1968-as amerikai filmRendező Gene SaksProducer Howard W. KochAlapműNeil SimonMűfaj filmvígjáték haverfilm Forgatókönyvíró Neil SimonFőszerepben Jack LemmonWalter MatthauZene Neal HeftiOperatőr Robert B. HauserVágó Frank BrachtJelmeztervező Jack BearDíszlettervező Robert R. BentonRay MoyerGyártásGyártó Paramount PicturesOrszág...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!