Beginners Guide for ls Command in Linux

The ls command is used to list all files and directories in the specified directory. Apart from that, it will also show you the properties of the files and directories, like their permissions, ownership, size, and modification date. Tutorial Details Description ls Difficulty Level Low

Beginners Guide for Echo Command in Linux

The echo command takes the text or file as an argument and prints the output on the terminal screen. It is mostly used in shell scripts when developers create a variable and use the variable to print the value on screen using the echo command.

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