PDA

View Full Version : [ubuntu] Limiting to line or Page



krsnavan
June 29th, 2008, 08:57 AM
It's a basic question!

When i run command in commandline, i want to see the result in a page or line by line.( limiting scrolling)

for example:

ps ax

to see the proccess running.

thanx

sdennie
June 29th, 2008, 09:52 AM
It sounds like you want to use "more":



ps aux | more


Related commands are "head" and "tail":



cat some_file | head


Will show you the first few lines of the file.



cat some_file | tail


Will show you the last few lines of a file.

krsnavan
June 29th, 2008, 10:09 AM
Ya!

that's what i asked.

thanx