LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-28-2014, 03:44 AM   #1
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
How to unlimit page up & down in console


When in console if I call for dmesg or /var/log/messages the output is so long I can't view the whole message. what config file would I have to change to remove the limit. I believe that I'm only able to go up approximately 2 1/2 pages.
 
Old 05-28-2014, 04:19 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
In order to open any file, to read it in a page by page manner, you should use more command instead of cat. On the other hand, for command like dmesg, there's no specific file to modify page limit, but you need to change scrolling limit of the console. For instance, in gnome desktop, open the console/terminal > Open Edit tab and go to 'Profile Preferences' option, then under 'Profile Preference' window, go to 'Scrolling' tab and there you can set the scrolling limit (by default it is set to 512 lines only). You can set it to millions or billions of lines to scroll up e.g. 5120000.

Last edited by shivaa; 05-28-2014 at 04:22 AM. Reason: Little typo
 
1 members found this post helpful.
Old 05-28-2014, 04:48 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
You can more a file as described, or eg if you run dmesg as a cmd, you can pipe it through more
Code:
dmesg|more
or just re-direct to a file and use eg vim to read the file.
 
1 members found this post helpful.
Old 05-28-2014, 12:30 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
@shivaa thank you for your reply I already have my terminal set to unlimited, I was actually just wanting to be able to read messages in console, in case my system goes down & I need to view files from the recovery console.

@chrismo that was exactly what I was talking about, I just switched to console & was able to read the whole message.
 
Old 05-28-2014, 09:21 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,367
Blog Entries: 12

Rep: Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752
You can also pipe the output to a file, then open the file with (more or) less or with a text editor.

Code:
$ dmesg > dmesg.txt
$ less dmesg.txt
 
1 members found this post helpful.
Old 05-29-2014, 12:01 AM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by frankbell View Post
You can also pipe the output to a file, then open the file with (more or) less or with a text editor.

Code:
$ dmesg > dmesg.txt
$ less dmesg.txt
I will also try this as I know that these are the things that I need to know
 
Old 05-29-2014, 08:04 AM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,330
Blog Entries: 1

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
$ echo $HISTCONTROL
$ echo $HISTSIZE
$ echo $HISTFILESIZE

Your .bashrc might set those values. For large files less is better than more. On my debian install 500 seems to be the default for HISTSIZE and HISTFILESIZE.

$ cat FILE | less

Less gives you a full scroll where more might not. Plus man page type hotkey functionality to goto top [HOME] or bottom [END] and search [/]words.
 
  


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
Page Up & Page down not working in Vim editor vicky007aggrwal Linux - Newbie 3 10-17-2012 03:24 AM
Scroll/Page up in console? UNI Ubuntu 3 12-11-2010 03:34 AM
unlimit: descriptors: Can't remove limit petero Programming 8 06-02-2005 03:36 PM
RH & HP4050N PCL - page, pause, page, pause, page andguent Linux - Hardware 0 11-10-2003 09:35 AM
print a man page in console?? mipia Slackware 2 08-25-2003 01:35 PM


All times are GMT -5. The time now is 08:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration