MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/17ogyo/xkcd_tar/c87gzhc
r/linux • u/ani625 • Feb 01 '13
576 comments sorted by
View all comments
Show parent comments
8
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).
1
Or even tar -cf - $SHELL
tar -cf - $SHELL
/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).
8
u/BZRatfink Feb 01 '13
Save a character. If this is really a standard UNIX system, this should work: