Beginners Guide for File Command on Linux

The file command in Linux is used to determine the MIME encoding (e.g. “image/jpeg; charset=binary”) or file type (e.g. “ASCII text”) for the target file. Tutorial Details Description Determine file type Difficulty Level Low Root or Sudo Privileges Yes (for one command) OS Compatibility Ubuntu,

What is /dev/null in Linux?

The “/dev/null” file is a special file that can be found in all Linux systems. They are also referred to as “null device files”, “void”, and sometimes “a black hole of Linux”. There is not any specific role for this file; however, if you redirect

Understanding Stdin, Stdout, and Stderr Streams in Linux

If you ever used vim, nano, or read commands, you were already using the stdin stream. Or if you were listing the files and directories from your system using the ls command, you were using the stdout stream. In case you misspelled your command or

Beginners Guide for Sed Command on Linux

The sed command is a stream editor that helps you search, find, replace, insert, and delete strings from the referenced text file without opening it. It is similar to the AWK and grep commands that follow the regular expression approach to modify the string from

Beginners Guide for AWK Command on Linux

Awk is a domain-specific programming language that can be used as a Linux command-line tool or within a shell script. The working is similar to the sed and grep commands, extracting the data from the reference file using the regular expressions. It can be piped

Systemctl Mask vs Systemctl Disable

The “systemctl mask” and “systemctl disable” are both crucial commands for Linux administrators, and you must know their differences to decide which one to choose in certain situations. The “systemctl enable” command allows your services to start on system boot. If you disable your service

How to Use Systemctl Command in Systemd Linux System

Most Linux distributions, such as Debian, Ubuntu, Fedora, Redhat, Manjaro, or OpenSUSE, use systemd as their init system; if unsure, you can check whether you are using systemd or not. Despite all the criticism surrounding systemd, it still holds the number one position on the

Compgen Command on Linux with Examples

The compgen command is a very handy tool available in major Linux distributions that can help you find your system aliases, shell built-ins, commands, directories, groups, jobs, users, etc. In this article, you will learn how to use the compgen command with practical examples. Tutorial

Cat and Tac Command Usage on Linux

The cat command is pretty useful for reading, creating, and concatenating files. While the tac command also works similarly to the cat command, which outputs the last line first. Tutorial Details Description Cat and Tac command Difficulty Level Low Root or Sudo Privileges Maybe OS

What is Symbolic Links (or Symlinks) in the Linux

Symbolic links, sometimes also referred to as “symlinks”, are used to create file pointers pointing towards files and directories identical to Windows shortcuts in a Linux system. In this article, you will learn different types of symbolic links, how to create them, and then how

How to Install and Use Emacs in Linux

Emacs is one of the oldest text editors with ongoing development, providing rich and powerful features that can be further extended using plugins. It provides a wide range of functionalities that can be very useful for programmers and Linux administrators while modifying the configuration file.