Hoàng Diễm Quỳnh
New member
What are the test commands to check the permission of a file?
Answer
The bash shell test command has many more options as follows:
Answer
The bash shell test command has many more options as follows:
- -w FILE : FILE exists and write permission is granted.
- -x FILE : FILE exists and execute (or search) permission is granted.
- -d FILE : FILE exists and is a directory.
- -e FILE : FILE exists.
- -f FILE : FILE exists and is a regular file.