Slackware This Forum is for the discussion of Slackware Linux.
|
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
04-14-2006, 02:36 PM
|
#1
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
End of more
Can somebody tell me how to quickly reach end of more (not pressing enter for half an hour)?
Thanks
|
|
|
04-14-2006, 02:52 PM
|
#2
|
LQ Newbie
Registered: Mar 2005
Distribution: Slackware 10.0
Posts: 8
Rep:
|
To scroll pages at a time (instead of the one line at a time with the enter key) press the spacebar.
If you want to see the very last few lines of a listing just pipe it through tail.
Code:
$ ls -1 /var/log/packages/ | tail
xsane-0.97-i486-1
xscreensaver-4.22-i486-2
xv-3.10a-i486-4
xvim-6.3.086-i486-1
xxgdb-1.12-i386-1
yptools-2.9-i486-1
ytalk-3.1.1-i386-1
zile-2.2.13-i486-1ejd
zlib-1.2.3-i486-1
zsh-4.2.5-i486-1
man tail(1)
|
|
|
04-14-2006, 02:55 PM
|
#3
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Original Poster
Rep:
|
I have just run lsdel on debugfs and he gave about million of nodes so I really don't know what to do.
|
|
|
04-14-2006, 02:59 PM
|
#4
|
Senior Member
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847
Rep: 
|
if you use less instead of more, you can just hit the end key. less also has the advantage of allowing you to scroll back up using the arrow keys.
|
|
|
04-14-2006, 03:08 PM
|
#5
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Original Poster
Rep:
|
lsdel automatically put me on more, i don't know if he's capable of piping through less.
|
|
|
04-14-2006, 03:08 PM
|
#6
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
Try:
Code:
tail -n 100 /var/log/whatnot
|
|
|
04-14-2006, 06:05 PM
|
#7
|
Member
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 770
Rep:
|
funny that, at work i use more on tru64 boxes, and with a ksh shell, shift+g sends you to the end, but linux doesn't seem to work that way, even when VISUAL=vi
however, i recently discovered most
it is great! install it if you dont have it. (b takes you to the end of the file)
tobyl
Last edited by tobyl; 04-14-2006 at 06:06 PM.
|
|
|
04-15-2006, 12:40 AM
|
#8
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Original Poster
Rep:
|
I have most (also have less), but debugfs (lsdel) uses the most (maybe because all machines have it) and this is where the problem comes. I used f button (it scrolls pages, not lines), but this also took long to reach the end.
|
|
|
04-15-2006, 12:54 AM
|
#9
|
Senior Member
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250
Rep:
|
I would assume you can pipe it thru 'tail' or 'most'
Last edited by rickh; 04-15-2006 at 12:56 AM.
|
|
|
04-15-2006, 04:15 AM
|
#10
|
Member
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 770
Rep:
|
man debugfs says it allows you to set which pager is used
" The specific pager can explicitly specified by the DEBUGFS_PAGER environment variable, and if it is not set, by the PAGER environment variable"
If you use less, then G (shift g) will take you to the end
"Note that since a pager is always used, the less(1) pager is not particularly
appropriate, since it clears the screen before displaying the output of the command
and clears the output the screen when the pager is exited.
Many users prefer to use the less(1) pager for most purposes, which is why
the DEBUGFS_PAGER environment variable is available to override the more
general PAGER environment variable."
If you use most, as I said before, b will take you to the end
tobyl
|
|
|
04-15-2006, 04:19 AM
|
#11
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Original Poster
Rep:
|
Oh. Thanks. I'll know from now on.
|
|
|
04-15-2006, 04:40 AM
|
#12
|
Member
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 770
Rep:
|
you are welcome. (sorry i didn't mean to sound pompous)
tobyl
|
|
|
All times are GMT -5. The time now is 06:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|