I'm confused between two tages that can be used in
if statement in bash scripting.
-f and other is
Their description states as follows:
[ -f FILE ] True if FILE exists and is a regular file. [ -a FILE ] True if FILE exists.
Now, while using the if condition in my shell script how can I know which tag should I use. Like I have a script which takes regular backups using
tar and creates a file
file-name.tar.gz so how can I know which is a regular file. Thanks.