Beginners Guide for Env Command in Linux
https://linuxtldr.com/env-command/
https://linuxtldr.com/env-command/
Linux TLDR
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 in a modified environment.
How to Add a Directory to PATH in Linux
https://linuxtldr.com/adding-a-directory-to-the-path-variable-in-linux/
https://linuxtldr.com/adding-a-directory-to-the-path-variable-in-linux/
Linux TLDR
How to Add a Directory to the $PATH Variable in Linux
To avoid jumping into the directory to execute your local program or script, you can add their paths to the $PATH variable to access them from anywhere.
How to Shrink Long or Multiple Commands into Single Small Command
https://linuxtldr.com/shrinking-long-or-multiple-commands-into-a-single-short-command/
https://linuxtldr.com/shrinking-long-or-multiple-commands-into-a-single-short-command/
Linux TLDR
How to Shrink Long or Multiple Commands into a Single Short Command
In Linux, multiple long commands can be easily replaced with a single short command using the alias command.
How to Count String Occurrences in a Text File
https://linuxtldr.com/counting-string-occurrences-in-a-text-file/
https://linuxtldr.com/counting-string-occurrences-in-a-text-file/
Linux TLDR
How to Count String Occurrences in a Text File
In this article, you will learn to count the number of string occurrences in a text file using the grep, wc, and tr commands, including the VIM text editor.
How to Run a (.sh) Shell Script in Linux [for Beginners]
https://linuxtldr.com/how-to-run-a-shell-script-in-linux/
https://linuxtldr.com/how-to-run-a-shell-script-in-linux/
Linux TLDR
How to Run (.sh) Shell Script in Linux [for Beginners]
Learn how to write and run a shell script using the bash or source command, or run it from the URL and execute it using its path.
Beginners Guide for Export Command in Linux
https://linuxtldr.com/export-command/
https://linuxtldr.com/export-command/
Linux TLDR
Beginners Guide for Export Command in Linux
The export command is used to create environment variables or update variable values in the current shell session by newly forked child processes without starting a new shell session.
What is Exit Status Code ($?) of Last Command in Linux
https://linuxtldr.com/exit-status-in-linux/
https://linuxtldr.com/exit-status-in-linux/
Linux TLDR
What is Exit Status Code ($?) of Last Command in Linux
The “$?” is a built-in variable that your shell uses to store the exit status code of the last executed command in integer format and remains unchanged unless the next command is executed.
Writing Single-Line, Inline, and Multi-line Comments in Linux Shell Script
https://linuxtldr.com/comments-shell-script/
https://linuxtldr.com/comments-shell-script/
Linux TLDR
Writing Single-line, Inline, and Multi-line Comments in Linux Shell Script
Like other programming languages, bash provides you with the option to ignore a single line, inline, or a block of lines from execution.
How to Use Here Document (HereDoc) in Linux Shell Script
https://linuxtldr.com/heredoc/
https://linuxtldr.com/heredoc/
Linux TLDR
How to Use Here Document (HereDoc) in Linux Shell Script
In Bash and also for other implementations of the shell, like zsh and fish, you can use the HereDoc to redirect a multi-line or block of lines from the script as an input to interactive commands.