Recently, I made the script to patch your BASH environment available on this site, but that meant a need to copy and paste. Using a user with the appropriate rights, you can now pipe directly using a ...
Updated to latest kernel patch bash43-30 You’ve heard of ShellShock, and the bash-exploits that are currently doing the rounds, across platforms, that make use of these bugs (CVE-2014-6271 and t ...
Quick note to myself, as I keep forgetting the syntax, though it is so easy — to block an incoming connection by null routing or rejecting the connection is as simple as route add -host IP rejec ...
You knew it already – but I keep forgetting – the power of zgrep and zcat both of which behave as their z-less counterparts. So, to search a gzip’d file, you can simply zgrep <ter ...
To find all files by file name containing THE TEXT I SEEK: grep -lir "THE TEXT I SEEK" * ...
Just to jot it down lest I forget: Tar’ing the local directory and streaming the tarball straight to gzip: tar cvf - . | gzip > target.tar.gz MySQLdump’ing directly to gzip: ...
It’s a simple one-liner that one tends to forget (that is, one that I forget as I untar more than I manually tar). So creating a tar file from directory and all subdirectories is as simple as ta ...
Assuming you have a Windows machine and you interact with Linux boxen at any stage, chances are high that you have used and interacted with PuTTY at one stage or another. That beautiful, less than 2 s ...
Just a quick note (as I keep forgetting, and a cut-and-paste solution is a quicker time to market) – but you knew that already. Installing Webmin is quite simple (download directly, or from the ...
It’s quite simple, really: POP3 (Exchange, dovecot etc) you know, IMAP (Exchange, dovecot, courier etc) you know — so this is just a recap, right? You know how to telnet into the machine & ...
So you want to run a script that removes all mp3 and avi files off the filesystem. One way (in bash) as below. Comment, suggestions and feedback are welcome 🙂 Using $EUID to check for root user, and $ ...