Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list files page wise in linux?

Tags:

linux

ls

How to list files page wise in linux? When I list files using ls -la or ls -lt the result is scrolling down to the last page and I am unable to view the beginning.

like image 406
Nevin Avatar asked Apr 02 '15 03:04

Nevin


People also ask

How do you display the contents of file page wise in Linux?

Use the pg command to read the files named in the File parameter and writes them to standard output one screen at a time. Use the more or page command to display continuous text one screen at a time. Use the cat command to read each File parameter in sequence and writes it to standard output.


1 Answers

Pipe to "less" or "more".

ls -la | less
like image 85
kaylum Avatar answered Sep 25 '22 21:09

kaylum