If you want to know the memory size of your Linux system, you will be relieved to know that it is not necessary to crack open the PC or boot into the BIOS screen to get your information. Linux allows us to check our memory size, and other relevant information such as spare slots and RAM speed, etc, all from within the operating system. We will go over some of these hardware checking methods below.
bash
How to go to root directory in Linux
The root directory on a Linux system, which is represented by the /
character, is the parent path to all files on the installation’s partition. All operating systems have a root directory. If you are familiar with Windows systems, they use the C:\
path as their root directory.
Exit code 127 error status in Bash script
Are you receiving a exit code 127 error when trying to execute a Bash script? In this tutorial, we’ll explain what causes this “command not found” error and show you how to fix it.
VIM tutorial for beginners
The Vim editor (and its predecessor, vi) is a command line editor for Linux systems. It has a long standing reputation as being the most powerful text editor on Linux. After mastering it, many users will even claim that it is far speedier and more convenient to use than a typical GUI editor packed with lots of features in its menus.
How to obtain Linux’s system load average report
Obtaining the load average of your server(s) will shed some light on the system’s CPU usage over time. As a Linux system administrator, it is essential to obtain the load average occasionally, as to determine whether or not your systems are overwhelmed by trying to handle the current work load. Because of the way load averages are reported, it is also easy to determine if the server is being overloaded, which may mean it is time to divide up the work load across load balancing servers, or upgrade your current hardware.
Curl command not found
If you encounter the curl command not found
on a Linux system, it means that the tool has not yet been installed. The curl
Linux command can use various network protocols to download and upload data on Linux. In this tutorial, you will see how to install the curl
command on all major Linux distributions.
Curl command basics tutorial with examples
Curl is a free and open source software we can use to exchange data with servers using one of the many supported protocols, such as HTTP, HTTPS, FTP, FTP, SFTP. Since Curl is a command line tool, we can use it in our scripts, to automatize repetitive tasks, for example. There are many use-cases Curl can cover. In this tutorial, however, we see some of the most common ones.
Regex match filename
The Linux command line comes with many options that we can use in order to search for files. One of the most powerful features is regex (regular expression) pattern matching. This convention allows us to search our file system based on very granular name patterns found inside the file names – for example, the ability to search for all files that start with an A
and end with a K
. In regex, this would be written ^A.*K$
.
Example of simple bash script ftp client
If you need to use FTP to upload some files to a server every so often and want to save yourself some time, you can make a simple Bash script to transfer the files quickly. Rather than entering the username, password, and directory manually, we can get our Bash script to do this tedious legwork for us. In this tutorial, you will see an example script to make FTP transfers a cinch on a Linux system.
Clone / Burn Encrypted DVD using Linux
Hollywood movies that have been released on DVD or Blu Ray will usually come with encryption on the disk to help hinder pirated copies from making it online or for sale on the street. Much to Hollywood’s dismay, this encryption is easily foiled by any Linux system user with even a rudimentary knowledge of technology. By default, applications like Brasero will refuse to read these encrypted disks, but you will see how to overcome that obstacle shortly. In this tutorial, we will show you how to clone or burn an encrypted DVD using Linux.
Remove single quote from a file name in Bash
A file name with a single quote in its name can cause a lot of problems when used with a Bash script or used on the command line. Single quotes are special characters and instruct the Bash shell to interpret the text between them literally. Most users would, ideally, prefer to work with files that do not have quotes in the file name.
Erase dvd/cd-rw from Linux command line
Erasing a BD-RE, DVD-RW, or CD-RW disk on a Linux system can be as easy as entering one line command using the wodim
utility. In this tutorial, you will see how to erase a rewritable disk (Blu Ray, DVD, or CD) on Linux via command line.