How to view file permissions in linux


View the permissions of file1.txt in Linux


ls -l file1.txt


ls :  List the relevant information of the file, the default is the current directory
-l :  use long list format


-rw-r--r-- 1 root root 0 Jun 16 00:40 file1.txt
Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.