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.
LS File Size in kB, MB
Sometimes you may need to view file size in kb and Mb. Here is how to find file size in kb & Mb using ls command.
How to Get User Input in Shell Script
Often you will need to read user input in shell script. Here is how to get user input in shell script using read command.
How to Check SSD Health in Linux
As system administrator, you may be required to constantly track SSD health. Here is how to check SSD health in Linux
How to Touch All Files in Directory
Sometimes you may need to change timestamp of too many files. Here is how to you can touch all files in directory at one go.
How to Exit For Loop in Shell Script
Sometimes you may need to exit for loop or while loop in shell script. Here is how to come out of for loop in shell script.