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/08/21 03:22] – [Bash Shortcuts] 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 35: Line 39:
 | ''sudo apt install smartmontools'' \\ ''sudo smartctl -a /dev/sda'' | Check disk SMART status. | | ''sudo apt install smartmontools'' \\ ''sudo smartctl -a /dev/sda'' | Check disk SMART status. |
 | ''rm -r [directory_name]'' | Delete a directory and everything in it. | | ''rm -r [directory_name]'' | Delete a directory and everything in it. |
 +| ''ln -s [target_file] [link_name]'' | Make a symbolic link. |
 +|  File System - Permissions  ||
 | ''sudo chmod +x /usr/local/bin/sign-kernel'' | Make a file executable. | | ''sudo chmod +x /usr/local/bin/sign-kernel'' | Make a file executable. |
 | ''sudo chmod a+rwx /DirectoryName'' | Give everyone access. | | ''sudo chmod a+rwx /DirectoryName'' | Give everyone access. |
-| ''ln -s [target_file] [link_name]'' | Make a symbolic link. |+| ''sudo chown -R stephen /DirectoryName'' | Change ownership 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.1787282532.txt.gz · Last modified: 2026/08/21 03:22 by stephen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki