bd – Quickly Go Back to a Parent Directory Instead of Typing “cd ../../..” Redundantly

Introduction If you’re a frequent user of the command line, you know how tedious it can be to type out “cd ../../..” every time you want to quickly go back to a parent directory. Fortunately, there is a much simpler way to do this. In this article, we’ll discuss how to use the “bd” command … Read more

Gogo – Create Directory “Bookmarking” in Linux

Introduction Gogo is a powerful command line tool for creating directory “bookmarking” in Linux. It allows users to quickly and easily navigate to frequently used directories without having to type out the full path. Gogo also provides a number of other useful features such as tab completion, directory history, and more. With Gogo, users can … Read more

How to Exclude a Directory in Find Command

To exclude a directory in the find command, use the -prune option. For example, to exclude the directory “dir1” from the search, use the following command: find . -name “*” -prune -o -type d -name “dir1” -prune [ad_1] The find command is a very commonly used command in Linux/Unix systems. Basically, it is used to … Read more

10 Best Linux Command-Line Tools

Introduction The Linux command-line is a powerful tool for managing and automating tasks. It can be intimidating for beginners, but with the right tools, it can be a powerful and efficient way to get things done. In this article, we will look at 10 of the best Linux command-line tools that can help you get … Read more

File Permissions in Linux with Examples

File permissions in Linux are used to control who can access and modify files and directories. There are three types of permissions: read (r), write (w), and execute (x). Read (r): This permission allows a user to view the contents of a file or directory. Write (w): This permission allows a user to modify the … Read more

How to Change Output Color of Echo in Linux

The output color of the echo command in Linux can be changed by using the -e option and adding the ANSI escape code for the desired color. For example, to change the output color to green, you would use the following command: echo -e “\033[32mHello World\033[0m” The \033[32m part of the command sets the text … Read more

How to Concatenate String Variables in Bash

1. Use the concatenation operator (+): var1=”Hello” var2=”World” echo $var1+$var2 2. Use the double quotes: var1=”Hello” var2=”World” echo “$var1 $var2″ 3. Use the append operator (.): var1=”Hello” var2=”World” echo $var1.$var2 [ad_1] String concatenation is the process of combining two or more strings to form a single string. In this tutorial, you will learn how to … Read more

How to check if a variable is set in Bash

You can use the -v operator to check if a variable is set in Bash. For example: if [ -v VARIABLE_NAME ]; then echo “Variable is set” else echo “Variable is not set” fi [ad_1] When working with Bash scripts, it’s important to check if a variable is set before performing any operations on it. … Read more