
Short unix tips. Have a great tip?! Want to hear tips about a specific tool? Have a question about a tool? Let me know @UnixTools!
Joined May 2012
- Tweets49
- Following0
- Followers333
- Likes1
Use #tee to duplicate a file stream so output goes to both the screen and to a file: echo "The time is now `date +%T`" | tee FILENAME
1
Delete the contents of a file using #stdout #redirection : > FILENAME
Use #touch to create a new empty file or update the modification time of an existing file: touch FILENAME
Start a simple #file_server (serving the current directory) on the fly with $python: python -m SimpleHTTPServer