Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-15-2003, 02:29 PM   #1
Registered: Aug 2003
Location: California
Distribution: Red Hat 9
Posts: 40

Rep: Reputation: 15
Extracting files

well , im new .... and i was wondering how to extract files to a certain directory ... I cant do it in X , so i know i have to log in to root and do it in the terminal , but im stupid, and dont know the commands for extracting a bz2 or tar file to a directory can you please help ?
Old 08-15-2003, 02:33 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
tar -xjf somefile.tar.bz2
Old 08-15-2003, 02:57 PM   #3
Registered: Aug 2003
Location: California
Distribution: Red Hat 9
Posts: 40

Original Poster
Rep: Reputation: 15
ok , i kinda knew that , but what im wondering is how to get it to a different directory , lets say i downloaded the file *cough*MPlayer fonts and skins*cough* to /home/bpm/downloads .... and i need to extract them to /usr/local/share/blahblah .... how do i do that in ther terminal , or move files .. im so lost
Old 08-15-2003, 03:00 PM   #4
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
To extract the files to another directory.
tar -jxvf myFile.tar.bz2 -C /usr/local


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting many zip files xconspirisist Linux - Software 2 07-18-2004 01:43 PM
Extracting Lines from files supreme_command Linux - Newbie 1 05-12-2004 04:21 AM
extracting .gz files MACSRULE Linux - Newbie 2 04-13-2004 06:16 PM
Extracting files from a .bin LinuxBAH Linux - Software 1 06-25-2003 06:43 PM
extracting files jester_69 Linux - General 5 05-19-2002 11:21 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration