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 Thu 02 Jul 2015, 00:01
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 Posts_count  
Author Message

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.

Back to top

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 

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_website 

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:

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.

Back to top

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.

Back to top
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
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 attach files in this forum
You can download files in this forum

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