Skip to main content
Validating file and/or directory using if statement in Linux

When we do admin related activities in linux via bash scripts, we may need to validate whether it is a file or directory.

We can see in the below illustration how can we validate a file or directory.

Comments