Skip to content

Instantly share code, notes, and snippets.

@fredjoseph
Last active April 16, 2021 15:06
Show Gist options
  • Select an option

  • Save fredjoseph/ccfe92da50abaa8745bbf50e6064185e to your computer and use it in GitHub Desktop.

Select an option

Save fredjoseph/ccfe92da50abaa8745bbf50e6064185e to your computer and use it in GitHub Desktop.
Debian shortcuts

Shortcuts

Debian Desktop Shortcuts

Shortcut Utility
Ctrl+Alt+Delete Use this shortcut to logout of Debian.
Alt+Tab/ Super+Tab Use this shortcut to switch between open programs.
Ctrl+Alt+Tab Use this shortcut to switch between system controls such as Windows, Top Bar, and Desktop.
Ctrl+Alt +Esc Use this shortcut to directly switch between system controls.
Super+L Use this shortcut to lock the screen.
Super+A Use this shortcut to view all applications.
Super+V Use this shortcut to view notifications, if any.
Super+S Use this shortcut to get an overview of open activities.
Alt+F1 Use this shortcut to get an overview of open windows.
Alt+F2 Use this shortcut to open the Run command dialog.
Alt+F4 Use this shortcut to close the current window.
Alt+F5 Use this shortcut to unmaximize the current window.
Alt+F7 Use this shortcut to select the current window for moving.
Alt+F8 Use this shortcut to resize the current window.
Alt+F10 Use this shortcut to minimize or maximize the current window.
Alt+Space Use this shortcut to view the window menu used to maximize, minimize, move, close, etc. the current window.
Super+Pageup Use this shortcut to move to the above workspace.
super+Pagedown Use this shortcut to move to the below workspace.
Super+Home Use this shortcut to move to the first workspace.
Super+End Use this shortcut to move to the last workspace.
Shift+Super+Home Use this shortcut to move the window to the first workspace.
Shift+Super+End Use this shortcut to move the window to the last workspace.
Shift+Super+Up/Shift+Super+Down Use this shortcut to move the window up/down.
Shift+Super+Left/Shift+Super+Right Use this shortcut to move the window left/right.

Debian Application Shortcuts

Shortcut Utility
Ctrl+0 Use this shortcut to open a new file.
Ctrl+S Use this shortcut to save the current file.
Ctrl+P Use this shortcut to print the current document.
Ctrl+W Use this shortcut to close the current file.
Ctrl+Q Use this shortcut to close the open application.
Ctrl+A Use this shortcut to select all items/text.
Ctrl+C Use this shortcut to copy the selected items/text to the clipboard.
Ctrl+V Use this shortcut to paste the copied items/text.

Debian Screen Printing Shortcuts

Shortcut Utility
PrintScreen Use this shortcut to take a screenshot of your screen and save it to the Pictures folder.
Alt+PrintScreen Use this shortcut to take a screenshot of the current window and save it to the Pictures folder.
Shift+PrintScreen Use this shortcut to select an area which will be saved as a screenshot in the Pictures folder.
Ctrl+Alt+PrintScreen Use this shortcut to copy a screenshot of a window to the clipboard.
Shift+Ctrl+PrintScreen Use this shortcut to copy a screenshot of a selected area to the clipboard.
Ctrl+PrintScreen Use this shortcut to copy a screenshot of your entire screen to the clipboard.

Debian Terminal Shortcuts

Shortcut Utility
Ctrl+A Use this shortcut to move the cursor to the beginning of the line.
Ctrl+E Use this shortcut to move the cursor to the end of the line.
Ctrl+C Use this shortcut to kill the current process.
Ctrl+R Use this shortcut to search the history based on the entered keywords.
Ctrl+U Use this shortcut to delete the current line.
Ctrl+K Use this shortcut to delete the text at the right side of the cursor.
Ctrl+W Use this shortcut to delete the text before the cursor.
Ctrl+L Use this shortcut to clear the output of a terminal command(s).
Alt+F Use this shortcut to move the cursor forward by one word.
Alt+B Use this shortcut to move the cursor back by one word.
[letter]+Tab+Tab Enter a letter and then tab twice to list all the commands beginning with that letter.
Ctrl+N Use this shortcut to create a new file in the currently open application.

Add sid (unstable) repository

  1. Add in /etc/apt/sources.list :
deb http://deb.debian.org/debian sid main contrib non-free
deb-src http://deb.debian.org/debian sid main contrib non-free
  1. Create a new file named sid in /etc/apt/preferences.d/ with the following content
Package: *
Pin: release n=sid
Pin-Priority: 99
  1. Update the cache sudo apt update
  2. Install a package from sid : sudo apt install -t sid <packageName>

Repository priorities

  • P ≥ 1000 : the package will be installed even if APT is forced to install an older version than the current one. This is not without risk.
  • 990 ≤ P < 1000 : the package will be installed unless a newer version is already installed.
  • 500 ≤ P < 990 : the package will only be installed if there is no newer version installed or available in the target distribution.
  • 100 ≤ P < 500 : the package will only be installed if there is no newer version, installed or available in another branch.
  • 0 < P < 100 : the package will only be installed if no other version of the package is installed or if explicit installation from this repository is requested.
  • P < 0 : the package will never be installed.

Package Manager

dpkg

This package manager doesn't resolve dependencies. The installation of a package will fail if one of its dependencies is not already installed.

  • Install package dpkg -i <package1> <package2>
  • Remove package (keep configuration files) dpkg -r <package1> <package2>
  • Purge package (delete configuration files) dpkg -P <package1> <package2>
  • Show package info dpkg -I <package>
  • List all installed packages dpkg --get-selections
  • List all package's files dpkg -L <package>
  • Search for the package to which a file belongs dpkg-query -S /usr/bin/7z
  • Reconfigure package (restore corrupted configuration files to their initial state) dpkg-reconfigure <package>

apt

This package manager manages sub-dependencies.

In the following commands apt can be replaced by apt-get

  • Update the index of packages apt update
  • Install package apt install <package1> <package2>
  • Remove package (keep configuration files) apt remove <package1>
  • Purge package (delete configuration files) apt purge <package1> or apt remove --purge <package1>
  • Fix broken dependencies apt install -f <package1>
  • Update/Upgrade all packages apt upgrade
  • Clean local cache apt clean (delete the files in /var/cache/apt/archives and in /var/cache/apt/archives/partial/)

In the following commands apt can be replaced by apt-cache

  • Search package apt search <word>
  • Show package info apt show <package>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment