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:13] – 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 15: Line 19:
 | Ctrl + → | Move forwards by a word | | Ctrl + → | Move forwards by a word |
 | Alt + Backspace | Delete a word (backwards) | | Alt + Backspace | Delete a word (backwards) |
-| Alt + m | Delete a word (forwards) |+| Ctrl + Delete | Delete a word (forwards) |
 | Ctrl + u | Delete from cursor to start of line | | Ctrl + u | Delete from cursor to start of line |
 | Ctrl + k | Delete from cursor to end of line | | Ctrl + k | Delete from cursor to end of line |
-| Ctrl + e, ctrl + u | Delete line | +| Ctrl + a, ctrl + k | Delete line | 
-| Ctrl + a, ctrl + k | Delete line (alternative) |+| Ctrl + u, ctrl + k | Delete line (alternative) |
 | Ctrl + p | Get previous command | | Ctrl + p | Get previous command |
 | Ctrl + n | Get next command | | Ctrl + n | Get next command |
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.1787282037.txt.gz · Last modified: 2026/08/21 03:13 by stephen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki