The Linux shell is a command-line interface that allows users to interact with the operating system and execute commands. There…
Browsing: shell
In Bash, it is often necessary to check if a command succeeded or failed. For example, you may want to…
In Linux, PS1 is an environment variable that specifies the format of the command prompt displayed in the terminal. It…
Reading a file line by line is a common task in many shell scripts, as it allows you to process…
Question – How do I list all the collections available in the MongoDB database? MongoDB is a NoSQL database, that…
One of my development servers contains millions of files under a single directory. To free the disk space, we decided…
Concatenating strings in Bash is as simple as combining them with the double-quote (“ ”) character. However, if your strings…
tee is a command in Linux that reads from standard input and writes the output to both standard output and…
Shell, the command interpreter of an OS, processes the commands entered into the command line and widely used in Linux.…
The Zsh (Z shell) is a interactive login shell for the Unix/Linux systems. It has multiple improvement over the Bash…