chrislynch.link

linux

Linux is 30 years old

Linux is thirty years old. From a single email back in 1991, Linux has touched nearly every aspect of modern computing. Early in my career, I was deeply embedded in the Microsoft stack and, like a lot of developers around me, felt like having an MSDN subscription made me part

Read More »
close up view of system hacking

Find (and delete) old files in Linux

I’ve got a confession to make – I’m a log file addict. I love a good log file and I’ll hold on to those bad boys for way longer than I should sometimes. Even I need to clear down the odd /logs directory every now and then though, and that’s

Read More »
black and gray laptop computer

Find files that have changed in Linux

I’ll confess, I stole this from somewhere on Stack Overflow and I’m posting it here just because it’s so flipping useful I know I will need it again some day. Yes, this little bit of command-line voodoo will tell you all the files that have changed in the current directory

Read More »
black and white printer paper

How to get the MD5 Fingerprint RSA Key for a Linux Server

If you’re writing code to connect to a Linux server over SSH or SFTP, you may need to get the MD5 “fingerprint” of the server. It’s that funny little string of numbers that appears, just once, when you connect to a server and you never see again unless it changes…

Read More »
close up view of system hacking

Find Biggest Files and Directories on Linux

Here’s a handy command for tracking down which part of your file system has the largest files in Linux. Linux can be a tricky beast sometimes and it only takes one rogue process, one giant log file, or one run away user upload to eat your disc and bring the

Read More »
black and gray laptop computer

Monitor MySQL Processes at the Command Line

Here are two ways you can get a rolling view on MySQL processes from the Linux command line. mysqladmin Replace root in the above example with your MySQL username and, after giving your password when prompted, you will see the processlist being output over and over again on screen. You

Read More »

Cron job to keep MySQL Running

If your MySQL server is randomly falling over, you need to fix it. There’s no good reason to let that nonsense continue. Sometimes though, that’s easier said than done and whilst you’re working on why the server keeps falling over you need something to keep bringing it back up… Here’s

Read More »