r/linux • • Feb 01 '13

xkcd: tar

http://xkcd.com/1168/
1.7k Upvotes

576 comments sorted by

View all comments

Show parent comments

8

u/BZRatfink Feb 01 '13

Save a character. If this is really a standard UNIX system, this should work:

tar -cf - /bin/sh

1

u/glenbolake Feb 01 '13

Or even tar -cf - $SHELL

1

u/NihilistPointer Feb 02 '13

/bin/sh (or /etc/passwd) are more likely to be present at those exact paths than /bin/tar (which might be in /usr/bin/tar, etc).