Hacker News new | past | comments | ask | show | jobs | submit login

My favorite use of nc to date:

cat disk.img > nc

nc > /dev/sda




This is basically #7, and I found it particularly handy when Ghost barfed on my source image.

Since we had an entire lab to clone to, we combined dd, netcat, and tee to just daisy chain the data out. It worked _magically_.


That was exactly my experience, and I nearly wrote the same thing. Frustrating day saved by 2 simple commands.


Do you mean to use >redirect, or did you mean |pipe?




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

Search: