There is a folder, in it other files and folders (including hidden ones), which belong to different users. I want to assign everything to the current user:
sudo chown user:group * However, this command only works for non-hidden files and folders. I guessed that for the hidden you need to (the truth, it also affects . )
sudo chown user:group .* And what to indicate instead of *, so that both categories are at once? We need a solution that is not tied to chown, that is, to work with any other team. I suspect that there is some simple solution with wildcards, but I do not know him.
There is also find, but it is recursive and much more cumbersome. No good.
find . -exec chown user:group {} \+