Learn ways to suggest a shell script is to be sourced or prevent its direct execution altogether in Linux.
Also find me here:
Baeldung Author
Taimoor Mohsin
I'm a passionate Linux OS enthusiast with over 4 years of experience. I love to share my knowledge and expertise with the world through writing.
Here's what I've written (so far):
Baeldung on Linux
- All
- Scripting (6)
- Administration (3)
- Search (1)
- Filesystems (1)
- Files (1)
- File Editing (1)
- File Conversion (1)
How to Check if a Number Is Within a Range in the Shell
Filed under Scripting
Learn ways to check whether a given input is within a provided number range in the Linux shell.
How to Remove Subsequent Lines in a File After a Matching Pattern
Filed under File Editing
Learn how to cut a file after the line matching a given pattern.
How Is cp -f Different From cp –remove-destination
Filed under Files
Learn the difference between the similar -f and –remove-destination switches of the cp command.
How to Read the Last Element of a Bash Array
Filed under Scripting
Learn ways to get only the last element of an array in Bash.
Linux Commands to Mute and Unmute a Microphone
Filed under Administration
Learn about ways and tools to mute and unmute the microphone on a Linux system.
How to Empty the Trash in Linux CLI
Filed under Administration
Learn ways to manually and automatically clear the contents of the Linux trash directory.
How to Check if a String Contains an Uppercase Letter in Bash
Filed under Scripting
Learn various ways to detect an uppercase letter within a string.
Difference Between date, echo date, echo “`date`”, and echo ‘`date`’
Filed under Scripting
Learn about differences between similar commands with different quoting mechanics in the Linux shell.
How to Extract the First Word of a String in Bash
Filed under Scripting
Learn how to extract the first word of a multi-word string when using the Bash shell.
Convert Multiple Image Files to PDF From the Command Line
Filed under File Conversion
Explore imagemagick and img2pdf to convert multiple images to PDF files.
How to Find the Position of a Character in Text
Filed under Search
Learn how to find the position of a character within a text using the grep and awk commands.
How to Delete Non-empty Directories Using the find -delete Command
Filed under Administration, Filesystems
Learn ways to use the find -delete command, as well as pitfalls to watch out for.