You're viewing a comment by yitzle and its responses.

yitzle Permalink
February 17, 2009, 18:53

And for the commands that do not take a filename as an argument, you can do:

$ command < file


$ nc -l -p 6666 < file

Regarding tar, by default it uses STDIN, so -f - is the default behavior. Therefore, these two commands do the same thing:

$ tar -c /data
$ tar -cf - /data

(Ditto with the tar -x)

All in all, great article! Thanks.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "security_132": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.