How to view file permissions in linux


 description

View the permissions of file1.txt in Linux

 command

ls -l file1.txt

 parameter

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

 result

-rw-r--r-- 1 root root 0 Jun 16 00:40 file1.txt

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.