How to Add a Directory to the $PATH Variable in Linux

In Linux, whenever you want to execute any executable program or script, you need to jump into the directory and execute your program or script. But when you execute system commands like ls, pwd, echo, apt, and nano, you don’t need to jump into any

Beginners Guide for Source Command in Linux

The source is a built-in command-line tool that reads and executes the commands from the specified file (in order) as its argument in the current shell. Each command from the specified file will be delivered to the TCL interpreter to be read and run, making

Beginners Guide for Env Command on Linux

The env command is an advanced version of printenv with a few more features to tweak your environment variables, like setting new environment variables, printing all environment variables, or executing a command or script in a modified environment. I would also suggest you read the

Beginners Guide for Printenv Command on Linux

The printenv command is an alternative to the env command used to fetch the value of a specified variable name (key) used as an argument. If no variable name is assigned to printenv, it will print all environment variables in your system. Tutorial Details Description

Difference Between /etc/profile, ~/.bash_profile, ~/.profile, ~/.bashrc, etc

The bash or any other shell uses multiple profiles, also known as shell configuration files, like “/etc/profile“, “~/.bash_profile“, “~/.profile“, “~/.bash_login“, “~/.bashrc“, “~/.bash_history“, and “~/.bash_logout” to configure the user’s interactive login or non-login shell. Files Description /etc/profile It stores the variables, aliases, functions, etc. that are

How to Set and List Environment Variables in Linux

The environment variables are a set of key-value pairs that define the shell environment and can affect the behavior of the ongoing programs that are executed in the current shell session. The programs running in the current shell session can access the variable values from

Different Ways to Search Files or Directories on Linux

In Linux, you have multiple tools that can help you find the absolute path for files and directories in your system. Today, you’ll learn about those tools from basic to advanced, including their pros and cons to help you easily distinguish between them and decide

35+ Advance Examples of the Find Command in Linux

The find command is an advanced tool for searching files or directories rigorously in your file system, taking a little longer time than its alternative tools like the locate command. It’s due to its nature of searching a specified file by walking through each file

Beginners Guide for locate Command on Linux

The locate command is used to quickly search for files or directories within the indexes in the database file known as updatedb. It is identical to the find command, except it will search in the database file, which is much faster than find’s method of

Beginners Guide for Whereis Command on Linux

The whereis command is used to find the paths of binary, source, and manual files for a specified command, similarly to the find command but consuming less memory. Tutorial Details Description Whereis Difficulty Level Low Root or Sudo Privileges No OS Compatibility Ubuntu, Manjaro, Fedora,

Beginners Guide for Whatis Command on Linux

The whatis command is used to fetch a one-line description of the specified command from the manual pages. The search query (command) you will use as an argument to get the description will be looked up in the index database maintained by the “maindb” program.

Beginners Guide for Which Command in Linux

The which command locates the executable command or file location in the user’s environmental path. It will give you the complete path of executable command or file pointing towards in your file system. Tutorial Details Description Which Difficulty Level Low Root or Sudo Privileges No