On 12/19/17 14:07, Dan Hitt wrote:
Just for reference, although the attributes exist and i ithink are
exactly what i need, it looks like the system has to be nudged a
little to use them.
So, for example, with cp, you need to do 'cp -a' to carry along the
attributes ('cp -p' is not enough).
Also, it looks like tar has to be told about the attributes both on
the way in and on the way out:
tar --xattr -cf my_archive.tar my_file
tar --xattr -xf my_archive.tar
It would be nice if the system could be told to use attributes by default.
How about using aliases?
For example, in my ~/.bashrc:
alias cp='cp -ip'
alias mv='mv -i'
See bash(1) ALIASES.
David