Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is that what you mean? Or you just want to append to ls with a -something rather? You don't wanna pipe it to anything? Hmmm... If that is the case I am not too sure, I usually pipe it to less.
certainly i can use "more" or "less", but if i do so, i lose the coloring.
what i'm looking for is an option for "ls" with which i can view contents of a directory page by page and still keep the different colors indicating directories or links or normal files.
Well that's not really and of ls's business, it's more down to the shell you are using. by default the newer versions of bash will automatically stop after each screenful of information, whatever program you are using. i can't remember the Xresource to set for it, but try upgrading bash, and i'll have a look what i get home as you may well be able to just turn it on without upgrading.
hopefully you can see why ls doesn't do this from the modularity of unix. ls's job is to show lists of files, not deal with terminal scrolling etc, so whilst old DOS dir can use /p it's a design hack and in the purest sense shouldn't be there.
One way to cope with this issue would be to use -F option with ls, like
ls -F | less
This way it puts different signs at the end of your file names, depending on what type they are. Then you'd be able to see the type of your files even though you don't get the colors.
Originally posted by NGene One way to cope with this issue would be to use -F option with ls, like
ls -F | less
This way it puts different signs at the end of your file names, depending on what type they are. Then you'd be able to see the type of your files even though you don't get the colors.
Exactly what I needed! -a workaround for being colorblind! Would it be possible to make that the default behavior?
Last edited by rickenbacherus; 03-21-2003 at 09:42 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.