Unpack part’ed tarballs

Need to unpack a bunch of files such as: bigfile.tar-part0000 bigfile.tar-part0001 bigfile.tar-part0002 with the following command: cat bigfile.tar-part000* | tar xzf – which untars the part file’s contents to the current folder.

Shredding data on your Mac

You need to get rid of data in form of files, directories or drives? May be you know the ‘shred’ command on linux. On OS X, there is srm (stands for ‘secure rm‘): The following command will apply the secure remove to -directory in a -recursive way using all -force needed in a -medium (though… Continue reading Shredding data on your Mac

Hardening Linux / Apache

Just a list of  tutorials: http://www.openlogic.com/wazi/bid/188105/How-to-Secure-Your-Apache-Web-Server http://blog.monitis.com/index.php/2011/06/22/25-linux-server-hardening-tips/ http://www.cyberciti.biz/tips/linux-security.html

Splunk: Keep indexed volume under control

You can use splunk for free for up to 500 megabytes of indexed data daily. To make sure you do not run beyond this limitation, use the following query: index=_internal group=”per_source_thruput” NOT series=”*splunk/var/log*” | eval mb=kb/1024| timechart span=1d sum(mb) by series When drawing a bar graph, you directly see, what type of log is filling… Continue reading Splunk: Keep indexed volume under control

Finding large files in Linux

Spring clean up? Find all the files which are larger than 20 megs: find / -type f -size +20000k -exec ls -lh {} ; | awk ‘{ print $9 “: ” $5 }’

Published
Categorized as Software