//View Tip #5
Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
Use && to run a second command if and only if a first command succeeds:

cd tmp/a/b/c && tar xvf ~/archive.tar

View Comments »


Add your comment

Comments are currently disabled
Useful for this:

sudo apt-get update && sudo apt-get upgrade
Posted 2009-02-09 04:21:31
Andrew Punch
Alternative to given command:
tar xvf ~/archive.tar -C tmp/a/b/c
Posted 2010-03-21 16:18:00

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit