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:22] – [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 44: Line 48:
 | ''getent group'' or ''cat /etc/group'' | List groups and who is in them. | | ''getent group'' or ''cat /etc/group'' | List groups and who is in them. |
 | ''groups'' or ''id -nG'' | List groups //I// am in. | | ''groups'' or ''id -nG'' | List groups //I// am in. |
-| ''sudo usermod -aG group user'' | Add user to a group. |+| ''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.1790036568.txt.gz · Last modified: 2026/09/22 00:22 by stephen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki