How to check the group of linux file


In the Linux system, view the group where the file is located through the command line. The fifth column of the running result is the group where the file is located.


ls -l


ll :  List information about files (default is the current directory)
-l :  use long list format


total 0
d--------- 2 root root 56 Jul  3  2021 test
-rw-r--r-- 1 root root  0 Jan  7 12:06 testFile
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.