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

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, 08: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, 09:18 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 09:22 AM   #4
eBlip
LQ Newbie
 
Registered: Sep 2012
Location: london
Distribution: backtrack 5 command line, ArchLinux & Slackware
Posts: 18

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



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 02:05 PM
Running screen command for different users at startup FatOldSun Linux - Software 4 01-30-2010 05:10 PM
tar-command not found while compiling glibc-libidn-2.7.tar.bz2 of lfs6.3 aditya_gpch Linux From Scratch 1 05-13-2008 11:27 PM
Starting a command in an already-running screen session Wynd Linux - General 1 10-24-2007 03:10 PM
Running a command in a screen session ifan Linux - Newbie 0 07-16-2003 07:12 AM

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

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