how to check permissions in linux code example Example 1: show rights inside folder debian $ ls -ld directory Example 2: how to see permissions for file in linux ls –l [file_name]