Linux Lab: SysAdmin 101

So you wanna be a Linux Systems Administrator? Every now and again, I am asked to provide a bit of training for budding systems admins or people on the career…

Using sed to find and replace text files in Linux

nixCraft have a good tutorial for the new Linux user/admin. In this example, the tutorial is to answer the question “how do I find the text called ‘foo’ and replaced…

SSHPass: How to SSH into a server using a script with no password (non-interactively)

Ever asked yourself: How do I use ssh in a shell script? How do I login non-interactively performing password authentication with SSH and shell scripts? How do I login over…

Ubuntu, SuSE and Fedora now in the Windows store!

Did you say Linux? In the Windows Store? Like, OMG! Did we just enter some weird hallucination, or parallel universe? Nope! Microsoft have announced that they continue their partnership with Ubuntu/Canonical.…

Pro Tip: For, While and Until Loops

LEVEL: SYSADMIN / TIME: 1-2 min. Here’s some handy quick reference examples to go back to easily if you are needing to use for, while and until loops in your…

running a command against every line in a textfile

So, you have a text file like so: file1 file2 .. And you want to run a command on each line of the file (say, chmod 644). Like all things…