Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
How do you view a README or INSTALL file from the terminal?? every place i searched for installing software tutorials assumes that you already know how...-thanks
Use pico filename to edit the file, vi will also work but pico is much easier for newbies. To view the file you can also type "cat filename | more" which is probably the same as just typing more filename..
Basically the big difference I see is when using less, you'll stay within view of the file until you hit Q to exit out. With more, if you keep scrolling down to the end of the file, you'll end back up at a prompt.
If you want a graphical program, you could use "gless", this pops a window up with your text in it. If you want to edit the text, gedit or gxedit work pretty good.
Use a viewer to see an install or a readme file, not an editor - you have no reason to change the file, besides which viewers are simpler to use. more and less are both good - you can move a screen at a time in more, one direction only, by hitting the space bar, a line at a time with the return key. Scroll up and down in less with the up and down arrows, back a full screen (very useful to just go back read something again) with control+b - b on its own works on some files but not all to scroll back a screen in more. I have no idea why it only works sometimes. cat is only useful for files not larger than one screen in size.
Add in what trickykid said and you've about got the lot. The attractions of those viewers is how simple they are to use. Less has the advantage of going backwards as well as forwards, except for those files where b works in more, and it stays in the file when you reach the end. That's minor, because the up arrow from the command prompt will give you the more command again, anyway. Exit either at any time with the q key. Note the keys cited, b and q, are lower case.
BTW, to use any of them, using more as the example, at the command prompt type more /pathtofile/nameoffile and hit return.
Last edited by jazzclubber; 12-15-2002 at 08:54 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.