Category Archives: sysadmin

PHPHOST BLOG

Web Hosting Related Articles You May Need

[one-liner]: Linux Runlevels

Background

Determining a systems runlevel can be useful when setting up a headless server or determining if a system is being used as a server or as a workstation. Thankfully it’s pretty easy, using a number of commands. But before we get started, a little background.

Runlevels are a concept from UNIX System V used by the […]

Continue reading

Posted in linux, one-liner, Syndicated, sysadmin, tips & tricks | Comments Off on [one-liner]: Linux Runlevels

How to programmatically determine the highest version kernel RPM installed?

Background

Recently on the StackExchange site Unix & Linux the following question came up which seemed easy enough to answer.

How to programmatically determine the highest version kernel RPM installed?

This turned out to be trickier than I originally thought. What follows is my ultimate answer along with several failed attempts. I leave them so that others can […]

Continue reading

Posted in centos, fedora, package management, rhel, rpm, Syndicated, sysadmin, tip, tutorials | Comments Off on How to programmatically determine the highest version kernel RPM installed?

Why are “executables” such as reboot, shutdown, and vgscan symlinks in the /sbin directory?

Background

If you’ve ever gone poking around in your Linux system’s /sbin directory the site of files like this might make you scratch your head.

1
2
3
4
5
6
7
8
lrwxrwxrwx 1 root root 3 Jun 7 2011 vgmerge -> lvm
lrwxrwxrwx 1 root root 3 Jun […]

Continue reading

Posted in linux, shell, Syndicated, sysadmin, tip, tutorials | Comments Off on Why are “executables” such as reboot, shutdown, and vgscan symlinks in the /sbin directory?

How is my password stored in Linux?

Background

People that use Linux on a daily basis probably are completely oblivious to the actual mechanisms being used to store their passwords safely and securely on a given Linux system. Oh they might guess that their password is stored in the /etc/passwd file (they’d be wrong by the way) but most probably never even gave […]

Continue reading

Posted in encryption, linux, passwords, Security, SHA-512, shadow, Syndicated, sysadmin, tutorials | Comments Off on How is my password stored in Linux?

[one-liner]: Why is Conky reporting a lower CPU frequency, when my CPU frequency is actually much higher?

Background

If you’ve every dealt with Conky you may have gotten a little confused when you’re trying to get it to display your CPU frequency like so:

1
${freq_g cpu0} Ghz

… and Conky is reporting your CPU frequency as 1.12GHz when in fact it’s actually much higher than that, say 2.67GHz. Most likely this is being caused by […]

Readers who viewed this page, also viewed:

Continue reading

Posted in conky, linux, monitoring, one-liner, performance, Syndicated, sysadmin, tips & tricks | Comments Off on [one-liner]: Why is Conky reporting a lower CPU frequency, when my CPU frequency is actually much higher?

[one-liner]: Checking out a HDD’s Health using the Command Line Tool udisk

Background

Here’s a quick tip for checking out the overall health of your computer’s hard drive. It makes use of a little known tool called udisks which provides access to information about storage devices from the D-Bus interface.

Solution

Before we jump into udisks here are some resources that might prove useful when dealing with the design/architecture of […]

Readers who viewed this page, also viewed:

Continue reading

Posted in HDD, linux, monitoring, one-liner, performance, Syndicated, sysadmin, tips & tricks | Comments Off on [one-liner]: Checking out a HDD’s Health using the Command Line Tool udisk

[one-liner]: Monitoring Network Traffic with Netstat on Linux

Background

This is a quick guide to some not so obvious command-line options available in the Linux netstat(8) command. I hope you enjoy it.

Solution

1. Plain old netstat

Without any command-line arguments, “netstat” shows a list of network connections in your system, including TCP, UDP and UNIX socket connections. If you want to speed up things a bit, […] Continue reading

Posted in linux, monitoring, one-liner, redhat, rhel, Syndicated, sysadmin, tips & tricks | Comments Off on [one-liner]: Monitoring Network Traffic with Netstat on Linux

[one-liner]: Using scp to Copy Files that Contain Spaces

Background

Have you ever needed to copy either a single file or a directory that contains spaces using scp? Here are a couple of techniques for how to do this.

Solution

Here are several ways to accomplish the same thing. Copying a entire directory with spaces and copying a file with spaces using scp.

1
2
3
4
5
6
7
# Ways to copy entire […] Continue reading

Posted in bash, one-liner, script, Syndicated, sysadmin, tip, tips & tricks | Comments Off on [one-liner]: Using scp to Copy Files that Contain Spaces

[one-liner]: Installing 3rd Party Apps (Java, Skype, MS Fonts, and Codecs) using the app easyLife on Fedora Linux

Background

Never heard of this app before, easyLife, but it purports to simplifying the installation of the extras that you typically will need on your Fedora system, (i.e. Java, Nvidia, Skype, Adobe Flash, Fonts, etc.). It works like other apps have in the past, Automatix & Ultamatix, on Ubuntu, and Fedora Frog just to name a […] Continue reading

Posted in centos, fedora, one-liner, redhat, rhel, Syndicated, sysadmin, tips & tricks | Comments Off on [one-liner]: Installing 3rd Party Apps (Java, Skype, MS Fonts, and Codecs) using the app easyLife on Fedora Linux

How to Add a New Hard Drive to a Linux Software RAID (CentOS & Fedora)

Getting Started

A while back I setup a 1TB hard drive for backing up my primary file server. That 1TB drive was setup in a software RAID, a RAID 1 mirror to be exact. However I opted at the time to only add the one drive to the RAID, mainly because I only had just the […] Continue reading

Posted in centos, fedora, RAID, redhat, rhel, Syndicated, sysadmin, tutorials | Comments Off on How to Add a New Hard Drive to a Linux Software RAID (CentOS & Fedora)