What are the test commands to check the permission of a file?

What are the test commands to check the permission of a file?
Answer
The bash shell test command has many more options as follows:
  1. -w FILE : FILE exists and write permission is granted.
  2. -x FILE : FILE exists and execute (or search) permission is granted.
  3. -d FILE : FILE exists and is a directory.
  4. -e FILE : FILE exists.
  5. -f FILE : FILE exists and is a regular file.
30 дек. 2019 г.
 

Tìm kiếm

Back
Top