You need to cd (change directory) to where the tar.bz2 file resides first. When you downloaded SecondLife,
it might have been saved in your home account directory, or perhaps the Desktop subdirectory.
If the tar.bz2 file is in Desktop, then the commands to use are
Code:
cd ~/Desktop
tar xvjf SecondLife_i686_1_19_1_4.tar.bz2
Edit: note xvjf is for tar.bz2 files, xfvz is for tar.gz files. Instead of trying to remember these arcane things, you could do this:
Run
gedit ~/.bashrc
Add
Code:
op () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) rar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "'$1' cannot be extracted via extract()" ;;
esac
else
echo "'$1' is not a valid file"
fi
}
To the end of that file.
Then, whenever you need to use the command line to open any of the standard archive formats just type
Code:
op path/to/archive/file
Or in this case,
Code:
op SecondLife_i686_1_19_1_4.tar.bz2
Bookmarks