Annoying habits (I)
July 2020
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
This site is an effort to share some of the base knowledge I have gathered through all this years working with Linux, FreeBSD, OpenBSD, Python or Zope, among others. So, take a look around and I hope you will find the contents useful.
Recent Entries
Recent Comments
Recent Trackbacks
OpenBSD (9 items)
BSD (0 items)
FreeBSD (19 items)
Linux (3 items)
Security (3 items)
Python (22 items)
Zope (13 items)
Daily (144 items)
e-shell (9 items)
Hacks (14 items)
PostgreSQL (3 items)
OSX (8 items)
Nintendo DS (0 items)
enlightenment (0 items)
Apache (3 items)
Nintendo Wii (1 items)
Django (24 items)
Music (12 items)
Plone (7 items)
Varnish (0 items)
Lugo (2 items)
Sendmail (0 items)
europython (7 items)
Cherokee (1 items)
self (1 items)
Nature (1 items)
Hiking (0 items)
uwsgi (0 items)
nginx (0 items)
cycling (10 items)
Networking (1 items)
DNS (0 items)

Syndicate this site (XML)

RSS/RDF 0.91

15 abril

Annoying habits (I)

is it that hard to put things inside a directory?

From now on, I'll post from time to time comments about things I find annoying. This had to be the first one for sure:

You download a piece of software (is it not a matter if it is a tgz, tbz, zip, rar, whatever file):

[prunus] ~/red5> ls -l
total 58416
-rw-r--r--  1 pxgo  pxgo  59768131 Feb 28 20:53 red5-0.7.0.tar.gz
[prunus] ~/red5>

Then you decompress it:

[prunus] ~/red5> tar -zxvvf red5-0.7.0.tar.gz

[ ... ]

[prunus] ~/red5>

Just to find the current directory full of files and directories:

[prunus] ~/red5> ls
Makefile                doc                     red5-0.7.0.tar.gz        src        ivy.xml                 red5-debug.bat          red5.bat                swf
build.xml               lib                      red5.jar                webapps
conf                    license.txt             red5-shutdown.bat
[prunus] ~/red5>

Is it really that difficult to put all those files into a directory before creating the tarball/zip/whatever?

Posted by wu at 13:51 | Comments (0) | Trackbacks (0)
<< Changing GTK themes in OSx | Main | FC Barcelona vs Manchester United >>
Re: Annoying habits (I)

oh mate ! what a truth ! Is one of the most annoying things in a sysadmin work day.

Posted by: paco at abril 15,2008 15:12
Re: Annoying habits (I)

Eh... broken standard!!!

It's a common consent to store a top directory with the tarball... everybody knows that! :D

Posted by: Juanjo at abril 15,2008 15:53
Re: Annoying habits (I)

It really drives me mad, from time to time it happens to me that I forget some people do that, and I end up with a directory full of mixed things. And then you have to play with find, pipes, xargs and friends to solve the problem.

It's a PITA!


Posted by: Wu at abril 15,2008 16:49
Re: Annoying habits (I)

+1 very annoying

tar ztf brokentarball.tgz | xargs rm

is the solution IIRC - but in the worst case a file already existed and got overwritten by the stupid tarball. When I suspect that the tarball was made in this stupid way, I put it into an empty directory first... but who would always suspect things?

Posted by: betabug at abril 16,2008 13:54
Re: Annoying habits (I)

Haha, look who's reading your blog:

Also a little correction: if the tarball in question contains directories, then adding -r to the end would be suggested, so directories get removed too:

tar ztf brokentarball.tgz | xargs rm -r

Posted by: betabug at abril 16,2008 20:51
Please send trackback to:
There are no trackbacks.
Post a comment