What does the - before the filename mean in setfacl --set-file ?
For example, to copy the ACL from one file to another, the command is getfacl notes | setfacl --set-file=- notes2.
Why is there a need for the - after the = sign ? I tried it without the -, and I got "No such file or directory" .. Additionally, I googled and there seems to be a -f option for setfacl, but the man page doesn't state it. Anybody can shed light on this well ? Thanks alot :) |
The dash tells setfacl to read from standard input, which is needed due to the pipe used.
From the setfacl man page: Quote:
Quote:
Code:
$ setfacl -v |
Holy, I totally missed that line in the man page.. My bad. Kudos.
Oh I see, thanks alot. In any case, I spotted the -f option here. |
All times are GMT -5. The time now is 04:07 AM. |