Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Partial directory list in linux

Tags:

linux

shell

If I have a directory containing hundreds of files, using ls, ls-l, or dir gives me a list that's too long for the command terminal screen, so I'm unable to see most of the files in the directory.

I recall there being some argument for ls that allows one to scroll through the list in short increments, but can't seem to find it.

like image 471
user1815498 Avatar asked Nov 30 '12 18:11

user1815498


1 Answers

One option is to pipe the output to less or more

ls | less

or

ls | more
like image 144
Henrik Kjus Alstad Avatar answered Oct 05 '22 08:10

Henrik Kjus Alstad