How to Check If a File or Directory exists in Linux
When you writing a bash script, you may be need to check if a given file or directory exists or not. And this post will guide you how to if a file or directory exists… read more »
When you writing a bash script, you may be need to check if a given file or directory exists or not. And this post will guide you how to if a file or directory exists… read more »
This post will guide you how to write an Bash shell script to read a given file line by line in your Linux system. You can use while read line construction to read a file… read more »
This post will guide you how to set exit status in bash shell script. How do I check exit status of a command from the command line in your Linux operating system. What is Exit… read more »
This post will guide you how to create a permanent bash alias on your Linux operating system. How do I list all alias names in your current bash shell. List all Alias Create a Permanent… read more »
This post will guide you how to understand bash fork bomb in Linux operating systems. How to prevent fork bomb bash script by limiting user’s process in your Linux system. What is Fork Bomb How… read more »
This post will guide you how to run .sh file to install a software application from the command line in your Linux operating systems. How to execute a shell script .sh file on your linux… read more »
This post will guide you how to run shell scripts from the command line in your Linux operating systems. How to create and execute a simple shell or bash script in Linux. What is Shell… read more »
This post will guide you how to sleep or delay a bash script execution for a specified time under your Linux operating systems. How do I delay for a specified amount of time in seconds,… read more »
This post will guide you how to append or add text or lines to end of a given file using the command line in the Linux Operaing systems. How do I redirect a standard output… read more »
This post will guide you how to list all files sorted by file size using Ls command at the shell prompt in your Linux system. How do I sort all files in a given directory… read more »
This post will guide you how to avoid “permission denied” spam when using find command at the shell prompt in your Linux system. How do I only exlude “permission denied” error message from the outputs… read more »
This post will guide you how to list all processes for a given user at the shell prompt in your Linux Opearting systems. How do I list all running processes names for my user in… read more »
This post will guide you how to find out if a bash variable is null or not in your Linux system. You just need to use the If or test commands with the -z option… read more »
This post will guide you how to bypass an alias in bash shell for a single Linux command. How do I temporarily bypass an alias in bash shell. How to disable an alias in bash… read more »
This post will guide you how to exclude files when using scp or rsync command to copy directory recursively in Linux system. How to filter files when using scp or rsync command Under Linux bash… read more »