Most of the non-SSD hard drives allow for a noise reduction by decreasing head movement speed while accessing data. This ability is called Automatic Acoustic Management or AAM. In this tutorial, you will see how to install the hdparm
software package on all major Linux distros and use it to manipulate AAM values to reduce or increase head movement, thus directly affect hard drive’s noise level.
Luke Reynolds
How to get HDD temperature in Linux
Depending on your server room conditions it may be important to be informed about the hard drive temperatures inside of your servers. System administrators may use Bash and cron to write a simple script that can alert them about sudden temperature change. Various command line tools such as inxi
or hddtemp
can check your HDD temperature and be used inside of a Bash script.
How to check HDD firmware version in Linux
The command line terminal on Linux systems can give us a lot of insight into the hardware of a computer. Among many other things, we can retrieve the HDD firmware directly by using the Linux command line.
How to check hard drive power on hours in Linux
In this how to check hard drive power on hours in Linux you will see how you might prevent disaster, by knowing details about system’s storage device in terms of “power on” hours (runtime), number of read and writes, or bad blocks, to determine the overall hard drive’s health and ageing.
Convert utc date and time to local time in Linux
The date command in Linux is capable of converting the date and time from UTC to the local time of your system.
Removing duplicate lines from a text file using Linux command line
Removing duplicate lines from a text file can be done from the Linux command line. Such a task may be more common and necessary than you think. The most common scenario where this can be helpful is with log files. Oftentimes log files will repeat the same information over and over, which makes the file nearly impossible to sift through, sometimes rendering the logs useless.
In this guide, we’ll show various command line examples that you can use to delete duplicate lines from a text file. Try out some of the commands on your own system, and use whichever one is most convenient for your scenario.
In this tutorial you will learn:
- How to remove duplicate lines from file when sorting
- How to count the number of duplicate lines in a file
- How to remove duplicate lines without sorting the file
Bash get yesterday date
The purpose of this tutorial is to show how to get yesterday’s date via the Bash command line on a Linux system. The date command gives us a few ways to accomplish this. Check out the examples below to see how to retrieve yesterday’s date in Bash.
Write first bash script
After reading this short shell scripting tutorial, you will be able to to create and execute your own Bash shell script. No previous knowledge of shell scripting is required. However, you are expected to have some knowledge of how to start a command line terminal and how to edit text files with some text editor of your choice.
Detach process from parent on Linux
Every program you run from your working shell is, to the Linux system, regarded as a process. Each process, except init
, has its parent identified by PPID (parent process ID). When you start a process using your current shell, the shell itself becomes a parent for your newly started process. The trouble with this approach is that this may not always be desirable, since when the parent process is terminated, its child dies with it.
How to disable user login with Linux nologin
At some point, the time will come when a system administrator needs to disable user accounts on a Linux system. This can be achieved by Linux nologin technique. Some common reasons for disabling user accounts are due to some suspicious user activity, or perhaps due to a user’s work contract termination.
Understanding foreground and background processes in Linux
As a Linux system administrator, you may sometimes want to run processes in the background to continue working in your command line terminal while the background process finishes its work. Linux systems allows for simultaneous process execution and ability to run programs in the foreground and background.
inxi installation and usage on Ubuntu/Debian
The inxi
Linux command can be used to see various system information and other handy bits of data right from your terminal. The command is ordinarily not installed by default. However, it is a small software package that provides access to the command, and it proves especially useful to system administrators and power users.