see folder permissions linux code example
Example 1: show rights inside folder debian
$ ls -ld directory
Example 2: ls file permissions linux
ls –l [file_name]
ls –l test.txt
$ ls -ld directory
ls –l [file_name]
ls –l test.txt