LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-12-2005, 12:05 PM   #1
TranceDude
Member
 
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 222

Rep: Reputation: 30
equivalent of DOS command /p


hi

what is the equivalent of the DOS command /p?
I want to view the output in my terminal page by page (I can't scroll back to the top)

greetz
 
Old 08-12-2005, 12:13 PM   #2
gooch
LQ Newbie
 
Registered: Jan 2005
Distribution: Arch, Debian, FreeBSD
Posts: 19

Rep: Reputation: 0
try adding | more to the end of the command

so to get a page length output with dir type 'dir | more'
 
Old 08-12-2005, 12:15 PM   #3
geeman2.0
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
Typically shift + PageUp or Pagedown will let you move up and down through the output history if you forgot to pipe it through 'more'.
But this doesn't always work for some reason
 
Old 08-12-2005, 12:15 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,084

Rep: Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610
In Linux, you create a series of commands to achieve a result.
This is called "piping" - uses the character "|".

In your case try
Code:
"what-ever command" | less
"less" is an updated "more"
 
Old 08-12-2005, 12:21 PM   #5
gooch
LQ Newbie
 
Registered: Jan 2005
Distribution: Arch, Debian, FreeBSD
Posts: 19

Rep: Reputation: 0
well i'll be damned lol :p

| more always worked for me so i didn't even think to try | less :D
 
Old 08-12-2005, 12:22 PM   #6
TranceDude
Member
 
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 222

Original Poster
Rep: Reputation: 30
thanks!
exactly what i needed

what is the meaning of less?

Last edited by TranceDude; 08-12-2005 at 12:41 PM.
 
Old 08-12-2005, 11:49 PM   #7
spes_hominis
Member
 
Registered: Jun 2004
Location: N. Ireland
Distribution: Zenwalk 6.2
Posts: 30

Rep: Reputation: 15
"more" can only scroll down. "less" scrolls up and down. Therefore, less is more (hackers love self-referencing jokes and plays on words).
For more information, read Newbie's Top Ten Commands.
*edit*
Dammit, I meant commands, not humour. For that, you need
The Jargon File.

Last edited by spes_hominis; 08-12-2005 at 11:56 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux equivalent to DOS "tree" command? XDude Linux - Newbie 10 09-25-2014 12:24 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
equivalent command in fedora pa_ash Linux - Software 0 06-28-2004 01:27 AM
DOS batch equivalent PyroBoy101 Linux - Newbie 5 01-28-2004 08:08 PM
Equivalent to Dos "Type" command? greendemon Linux - Newbie 2 08-04-2003 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration