Posted: . At: 9:18 AM. This was 7 years ago. Post ID: 11289
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


How to have all files in a directory to all default to the parent permissions.


This command will set all new files in the directory to all default to the permissions set to the parent directory. This is very useful when creating a new directory and you wish to ensure that the files therein have correct permissions.

jason@jason-desktop:~$ sudo setfacl -R -d -m o::rwx Documents/
[sudo] password for jason:

A very useful UNIX/Linux command.

If a new subdirectory is created within this directory, the permissions will be transferred to this as well by default.

This version of this command will do the same thing, but will not set this to be the default for new subdirectories.

sudo setfacl -R -m o::rwx Documents/

Another way to print Hello World at the Linux prompt. A strange but simple command.

jason@jason-desktop:~/Documents$ echo "Hello" >| echo "World" > out.txt; cat out.txt | rev
dlroW olleH

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.