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 12-15-2009, 12:03 AM   #1
ahr8tch
LQ Newbie
 
Registered: Dec 2009
Location: Texas
Distribution: Not sure. Whatever came on the Asus Netbook.
Posts: 21

Rep: Reputation: 15
How to Stop Command Results from Scrolling Off the Screen


I'm trying to fix a problem with Citrix client. I downloaded a file (linuxx86=11.0.140395.tar.gz). I want to run tar on the file preparing to install the program. When I enter tar xvvf linuxx86-11.0.140395.tar.gz I get more error messages than the screen can contain; so I don't get to see all of the results.

Is there a way to add options to the tar command that would either create a file that I can scroll through with another command or stop outputting the results after a screenful has occurred and wait for command input to proceed to the next screenful.

Here's what I entered at /user/home . . .

tar xvvf linuxx86-11.0.140395.tar.gz

I then tried . . .

tar xvvf linuxx86-11.0.140395.tar.gz more

Thinkging that more would do some magic and pipe the result into the right sized chunks. It didn't work. Go the same runaway result.

Finally is used mkdir citrix.client/ to make a file that I could put the tar results into. So then entered . . .

tar xvvf linuxx86-11.0.140395.tar.gz citrix.client/

and got a message saying that citrix.client file didn't exist.

Can anyone tell me how to go about using the tar command in such a manner that I can see all the results?

TIA
 
Old 12-15-2009, 12:16 AM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Well you can redirect the output into a log file.

command > ~/log
 
Old 12-15-2009, 12:24 AM   #3
david1941
Member
 
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267

Rep: Reputation: 58
You can pipe the output to more, but you need the pipe operator
Code:
tar xvvf linuxx86-11.0.140395.tar.gz | more

Last edited by david1941; 12-15-2009 at 12:25 AM. Reason: fix code tags
 
Old 12-15-2009, 12:29 AM   #4
david1941
Member
 
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267

Rep: Reputation: 58
If you have a lot of errors, also send STDERR to more:
Code:
 tar xvvf linuxx86-11.0.140395.tar.gz 2>&1 | more

Last edited by david1941; 12-15-2009 at 12:29 AM. Reason: code tags
 
Old 12-15-2009, 04:19 PM   #5
ahr8tch
LQ Newbie
 
Registered: Dec 2009
Location: Texas
Distribution: Not sure. Whatever came on the Asus Netbook.
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks Folks!

I must have been making command line typos because it was telling me that it could not find a file. When I typed in the command very carefully, I was able to get it to pipe to more and see the errors.

Thanks again.

rh
 
Old 12-15-2009, 05:11 PM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Quote:
Originally Posted by ahr8tch View Post
Finally is used mkdir citrix.client/ to make a file that I could put the tar results into. So then entered . . .

tar xvvf linuxx86-11.0.140395.tar.gz citrix.client/

and got a message saying that citrix.client file didn't exist.
When you use tar in this way, that is with arguments after the name of the tar.gz compressed archive, you're asking to extract only one (or more) of the files contained in the archive itself. In other words, the command line above tries to extract a directory named citrix.client FROM the archive.

If I understand well, you want to extract all the content of the archive INTO a newly created directory, don't you? To do this you have to use the -C option:
Code:
tar xvvf linuxx86-11.0.140395.tar.gz -C citrix.client
For all the doubts related to the GNU tar command, you can refer to the official manual, one of the most exhaustive and well written pieces of documentation.
 
Old 12-16-2009, 01:32 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
The tee command enables output to screen and log at the same time
Code:
<some command> 2>&1 | tee <some log file>
 
  


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
screen wont stop scrolling (Fedora 11) darkhorsexpress Linux - Software 7 10-11-2009 11:11 AM
Scrolling results in blur hbinded Linux - General 1 09-03-2007 04:50 PM
Can't stop scrolling in Gentoo Install cxiii Linux - Distributions 4 12-11-2005 06:37 PM
Startx results in a black screen with VGA and screen errors kwosource Linux - Newbie 4 03-11-2005 03:58 PM
stop scrolling large files tekmobe Linux - Newbie 1 04-12-2004 12:38 AM

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

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