How to Remove Directories and Files Using Linux Command Line

How to Remove Directories (Folders) You can remove or delete directories or folder  with the rmdir and rm in in linux,. Here are examples to help you delete either file or folder. Enjoy. To remove an empty directory, use either rmdir or rm -d followed by the directory name: To remove non-empty directories and all the files within them, use the rm command with the-r (recursive) …

How to Remove Directories and Files Using Linux Command Line Read More »

Configure HTTPS using SSL certificate on WAMP local server

Generate Private key Open terminal as an Administrator and goto openssl installation path by typing below commad. then enter below command and enter a password 2 times and then enter below command and enter same password you entered in previous step. Create SSL Certificate Enter below command and enter real or dummy company information You …

Configure HTTPS using SSL certificate on WAMP local server Read More »

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 »