Debian Reference Card
Debian Reference Card
Debian Reference Card
ip link set device [up] Start, stop network interfaces Mailing lists at The community is always helpful,
[down] according to the file above. https:// search for users.
lists.debian.org/
/sbin/ip Show and manipulate network
interfaces and routing, needs The Wiki at https:// Contains all kind of useful
iproute2. wiki.debian.org/ information.
ssh -X user@host Login at another machine. Installation
scp files Copy files to other machine (and Installer All information about it at
user@host:path vice versa). https://www.debian.org/devel/
debian-installer/
Legal Notice
CD images Download from https://
This document may be used under the terms of the GNU www.debian.org/distrib/
General Public License version 3 or higher. The license
text can be found at https://www.gnu.org/copyleft/gpl.html boot: expert E.g. to set up the network w/o
and /usr/share/common-licenses/GPL-3. DHCP or using LILO instead of
GRUB.
Copyright © 2004, 2010 W. Martin Borgert
Copyright © 2016, 2017 Holger Wansing Bugs
Bug Tracking at All about existing and fixed bugs.
https://
bugs.debian.org/
dpkg-reconfigure Reconfigure a package, e.g. rmdir dirs Remove empty directories. apt upgrade Install newest versions of all
package-name keyboard-configuration tar [c][x][t][z][j][J] -f Create (c), extract (x), list table packages currently installed.
(keyboard), locales file.tar [files] of (t) archive file, z for .gz, j
(localization). apt full-upgrade Like apt upgrade, but with
for .bz2, J for .xz.
update-alternatives Manage command alternatives. advanced conflict resolution.
options find directories Find files like -name name or - apt remove package- Remove packages.
update-grub After changing /etc/default/
expressions size +1000, etc. names
grub. grep search-string Find search-string in files. apt autoremove Remove packages that no other
Daemons and System files packages depend on.
systemctl restart Restart a service, system daemon. ln -s file link Create a symbolic link to a file. apt depends package- List all packages needed by the
name.service ps [options] Show current processes. name one given.
systemctl stop Stop a service, system daemon. kill [-9] PID Send signal to process (e.g. apt rdepends List all packages that need the
name.service terminate it). Use ps for PID. package-name one given.
systemctl start Start a service, system daemon. su - [username] Become another user, e.g. root. apt-file update Update content listings from
name.service package repositories, see apt
sudo command Execute a command as root as update.
systemctl halt Halts system. normal user, see /etc/sudoers.
systemctl reboot Reboots system. apt-file search file- Search packages for file.
command > file Overwrite file with output of name
systemctl poweroff Shuts down system. command.
apt-file list package- List contents of a package.
systemctl suspend Suspends system. command >> file Append output of command to name
file.
systemctl hibernate Hibernates system. aptitude Console interface to APT, needs
cmd1 | cmd2 Use output of command 1 as aptitude.
/var/log/ All log files are under this input of command 2.
directory.
synaptic GUI interface to APT, needs
command < file Use file as input for command. synaptic.
/etc/default/ Default values for many daemons
and services.
APT
Dpkg
Important Shell Commands apt update Update packages listings from
package repositories as listed in / dpkg -l [names] List packages.
cat files Print files to screen. etc/apt/sources.list. dpkg -I pkg.deb Show package information.
cd directory Change to directory. Required whenever that file or
the contents of the repositories dpkg -c pkg.deb List contents of package file.
cp files dest Copy files and directories. change. dpkg -S filename Show which package a file
echo string Echo string to screen. belongs to.
apt search search- Search packages and
gzip, bzip2, xz [-d] Compress, uncompress files. string descriptions for search-string. dpkg -i pkg.deb Install package files.
files