User Tools

Site Tools


linux_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux_cheat_sheet [2026/09/22 00:11] – [Bash Commands] stephenlinux_cheat_sheet [2026/09/22 03:16] (current) – stephen
Line 6: Line 6:
  
   * Use ''apt-get'' in scripts, ''apt'' manually in interactive terminals.   * Use ''apt-get'' in scripts, ''apt'' manually in interactive terminals.
 +
 +===== System Shortcuts =====
 +
 +| Ctrl + Alt + Esc | Restart Cinnamon desktop (X11 only) |
  
 ===== Bash Shortcuts ===== ===== Bash Shortcuts =====
Line 41: Line 45:
 | ''sudo chown -R stephen /DirectoryName'' | Change ownership recursively. | | ''sudo chown -R stephen /DirectoryName'' | Change ownership recursively. |
 | ''sudo chown -R stephen:stephen /DirectoryName'' | Change group recursively. | | ''sudo chown -R stephen:stephen /DirectoryName'' | Change group recursively. |
 +|  Groups  ||
 +| ''getent group'' or ''cat /etc/group'' | List groups and who is in them. |
 +| ''groups'' or ''id -nG'' | List groups //I// am in. |
 +| ''groups [user]'' | List groups //I// am in. |
 +| ''sudo usermod -aG [group] [user]'' | Add user to a group (restart terminal to take effect). |
 |  Disk Mounting  || |  Disk Mounting  ||
 | ''df -hP'' | List mount points. | | ''df -hP'' | List mount points. |
linux_cheat_sheet.1790035860.txt.gz · Last modified: 2026/09/22 00:11 by stephen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki