Get CPU temperature on Linux

Get CPU temperature on Linux

The ability to get the temperature of a key component such as a CPU is important, whether you are gaming, overclocking, or hosting intensive processes on a critical server for your company. The Linux kernel comes with modules built in that allow it to access onboard sensors within the CPU. In this tutorial, you will learn how to access these sensors and get the CPU temperature on a Linux system.

Read more

Rename/Replace white space in files in entire directory recursively

Rename/Replace white space in files in entire directory recursively

The purpose of this tutorial is to show various methods on how to rename or replace white space in multiple files. Some tools on a Linux system may not work properly with files that contain white spaces, which would give some users motivation to replace the white space with underscores, for example. Manipulating files without white space is much easier, as you do not have to worry about escaping the file name each time.

Read more

article-main

How to run commands periodically with anacron on Linux

When we need to schedule a task on a Linux system we can use utilities like cron or systemd-timers. Various implementations of cron exist, but they have in common the fact that they run as a system service, and are designed to be used on systems which are always up and running, like servers. When we need to schedule a task on a desktop or a notebook, which are turned off more often, we can use anacron instead.

Read more

How to extract a number from a string using Bash example

How to extract a number from a string using Bash example

The purpose of this tutorial is to show how to extract a number from a string using Bash – that is, either in a Bash script or from the Linux command line. It is common to use Bash as a utility to process strings or other textual data, so it is well equipped for the task of separating numbers out of a string. There are numerous ways to achieve this; see some of the examples below to get started.

Read more

Mounting an NTFS partition on a Linux system

How to mount partition with ntfs file system and read write access

NTFS stands for New Technology File System and is developed by Microsoft for use on their Windows operating systems. NTFS is normally used on Linux systems, but has been the default file system on Windows for many years. Linux users are probably used to seeing drives with the ext4 file system, which is ordinarily the default and certainly the most widespread in the Linux realm.

Read more

Sudo: allow command without password

Sudo: allow command without password

Nearly every Linux distribution these days uses the sudo utility as a way to grant non-privileged users the ability to execute commands as privileged root users. You may have noticed that after entering your sudo password once, you can continue to execute commands without needing to re-enter it for five minutes. We can even extend this convenience by allowing any sudo commands to be executed without a password.

Read more