How to combine/merge 2 or more folders virtually(sym/hardlinks): ################################################################# ################################################################# URL: http://unix.stackexchange.com/questions/40634/in-ubuntu-is-there-a-way-to-virtually-merge-two-folders-without-unionfs-or-aufs Lets say you have a Movies1 and Movies2 folder and you want their contents to be visible through a MoviesRead More…
Used Space Speed Script based off “df” – DF
Want to monitor how fast space is being cleared or used up. The resolution of this script isnt as good as I prefer it to be, I put 60 seconds to getRead More…
SSH Transfer 1 File – redirection Linux IO to Network with SSH
Redirecting Linux IO with SSH Redirecting STDOUT from LOCAL MACHINE to FILE in another MACHINE Example use would just be to copy a file. Another would be to list the contents ofRead More…
Remount as Read Write – RW, or Read Only – RO
Imagine this: You stuck in a USB drive, you go in to try and write something or delete something and it says its read only filesystem. You type mount and notice theRead More…
Test READ and WRITE speed of Storage (Drives/Raids,etc.)
–TEST SPEED WITH EXT3– Go to where the filesystem you mounted is at: # cd /mnt/r55 -WRITE TEST:- ZEROS DATA: # dd if=/dev/zero of=testfile0 bs=8k count=10000; sync; Hit CONTROL-C after 5 secondsRead More…
termsearch – search terms script – using grep
This is a working program that I use to scour through lots of text for keywords. I put the keywords in the terms file, one line at a time (keywords or keyRead More…
terms / keyword search using grep – like an index
LOOK THROUGH EVERYTHING IN DIRECTORY FOR TERMS #################################################### Made this article into an amazing program set/script called: termsearch Make a terms file in the directory where you want to recursively search forRead More…
TCPDUMP and save to another pc over SSH
Imagine your on PC1 doing a tcpdump to a file but you dont have enough room, solution stay on PC1 run the same tcpdump command but pipe it through ssh and saveRead More…
Tcpdump – trick – record to pcap and read after – also to record pcap to remote server
LOCAL pcap RECORDING with TCPDUMP When troubleshooting and doing tcpdumps it might be best to capture full output and then analyze it. Instead of later realizing that you might of missed someRead More…
Sys “look through” – read everything in /sys with find
WHAT IS THIS: ############## /sys holds alot of information about the system and its current settings and devices. Sometimes you want to read all those values. Here is a nice script thatRead More…