LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Im a command line idiot! Please help (https://www.linuxquestions.org/questions/linux-newbie-8/im-a-command-line-idiot-please-help-886128/)

virgodave61 06-13-2011 05:03 PM

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

EricTRA 06-13-2011 05:06 PM

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

virgodave61 06-13-2011 05:22 PM

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

EricTRA 06-13-2011 05:24 PM

Hello,

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

Kind regards,

Eric

virgodave61 06-13-2011 05:29 PM

Thanks again Eric
 
I hate bothering people esp. with stupid stuff, but searched Linux 101 info for 2 hours before asking.
Your awesome thanks!

EricTRA 06-13-2011 05:34 PM

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

virgodave61 06-13-2011 05:36 PM

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!

EricTRA 06-13-2011 05:38 PM

Quote:

Originally Posted by virgodave61 (Post 4384611)
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

salasi 06-14-2011 07:15 AM

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)

MTK358 06-14-2011 07:36 AM

http://linuxcommand.org/

hitmen 06-14-2011 07:37 AM

ctrl + c sometimes do the trick. Am I right?

MTK358 06-14-2011 07:51 AM

Quote:

Originally Posted by hitmen (Post 4385175)
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.


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