LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-13-2011, 05:03 PM   #1
virgodave61
LQ Newbie
 
Registered: May 2011
Posts: 7

Rep: Reputation: Disabled
Unhappy Im a command line idiot! Please help


Im totally new to the command line. Using Ubuntu server for a robot and using command lspci -nn to view pci devices details and receive like 3 pages of stuff that fly by. How do I direct it to show a page at a time? I dont have alot of hair but I can see I will have none soon, LOL. Why not /p, oh well
 
Old 06-13-2011, 05:06 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello and Welcome to LinuxQuestions,

Pipe the output of your command into less or more like this:
Code:
lspci -nn |less
and use space to go page by page. Have fun with Linux.

Kind regards,

Eric
 
Old 06-13-2011, 05:22 PM   #3
virgodave61
LQ Newbie
 
Registered: May 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Unhappy Thanks eric!

Awesome fast reply, that did the trick, but what do I do at the end when it says "END", other than reboot? Sorry
 
Old 06-13-2011, 05:24 PM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Type the letter q to exit the pager and you'll be returned to the command prompt.

Kind regards,

Eric
 
Old 06-13-2011, 05:29 PM   #5
virgodave61
LQ Newbie
 
Registered: May 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks again Eric

I hate bothering people esp. with stupid stuff, but searched Linux 101 info for 2 hours before asking.
Your awesome thanks!
 
Old 06-13-2011, 05:34 PM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

No problem at all, you'll get the hang of it real soon. Have fun with Linux. If you consider your problem solved please mark the thread as such (which you already did, thanks).

Kind regards,

Eric

Last edited by EricTRA; 06-13-2011 at 05:34 PM. Reason: Already marked as solved, thanks.
 
Old 06-13-2011, 05:36 PM   #7
virgodave61
LQ Newbie
 
Registered: May 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Wink Praise Eric!

I will be here helping people like Eric does as soon as I have an IQ that can be measured! Thanks to all of you who help people!
 
Old 06-13-2011, 05:38 PM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by virgodave61 View Post
I will be here helping people like Eric does as soon as I have an IQ that can be measured! Thanks to all of you who help people!
Hello,

You already have a measurable IQ since you've already learned something. And believe me, everybody learns something new every day.

Kind regards,

Eric
 
Old 06-14-2011, 07:15 AM   #9
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Another approach - not that there is anything necessarily wrong with the current approach, just one that you might prefer - is, if you know that there is a particular string within any line that you are interested in, is to use 'grep' as a filter, eg

Code:
lspci -nn | grep -i intel
(if the string of interest is Intel, or intel....substitute your own string of interest, of course)
 
Old 06-14-2011, 07:36 AM   #10
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
http://linuxcommand.org/
 
Old 06-14-2011, 07:37 AM   #11
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Rep: Reputation: Disabled
ctrl + c sometimes do the trick. Am I right?
 
Old 06-14-2011, 07:51 AM   #12
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by hitmen View Post
ctrl + c sometimes do the trick. Am I right?
Ctrl+C in a terminal kills the currently running command.

Remember, the Unix command line was invented far before GUIs existed, and far, far before conventions like Ctrl+X/C/V to Cut/Copy/Paste.
 
  


Reply



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
Print all PID folders from /proc line-by-line with this format (( PID: command-line )) courteous Linux - Newbie 7 12-12-2010 04:47 PM
Want to print fouth line after resulted line using grep with tail command saurabhmehan Linux - Newbie 10 08-04-2010 11:38 PM
awk command line: blank line record sep, new line field sep robertmarkbram Programming 4 02-21-2010 05:25 AM
LXer: The Thin Line Between Victim and Idiot LXer Syndicated Linux News 0 05-11-2009 01:30 PM
xine command line? or some other command line only engine? lumix Linux - Software 2 08-10-2007 10:46 AM

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

All times are GMT -5. The time now is 02:20 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