Category: Linux Tech

7z on Linux

I was pleasantly surprised to discover that 7zip is available for Centos and other Linux distributions. And it works just as it does on Windows. On Redhat-style distros you can get 7zip for Linux with the following: yum -y install p7zip It seems to me that I had to link /usr/bin/7za to /usr/local/bin7za (ln -s …


Nginx – simple install script for Centos 5.5

Anything that you find on this site, like this, is really here for my own entertainment/study. You can download things and use them but, of course, there are no guarantees… This is my playground, kids. This is a quick script for Centos 5.5 that compiles a couple of superfluous packages, but which works fine. It compiles Nginx 1.38, …


Code to find files of a certain type and copy

You can use the following code to find files of a certain type, on Linux, and copy all of them to a new location. In the example below all “.tar” files are copied to /newfolder: find /root -iname “*.tar” -execdir cp ‘{}’ /newfolder/ \; Updated Slightly different syntax which, as I recall, works on newer …


Qmail Toaster on Centos 5.5 – automated install

I’m a compulsive computer tinkerer and enjoy building, and, running my own web and email servers. I run both Linux and Windows servers from various locations. Recently I assembled a Qmail Toaster package for Linux (Centos 5.5) which can be installed – almost 100 percent – via four simple shell scripts. It uses a couple …


Using mutt and cron to email w/attachment

Well…this was kind of a pain to get working, for an idiot like me. I wanted to get a tarred version of a particular log file via email – as an attachment – and I had no idea where to start. In other words, I wanted to have an email sent to me, with an …