LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-14-2006, 02:36 PM   #1
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
End of more


Can somebody tell me how to quickly reach end of more (not pressing enter for half an hour)?

Thanks
 
Old 04-14-2006, 02:52 PM   #2
edavis
LQ Newbie
 
Registered: Mar 2005
Distribution: Slackware 10.0
Posts: 8

Rep: Reputation: 0
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)
 
Old 04-14-2006, 02:55 PM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Original Poster
Rep: Reputation: 53
I have just run lsdel on debugfs and he gave about million of nodes so I really don't know what to do.
 
Old 04-14-2006, 02:59 PM   #4
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
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.
 
Old 04-14-2006, 03:08 PM   #5
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Original Poster
Rep: Reputation: 53
lsdel automatically put me on more, i don't know if he's capable of piping through less.
 
Old 04-14-2006, 03:08 PM   #6
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Try:
Code:
tail -n 100 /var/log/whatnot
 
Old 04-14-2006, 06:05 PM   #7
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 770

Rep: Reputation: 68
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.
 
Old 04-15-2006, 12:40 AM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Original Poster
Rep: Reputation: 53
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.
 
Old 04-15-2006, 12:54 AM   #9
rickh
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: Reputation: 62
I would assume you can pipe it thru 'tail' or 'most'

Last edited by rickh; 04-15-2006 at 12:56 AM.
 
Old 04-15-2006, 04:15 AM   #10
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 770

Rep: Reputation: 68
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
 
Old 04-15-2006, 04:19 AM   #11
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Original Poster
Rep: Reputation: 53
Oh. Thanks. I'll know from now on.
 
Old 04-15-2006, 04:40 AM   #12
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 770

Rep: Reputation: 68
you are welcome. (sorry i didn't mean to sound pompous)

tobyl
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Review: Buffalo LinkTheater High-Definition: A Linux Multimedia Center from End to End LXer Syndicated Linux News 0 04-13-2006 03:54 PM
LXer: Wily Technology Extends End-to-End Application Visibility to oracle(R) Databases LXer Syndicated Linux News 0 12-14-2005 07:46 AM
Help Me! I'm at my whits end.... sebgate20 Linux - Distributions 1 03-14-2005 02:17 AM
This is the END... Kanaflloric Linux - Hardware 6 10-01-2004 02:43 PM
the end is near pepsi General 6 06-13-2004 12:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration