LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   List dir contents with page breaks (https://www.linuxquestions.org/questions/linux-newbie-8/list-dir-contents-with-page-breaks-853753/)

Vi3GameHkr 01-02-2011 02:30 PM

List dir contents with page breaks
 
Hello,

I can't seem to find any info on a terminal command that lists the contents of a directory with page breaks so that I can view the contents of a very large folder (such as /usr/bin) because if I use ls, it prints so many names that scrolling up won't even cover all of them. We all know the obvious solution is to use a graphical file browser, but I tend to shy away from depending on graphical utilities simply because command line feels faster.

GrapefruiTgirl 01-02-2011 02:32 PM

Sounds like you want to try the `less` or `more` tools. There are others, but these two are very common. Example usage, in a pipeline:
Code:

shell$ ls -la | less
Check out the man pages for the commands - they will explain what these 'pager' tools do, and any options they accept.

Kind regards.

onebuck 01-02-2011 04:23 PM

Hi,

Just a few links to aid you to gaining some understanding. Sure some may seem beyond a newbie but you must start somewhere;



Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Getting Started with Linux
Bash Beginners Guide
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Home Networking



The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

Vi3GameHkr 01-03-2011 10:07 AM

Thanks a lot, GrapefruiTgirl, I don't know how I didn't already know about more and less!

Also, onebuck, Thanks for those links, especially the last one.


All times are GMT -5. The time now is 04:50 PM.