Sometimes you may need to check if string contains substring in bash. Here are the different ways to do this in Linux.
Linux
Shell Script to Remove Last N Characters from String
How to Find Unused IP Addresses in Network
Sometimes you may need to find unused IP addresses in your network. Here is how to find unused IP addresses using nmap utility tool.
How to Setup Email Alerts for Root Login in Linux
It is important to setup email alerts for root login in Linux. Here are the steps to setup automated email alerts for root login.
How to Switch User without Password in Linux
How to Zip Files & Folders in Linux
Zip allows you to easily compress files & folders in Linux. Here is how to zip files & folders in Linux.
What are the Different Shells Available in Linux
Linux offers different kinds of shells to work with. Here are the different shells available in Linux.
How to Fix Permission Denied Error While Running Shell Script
Sometimes you may get “Permission Denied” error when you try to run shell script. Here is how to fix permission denied error while running shell script.
How to Get Filename from Path in Shell Script
Sometimes you may need to to retrieve file name from file path. Here are the steps to get filename from path in shell script.
Shell Script to Trim Whitespace
Often you may need to trim whitespace from files. Here is a shell script to trim whitespace. You can use it for one or more files.