RutaCubano

A cuban around the globe

Tag: test

[How To] Check if a File or Directory exists in Bash

More and more when I need to automate backup tasks or perform devops tasks, it becomes essential for me to verify the existence or not of specific files or directories. In Bash, you can use the TEST command to check whether a file exists and determine the type of the file. The test command takes