Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Alternative title: How to destroy your OS by not understanding your OS.

Don't take this the wrong way. Nice write up. :)

......

Sudo ... why would you sudo a command that you don't understand?

RTFM ... all of the behaviour you experienced is well documented. There are no surprises.

POSIX and UNIX utils are flexible and powerful. This is why we love them. Don't blame the hammer.

Sandbox anything you extract and review it. Extract in a test environment. Extract without sudo and copy the files and permissions you need.

tar -tv is simply tests the archive and outputs the paths. You ignored what it told you - that it would overwrite ./ :)

#### Never ever do this! $ sudo tar -C / -xvfp xbps-static-latest.x86_64-musl.tar.xz

Insanity.

Cheers :)





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: