The Ubuntu community has contributed 15664 ideas, 77393 comments, 1416168 votes
Idea
#5696: Easily extract files with 'untar'
|
| |
-15
|
|
|
Written by wladston the 25 Mar 08 at 16:37.
Category: System.
Related to:
Nothing/Others.
Status: New
|
|
|
Description
So the user could type
$untar filename.tar.gz
or
$untar filename.tar
And the archive would be extracted, similar to the unzip command, so tne beginner user doesn't have to look up for 'tar -zxvf' every time.
Tags:
(none)
Attachments
No attachments.
Duplicates
Comments
|
vexorian wrote on the 25 Mar 08 at 19:39
| |
Can't the beginner just use right click\extract ?
|
|
ebrahim wrote on the 25 Mar 08 at 21:34
|
If user is not a shell user, he doesn't need this.
If user is a shell user, he knows how to extract tar archives with 'tar'!
|
|
ebrahim wrote on the 25 Mar 08 at 21:37
|
BTW, if you need it do this (untested and no warranty!):
$ sudo tee /usr/local/bin/untar
#!/bin/sh
tar xf "$@"
$ sudo chmod +x /usr/local/bin/untar
|
|
sedra wrote on the 26 Mar 08 at 11:51
| |
right click and extract
|
|
Endperform wrote on the 26 Mar 08 at 16:41
|
in .bashrc:
alias untar="tar -xvf"
Done.
|
|
wladston wrote on the 26 Mar 08 at 16:49
|
@ vexorian , @ebrahim, @sedra
I'm talking about the beginner shell user. If we can simplify and still obtain the same control and power, why not ?
@Endperform, @ebrahim
Would this script be able to extract both .tar, .tar.bz, .tar.bz2 and .tar.gz files ?
|
Post your comment
|
|
|