Alex's Slip-box

These are my org-mode notes in sort of Zettelkasten style

Unix reference

:ID: 4ac31a1d-cdb1-4722-8215-3ed01414084b

This is a quick reference for some common Unix commands, tools and configuration.

# Permissions

See also this cheatsheet for more.

# View file permissions and ownership

ls -l
type user group other
- rwx rw- r--

Type could be d (ie, directory)

# Change permissions

chmod u+rw file

Adds (+), for user (u), read and write (rw) permissions. See chmod --help.

# Change ownership

chown username file
chown username:groupname file
chgrp groupname file

# Groups

# List groups

cmd description
groups list your groups
groups username list a user’s groups
getent group groupname list users in a group
cat /etc/group list all groups on the system

# Manage group membership

Use gpasswd

Search Results