Sometimes you may need to remove last N characters from string. Here is a shell script to do it.
Linux
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 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.
How to Switch User in Ubuntu & Linux
Sometimes you may need to switch user in Ubuntu Linux. Here are the different commands to switch user in Ubuntu Linux.
How to Bring Background Process to Foreground in Linux
Sometimes you may need to bring background process to foreground in Linux. Here is how to easily bring processes to foreground in Linux.