linux check current path permissions code example Example: show rights inside folder debian $ ls -ld directory