
Unix Tools
@UnixTools
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!
You might like
You can use the #unix #diff command to get in terminal side-by-side text file comparisons using the '-y' option: diff -y FILE1 FILE2
On #linux/#unix use #dd/#ssh combo to copy btwn hosts (good for #backups, #VM cloning, etc): dd if=/PATH/SOURCE | ssh HOST dd of=/PATH/COPY
#nohup a #unix process (so it won't die on logout) using #disown (after it has been backgrounded, maybe using 'ctrl+z; bg'): disown -h PID#
Use #watch to #monitor real time file changes, command output diffs, etc. For example, to monitor a #RAID rebuild: watch cat /proc/mdstat
Use #tee to send output to both #stdout and #stderr: echo "The date is `date +%`D" | tee /dev/stderr
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
Use #gdb (GNU Debugger) or #strace (trace system calls) to #debug an already running process: gdb -p PID; strace -p PID
Force an immediate #shutdown (no #shutdown, no syncing, may cause damage): echo 1 > /proc/sys/kernel/sysrq; echo o > /proc/sysrq-trigger
Force an immediate #reboot (no #shutdown, no syncing, may cause damage): echo 1 > /proc/sys/kernel/sysrq; echo b > /proc/sysrq-trigger
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
United States Trends
- 1. #SixKingsSlam 4,993 posts
- 2. Semaj Morgan N/A
- 3. Dork Cult Protest Day 22.3K posts
- 4. Vandy 3,967 posts
- 5. Araujo 569K posts
- 6. Duke 73.6K posts
- 7. #GoBlue 1,402 posts
- 8. Andrew Marsh N/A
- 9. Gil Manzano 25.2K posts
- 10. Pavia 1,385 posts
- 11. Gameday 16.3K posts
- 12. Jelly Roll 1,229 posts
- 13. Haaland 46.8K posts
- 14. Girona 42.3K posts
- 15. Mateta 10.7K posts
- 16. Vanderbilt 4,030 posts
- 17. Bournemouth 19.9K posts
- 18. McLaren 30.1K posts
- 19. Saban 7,730 posts
- 20. Georgia Tech 3,122 posts
You might like
-
Free Software Foundation (FSF) @[email protected]
@fsf -
ReactOS
@reactos -
Recurse Center
@recursecenter -
grsecurity
@grsecurity -
🥝🏳️🌈 Benjamin Delpy
@gentilkiwi -
3D Realms
@3DRealms -
AppsGoneFree
@AppsGoneFreeApp -
Andrew Jones
@hpcnotes -
Jiri Kropac
@jiriatvirlab -
Tim Hopper
@tdhopper -
Alan S. House
@IamUnix
Something went wrong.
Something went wrong.