Here is a command that I saw in a tutorial:
mkswap /swap && chown root. /swap && chmod 0600 /swap && swapon /swap
What does the .
mean?
Here is a command that I saw in a tutorial:
mkswap /swap && chown root. /swap && chmod 0600 /swap && swapon /swap
What does the .
mean?
The
.
in this context is a deprecated form of:
and is a separator between the new owner and group.From
info chown
:So in this context it's the same as
chown root: /swap
, which in turn meansSince root's login group is
root
, it's equivalent tochown root:root /swap
It is a shortened version of
as it will set the group to the same as the username.
Try creating a folder, then set the ownership to root that same way, then when completed, try setting the ownership to your username.
Hope this help!