Programming

Computer programming is the process of designing and building an executable computer program to accomplish a specific computing result.

Programming involves tasks such as: analysis, generating algorithms, profiling algorithms’ accuracy and resource consumption, and the implementation of algorithms in a chosen programming language (commonly referred to as coding).

How to create Virtual Hosts in Nginx server

There are two directories in which we can create and store our virtual host configuration files. Both of them are located inside /etc/nginx directory. The name of those two directories are sites-available and sites-enabled. But why do we need two directories to store our virtual host files? Actually, we will store our virtual host files in the sites-available directory only. Then, we …

How to create Virtual Hosts in Nginx server Read More »

How to Specify the Script’s Interpreter for bash script

To specify the script’s interpreter for a Bash script, you can use the shebang line. The shebang line is the first line of the script and begins with #! (hashbang) followed by the path to the interpreter. For example, to specify the Bash interpreter, you would include the following shebang line at the beginning of …

How to Specify the Script’s Interpreter for bash script Read More »

What is The Shell or Bash Environment?

The shell or Bash environment refers to the execution environment provided by the Bash shell, which is a command-line interface and scripting language used in Unix-like operating systems, including Linux. When you open a terminal or command prompt, you enter a shell environment where you can interact with the operating system by executing commands. The …

What is The Shell or Bash Environment? Read More »

Exporting Variables In Bash. What is it and how to use it?

In Bash, the export command is used to create or modify environment variables and make them available to child processes. When a variable is exported, it becomes part of the environment for any subsequent commands or scripts that are executed. Here’s how you can use the export command to export variables in Bash: In this …

Exporting Variables In Bash. What is it and how to use it? Read More »

What is parameter expansion in bash and how to use it

Parameter expansion in Bash allows you to manipulate and expand the values of variables. It provides a way to perform string manipulation, substitution, or extraction operations on variable values. Here are some commonly used parameter expansion techniques in Bash: In this example, the value of the name variable is substituted into the string using ${name}. …

What is parameter expansion in bash and how to use it Read More »

Sub-shells

In Bash, a subshell refers to a child shell that is spawned as a subprocess of the main shell. It operates independently and has its own environment, variables, and execution context. Subshells are useful for isolating and controlling processes within a script or shell session. Here are a few scenarios where subshells are commonly used: …

Sub-shells Read More »

List of Common Used Special Variables in Bash and what they mean

Here is a list of commonly used special variables in Bash and their meanings: These special variables provide valuable information about the script’s execution environment, command-line arguments, process IDs, and other relevant details. They allow you to access and utilize this information within your script to make decisions, perform operations, or provide feedback to the …

List of Common Used Special Variables in Bash and what they mean Read More »