Linux & Unix
How to check in a Bash script, if a file is empty
To check if a file is empty in a Bash script, you can use the "-s" test, which returns true…
How to Create A Directory in Bash if it does not exists
You can use the following script to create a directory like /home/user in a Bash script only if it does…
How to hide bash command output and errors
To redirect both the output and the errors of a Bash command to /dev/null, you can use the following syntax:…
How to Delete the root Crontab on Linux
You need root privileges to empty the root user's crontab on Linux. You can achieve this by either logging in…