COPY OF SITE – I have an OCD thing about thinking peoples sites might be down one day, so I copy paste the material out, but I still give full credit whereRead More…
Whats using SAMBA – goes with LSOF article
WHATS USING SAMBA ################## LSOF ARTICLE: Here —-cheat sheet—- lsof -c smbd for i in `pidof smbd`; do echo “====PID $i====”; echo COUNT: `ls /proc/$i/fd | wc -w`; ls -lah /proc/$i/fd/; done cdRead More…
What Architecture to Download for Debian Install
OS BITS ON LINUX/DEBIAN 64 or 32 bit ################################## So your on this step of your debian install: http://www.debian.org/CD/http-ftp/#stable When you pick the debian distro to download it asks for amd64 armelRead More…
wget full website – full site download
BEST WAY TO DOWNLOAD FULL WEBSITE WITH WGET UPDATED NEW ARTICLE HERE: wget – new article covers this and also how to download from directory/browseable websites. NOTE: below worked when my site wasRead More…
Virtually Merge multiple folders with symlinks or hardlinks with cp command
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…