Home / How-To & Tutorials / Linux (page 2)

Linux

Bash Parallel – easily run parallel processes in bash

You don’t have to write complicated bash shell scripts to accomplish parallel processing! Take this as an example of the hard way, It’s going to create 5 “threads” and each while loop can run with 5 at a time. Eh… Complicated. ...

Read More »

Disabling root login on Linux

One of the biggest mistakes any Linux Administrator can make is allowing root to log into the server directly via SSH, the reason this is a huge mistake is root is an account that everyone knows the name of so ...

Read More »

How to install a LAMP (Linux, Apache, MySQL, PHP) stack on CentOS/RHEL

What is a LAMP Stack? A LAMP stack is a group of software that you install on a server to serve your own websites. Much like how this blog is being served to you, I purchased a VPS and then ...

Read More »

Perl – Executing System Commands

Perl comes with the ability to execute commands at the OS level, on any OS you are running (Linux, Windows, Mac, etc etc) There are three options available, all are different: system – Returns an exit code of the command ...

Read More »

Perl Tips And Tricks (Part 1)

A good developer tries to use as little lines of code as possible. If theres 2 ways to do something, and one takes one line, and the other takes 3, then you typically would want to go with the one ...

Read More »

Viewing Bash Exit Status Codes With Pipes

Recently I was executing bash scripts from within bash scripts, and executing commands based off of exit code, typically I just use or just the typical But now what if you are also piping the output of script.sh through tee? Then you ...

Read More »

The Best Way to Install Nagios – Using OMD The Open Monitoring Distribution

Without a doubt the best OpenSource monitoring software out there is Nagios. Now I’m sure this is a debatable topic and some favor other options out there such as Zabbix. But if your a true Linux head, and loath any ...

Read More »

How to quickly and efficiently delete all data in a LARGE MySQL table using TRUNCATE

If you have a very large table in MySQL and you need to delete all the data from it. Instead of using the DELETE syntax or DELETE FROM tablename; It is best to use the TRUNCATE syntax. This will delete all data ...

Read More »