how to check permission to edit a file in linux shell script code example Example: ls file permissions linux ls –l [file_name] ls –l test.txt