Top Ten Linux Commands To Check Hardware Information On Linux

Am sure you know this already, there are a lot of commands to check information about the hardware of a system running linux. There are also some GUI tools that consolidates them all but in this article we shall look at my favourite ten command line tools that we can use to find the hardware information. The list includes lscpu, hwinfo, lshw, dmidecode, lspci etc. [read more]

How to create an init script for Redhat or Centos or Fedora

Here is a skeleton init.d script for use in RedHat/Centos/Fedora and most probably will also work in any other SystemV init style systems. [read more]

Label a Linux Partition

So if you are asking yourself, how do I label a partition, then here's the answer. You need to use e2label or tune2fs command line to change the label on an ext2/ext3 filesystem. e2label will display or change the filesystem label on the ext2 filesystem located on device. [read more]

How-To: Recover Root Password Under CentOS With Single User Mode

It happens sometime that you can't remember root password. On Linux, recovering root password can be done by booting Linux under a specific mode: single user mode.<br/> This tutorial will show how to boot Linux in single user mode when using GRUB and finally how to change root password. [read more]

How To Setup Crontab Under Linux Or Unix

How do I add a cronjob on Linux? Thats a question even some veterans ask all the time, something that is easily forgotten. At times I have forgotten the exact incantation so I wrote this down. I hope it is useful to someone else as it is for me. We use cron jobs to schedule commands to be executed periodically. Entries in the cron can be commands as you would execute them on the command line or they can be scripts. The cron service runs in the background and reads ... [read more]

How To Check Swap Usage On Linux

How do I check swap (paging) usage under Linux operating systems from the command line?Swap space (also known as paging) is nothing but computer memory management involving swapping regions of memory to and from storage. You can see swap usage summary by device using any one of the following commands. You may have to login as root user to use the following commands. The maximum useful size of a swap area depends on the architecture and the kernel version. For Linux kernels after v2.3.3+ there is no ... [read more]

How to list all hidden files in a directory recursively

We were all new to linux at one point and using the find command was the first thing I learnt. If you need to find and list all hidden files and directories You need to use the find command to list all hidden files recursively on a Linux or Unix like systems. [read more]

Title Path Published
RHEL /sysadmin/linux/rhel Edit
LVM Resources /sysadmin/linux/lvm-resources Edit
Misc SysAdmin Tasks /sysadmin/linux/misc-sysadmin-tasks Edit
Mail Server Administration /sysadmin/linux/mail-server-administration Edit
Systemd /sysadmin/linux/systemd Edit