LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-05-2012, 09:41 AM   #1
eBlip
LQ Newbie
 
Registered: Sep 2012
Location: london
Distribution: backtrack 5 command line, ArchLinux & Slackware
Posts: 17

Rep: Reputation: Disabled
help information running off the screen with tar command


hi ...im using tar command
typing tar filename.tar/bz2
and im getting old option f requires and argument
i type tar --help

the problem is the output of the help most of it runs off the screen and doesnt stop...like when using the function (man).
what can i do to stop it running of the screen so i can read what is going on ...and

what is wrong with my tar command
thanks
 
Old 10-05-2012, 09:45 AM   #2
henrycoffin
Member
 
Registered: Dec 2006
Distribution: RHEL Debian
Posts: 42

Rep: Reputation: 15
Pipe the output of tar --help in to less so you can read it all

# tar --help | less
 
1 members found this post helpful.
Old 10-05-2012, 10:18 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
You have to tell tar what it has to do. If you want to extract a file you have to give it the extract option -x and you have to tell that you want to extract a file, not the standard input, with the -f option. So your command should look like this:
Code:
tar -xf filename.tar.bz2
 
Old 10-05-2012, 10:22 AM   #4
eBlip
LQ Newbie
 
Registered: Sep 2012
Location: london
Distribution: backtrack 5 command line, ArchLinux & Slackware
Posts: 17

Original Poster
Rep: Reputation: Disabled
thanks guys .... using the pipe less command piped the output of help through screen by screen ...and enabled me to look at the command structure..
i ended up doing the -tvf to see what was in there and then the -xf to extract...
thank again guys ...the linux crowd are so efficient and helpful..
 
  


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
[SOLVED] command for tar'ing multiple sub-directories into a single tar file blainemiller Linux - Server 3 04-21-2011 03:05 PM
Running screen command for different users at startup FatOldSun Linux - Software 4 01-30-2010 06:10 PM
tar-command not found while compiling glibc-libidn-2.7.tar.bz2 of lfs6.3 aditya_gpch Linux From Scratch 1 05-14-2008 12:27 AM
Starting a command in an already-running screen session Wynd Linux - General 1 10-24-2007 04:10 PM
Running a command in a screen session ifan Linux - Newbie 0 07-16-2003 08:12 AM


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