LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 02:44 AM   #1
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

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, 03: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 03:22 AM. Reason: Little typo
 
1 members found this post helpful.
Old 05-28-2014, 03:48 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
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, 11:30 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

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, 08:21 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
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-28-2014, 11:01 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

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, 07:04 AM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
$ 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 02:24 AM
Scroll/Page up in console? UNI Ubuntu 3 12-11-2010 02:34 AM
unlimit: descriptors: Can't remove limit petero Programming 8 06-02-2005 02:36 PM
RH & HP4050N PCL - page, pause, page, pause, page andguent Linux - Hardware 0 11-10-2003 08:35 AM
print a man page in console?? mipia Slackware 2 08-25-2003 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:16 PM.

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