Home / How-To & Tutorials (page 2)

How-To & Tutorials

Linux How-To’s & Tutorials

DU vs. DF – Which Ones Right? Which To Trust?

du and df are both basic Linux commands that come pre-installed on every flavor of Linux (to the best of my knowledge). Snippet from the man page for du… NAME du — display disk usage statistics DESCRIPTION The du utility ...

Read More »

Customize Your Bash Prompt

Bash Prompt The bash prompt, when customized, can be more useful than most people think. The default one that comes with most distros is pretty ugly and boring. The default is… Which looks like this when you’re in the console: ...

Read More »

Bash Tips And Tricks (Part 1)

I have always thought of bash as a “Quick ‘n Dirty” way of taking care of things, it isn’t by any means a powerful language. It’s not meant for writing programs, not meant for creating games, not meant for much ...

Read More »

Macbook – Find whats eating up your HDD

I know… this isn’t Linux, and a lot of Linux folk hate Mac. Putting Apple Inc aside, Mac is actually a great operating system to use to manage Linux servers in a corporate environment. I HATED Macbooks for the longest ...

Read More »

RHEL / CentOS: Safely remove old unused Kernels

I have ran into it before when you do a yum update, it prompts you telling you that there isn’t enough space free on the /boot partition. You have two options at this point, either increase the space the /boot ...

Read More »

RHEL5 / CentOS5: File Conflicts when Upgrading VMWare Tools with Yum

One of the issues that I have ran into is when you’re running VMWare virtual machines, and a new kernel comes out, it seems to break the vmware-tools upgrade processes. It was extremely frustrating, because you would go to update ...

Read More »

RHEL: Cannot retrieve repository metadata (repomd.xml) for repository

I’ve ran into this issue a few times where I currently work, and it was extremely frustrating trying to figure out why I was unable to update our systems via yum, and kept receiving this error. What we found for ...

Read More »

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 »

Flexibly moving files with lftp

There is a great tutorial over at IT World on using lftp, a lesser known command line FTP/HTTP client.   This versatile client has been around since the mid 90’s, but gets less visibility these days compared to curl or wget.  There ...

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 »