Linux

Change file ownership and access permissions with one command

You can change the file permissions and ownership, the group and mode of a directory with a single command, using chown. For example, to make a directory called /dir accessible for everyone (RW), set the user joe as the [...]


What group are we in?

To quickly check what group our user is in, we can use the id command. To compress the result in a more easily read output, we can use id -Gn. For example: t4l@laptop:~$ id -Gn t4l adm dialout cdrom floppy audio dip vide[...]