Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Apr 2014, 16:48
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
Including the "less" pager shell command
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
RHTopics
Guest


PostPosted: Thu 28 Jul 2005, 22:56    Post subject:  Including the "less" pager shell command  

The less pager shell command is a useful tool for viewing text files from the command line.

With its ability to move up and down in a text file, it is more capable than the included more command.

It would be good to see it included in Puppy Linux.

Thanks
Back to top
Bancobusto


Joined: 13 Jun 2005
Posts: 168
Location: Vancouver Island

PostPosted: Fri 29 Jul 2005, 00:12    Post subject:  

I agree. From what I've gathered, it's superior in every way. Razz

<But, MORE is functional, so that works for most, according to the philosophy that less isn't allways worse than more, and more isn't always better... OMG, what a word game...>
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Fri 29 Jul 2005, 14:00    Post subject:  

Well RHTopics and Bancobusto. It just happens that less has already been packaged for puppy:

It's in the DotPup Contributions page along with many other fine applications.

I would suggest you to browse that page and the GuestToo DotPups pages to find ot what else is there.
Back to top
View user's profile Send private message Visit poster's website 
RHTopics
Guest


PostPosted: Fri 29 Jul 2005, 14:30    Post subject:  

In thinking about your reply, I did some research into using an alternative to the less command.

The more command is part of the busybox application. Looking at the help for BusyBox, it is a multi-call binary that combines many common Unix utilities into a single executable. This single executable comes in a small size of only 296k bytes, while the less command by itself in other linux distros is over 120k. So it is understandable that the less command is not included.

My alternative was to add the following alias command in /etc/profile:

Code:
alias less="vi -R"


The vi editor is also part of BusyBox and lists the -R option in its help options as a way to use the vi editor in read only mode.

Using this alias would provide a simliar experience to the less command. One difference would be rather than hitting the "q" key to quit viewing the file, you would enter ":q" and then press the Enter key.

The only problem is the "-R" option does not work. The file is modifiable, so you would need to enter ":q!" to ensure no changes are made to the file.

My new suggestion is to have a newer version of BusyBox that has fixed this bug in the next release of Puppy Linux.

Thanks
Back to top
RHTopics
Guest


PostPosted: Fri 29 Jul 2005, 14:39    Post subject:  

rarsa, Your reply got posted while I was editing a reply to Bancobusto.

I will check out the DotPup Contributions page.

Thanks
Back to top
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Suggestions
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0574s ][ Queries: 12 (0.0167s) ][ GZIP on ]