Submitted by tensai on
Sometime last week I happened upon a handy little shortcut when using the chown command. I mistakenly keyed in the command wrong and it turned out to work, so I investigated. Turns out that by leaving off the group name, but leaving the colon, chown will automatically use the default group of the specified user. That's so handy. What's surprising is how much I really use that trick. Why, I must save literally seconds every other day or so. That's gonna add up, baby.
Here's an example for you impatient, graphical learners:
chown tensai: file.txt
1 Comment
other examples: chown
Submitted by Christer Edwards (not verified) on
other examples:
chown tensai. file.txt (. or : are interchangable)
chown .group file.txt (works on both sides of the delimiter)