1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571
|
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<article lang="en-GB">
<!-- This file is the translatable part of the Debian Reference Card. -->
<title>Debian Reference Card</title>
<!-- subtitle not on printed card, but as 'pdfsubject' in the PDF
file -->
<subtitle>The 101 most important things when using Debian</subtitle>
<articleinfo>
<copyright>
<year>2004</year>
<year>2010</year>
<holder>W. Martin Borgert</holder>
</copyright>
<copyright>
<year>2016</year>
<year>2019</year>
<year>2023</year>
<holder>Holger Wansing</holder>
</copyright>
<copyright>
<year>2023</year>
<holder>Your Name ("Language")</holder>
</copyright>
<legalnotice>
<para>This document may be used under the terms of the GNU General
Public License version 3 or higher. The license text can be found at <ulink
url="https://www.gnu.org/copyleft/gpl.html"><filename>https://www.gnu.org/copyleft/gpl.html</filename></ulink>
and
<filename>/usr/share/common-licenses/GPL-3</filename>.</para>
</legalnotice>
<keywordset>
<keyword>APT</keyword>
<keyword>Debian</keyword>
<keyword>dpkg</keyword>
<keyword>reference card</keyword>
<keyword>basic commands</keyword>
<keyword role="version">Version</keyword>
<keyword role="madeby">Made by</keyword>
</keywordset>
</articleinfo>
<section id="help">
<title>Getting Help</title>
<glosslist>
<glossentry id="man">
<glossterm>man <replaceable>page</replaceable> or man
bash</glossterm>
<glossdef><para>Read help page for every command and many
configuration files. Also available online:
<filename>https://www.manpages.debian.org/</filename></para></glossdef>
</glossentry>
<glossentry id="command-help">
<glossterm><replaceable>command</replaceable>  
<optional><filename>--</filename>help,
<filename>-</filename>h</optional></glossterm>
<glossdef><para>Brief help for most
commands.</para></glossdef>
</glossentry>
<glossentry id="usr-share-doc">
<glossterm><filename>/usr/share/doc/<optional><replaceable>package-name</replaceable>/</optional></filename></glossterm>
<glossdef><para>Find all documentation here, optional file
<filename>README.Debian</filename> contains
specifics.</para></glossdef>
</glossentry>
<glossentry id="www-debian-org">
<glossterm><ulink url="https://www.debian.org/doc/">Web
documentation</ulink></glossterm>
<glossdef><para>Reference, manuals, FAQs, HOWTOs, etc. at
<filename>https://www.debian.org/doc/</filename></para></glossdef>
</glossentry>
<glossentry id="lists-debian-org">
<glossterm><ulink url="https://lists.debian.org/">Mailing
lists</ulink> at
<filename>https://lists.debian.org/</filename></glossterm>
<glossdef><para>The community is always helpful, search for
<filename>users</filename>. Or use other channels like IRC:
<filename>https://www.debian.org/support/</filename></para></glossdef>
</glossentry>
<glossentry id="wiki-debian-org">
<glossterm><ulink url="https://wiki.debian.org/">The Wiki</ulink> at
<filename>https://wiki.debian.org/</filename></glossterm>
<glossdef><para>Contains all kind of useful
information.</para></glossdef>
</glossentry>
</glosslist>
</section>
<section id="d-i">
<title>Installation</title>
<glosslist>
<glossentry id="installer">
<glossterm><ulink
url="https://www.debian.org/devel/debian-installer/">Installer</ulink></glossterm>
<glossdef><para>All information about it at
<filename>https://www.debian.org/devel/debian-installer/</filename></para></glossdef>
</glossentry>
<glossentry id="installer-image">
<glossterm><ulink
url="https://www.debian.org/distrib/">CD
images</ulink></glossterm>
<glossdef><para>Download from
<filename>https://www.debian.org/distrib/</filename></para></glossdef>
</glossentry>
<glossentry id="boot-expert">
<glossterm><filename>boot: expert</filename></glossterm>
<glossdef><para>E.g. to set up the network w/o DHCP or to adapt
bootloader installation.</para></glossdef>
</glossentry>
<glossentry id="live-installer">
<glossterm>Or use a <ulink
url="https://www.debian.org/CD/live/">Live image</ulink></glossterm>
<glossdef><para>Containing the user-friendly Calamares installer:
<filename>https://www.debian.org/CD/live/</filename></para></glossdef>
</glossentry>
</glosslist>
</section>
<section id="bugs">
<title>Bugs</title>
<glosslist>
<glossentry id="bugs-debian-org">
<glossterm><ulink url="https://bugs.debian.org/">Bug
Tracking</ulink> at
<filename>https://bugs.debian.org/</filename></glossterm>
<glossdef><para>All about existing and fixed
bugs.</para></glossdef>
</glossentry>
<glossentry id="bugs-debian-org-package">
<glossterm>Package specific</glossterm>
<glossdef><para>See
<filename>https://bugs.debian.org/<replaceable>package-name</replaceable>/</filename>,
use <filename>wnpp</filename> to ask for new
packages.</para></glossdef>
</glossentry>
<glossentry id="reportbug">
<glossterm>reportbug</glossterm>
<glossdef><para>Report a bug by e-mail.</para></glossdef>
</glossentry>
<glossentry id="reporting">
<glossterm><ulink
url="https://www.debian.org/Bugs/Reporting">Reporting</ulink></glossterm>
<glossdef><para>Instructions at
<filename>https://www.debian.org/Bugs/Reporting</filename></para></glossdef>
</glossentry>
</glosslist>
</section>
<section id="configuration">
<title>Configuration</title>
<glosslist>
<glossentry id="etc">
<glossterm><filename>/etc/</filename></glossterm>
<glossdef><para>All system configuration files are under
directory <filename>/etc/</filename>.</para></glossdef>
</glossentry>
<glossentry id="editor">
<glossterm>editor <replaceable>files</replaceable></glossterm>
<glossdef><para>Default text editor. May be
<command>nano</command>, <command>emacs</command>,
<command>vi</command>,
<command>joe</command>.</para></glossdef>
</glossentry>
<glossentry id="cups">
<glossterm><ulink url="http://localhost:631">CUPS</ulink> at
<filename>http://hostname:631</filename></glossterm>
<glossdef><para>Browser interface to printing
system.</para></glossdef>
</glossentry>
<glossentry id="dpkg-reconfigure">
<glossterm>dpkg-reconfigure
<replaceable>package-name</replaceable></glossterm>
<glossdef><para>Reconfigure a package, e.g. <replaceable>keyboard-configuration</replaceable>
(keyboard), <replaceable>locales</replaceable> (localization).</para></glossdef>
</glossentry>
<glossentry id="update-alternatives">
<glossterm>update-alternatives
<replaceable>options</replaceable></glossterm>
<glossdef><para>Manage command alternatives.</para></glossdef>
</glossentry>
<glossentry id="update-grub">
<glossterm>update-grub</glossterm>
<glossdef><para>After changing
<filename>/etc/default/grub</filename>.</para></glossdef>
</glossentry>
</glosslist>
</section>
<section id="daemons">
<title>Daemons and System</title>
<glosslist>
<glossentry id="restart">
<glossterm><filename>systemctl restart
<replaceable>name</replaceable>.service</filename></glossterm>
<glossdef><para>Restart a service, system
daemon.</para></glossdef>
</glossentry>
<glossentry id="stop">
<glossterm><filename>systemctl stop
<replaceable>name</replaceable>.service</filename></glossterm>
<glossdef><para>Stop a service, system
daemon.</para></glossdef>
</glossentry>
<glossentry id="start">
<glossterm><filename>systemctl start
<replaceable>name</replaceable>.service</filename></glossterm>
<glossdef><para>Start a service, system
daemon.</para></glossdef>
</glossentry>
<glossentry id="halt">
<glossterm>systemctl halt</glossterm>
<glossdef><para>Halts system.</para></glossdef>
</glossentry>
<glossentry id="reboot">
<glossterm>systemctl reboot</glossterm>
<glossdef><para>Reboots system.</para></glossdef>
</glossentry>
<glossentry id="poweroff">
<glossterm>systemctl poweroff</glossterm>
<glossdef><para>Shuts down system.</para></glossdef>
</glossentry>
<glossentry id="suspend">
<glossterm>systemctl suspend</glossterm>
<glossdef><para>Suspends system.</para></glossdef>
</glossentry>
<glossentry id="hibernate">
<glossterm>systemctl hibernate</glossterm>
<glossdef><para>Hibernates system.</para></glossdef>
</glossentry>
<glossentry id="var-log">
<glossterm><filename>/var/log/</filename></glossterm>
<glossdef><para>All log files are under this
directory.</para></glossdef>
</glossentry>
<glossentry id="etc-default">
<glossterm><filename>/etc/default/</filename></glossterm>
<glossdef><para>Default values for many daemons and
services.</para></glossdef>
</glossentry>
</glosslist>
</section>
<section id="shell-commands">
<title>Important Shell Commands</title>
<glosslist>
<glossentry id="cat">
<glossterm>cat <replaceable>files</replaceable></glossterm>
<glossdef><para>Print files to screen.</para></glossdef>
</glossentry>
<glossentry id="cd">
<glossterm>cd <replaceable>directory</replaceable></glossterm>
<glossdef><para>Change to directory.</para></glossdef>
</glossentry>
<glossentry id="cp">
<glossterm>cp <replaceable>files</replaceable>
<replaceable>dest</replaceable></glossterm>
<glossdef><para>Copy files and directories.</para></glossdef>
</glossentry>
<glossentry id="echo">
<glossterm>echo <replaceable>string</replaceable></glossterm>
<glossdef><para>Echo string to screen.</para></glossdef>
</glossentry>
<glossentry id="gzip">
<glossterm>gzip, bzip2, xz
<optional><filename>-d</filename></optional>
<replaceable>files</replaceable></glossterm>
<glossdef><para>Compress, uncompress files.</para></glossdef>
</glossentry>
<glossentry id="pager">
<glossterm>pager <replaceable>files</replaceable></glossterm>
<glossdef><para>Show contents of files.</para></glossdef>
</glossentry>
<glossentry id="ls">
<glossterm>ls
<optional><replaceable>files</replaceable></optional></glossterm>
<glossdef><para>List files.</para></glossdef>
</glossentry>
<glossentry id="mkdir">
<glossterm>mkdir
<replaceable>directory-names</replaceable></glossterm>
<glossdef><para>Create directories.</para></glossdef>
</glossentry>
<glossentry id="mv">
<glossterm>mv <replaceable>file1</replaceable>
<replaceable>file2</replaceable></glossterm>
<glossdef><para>Move, rename files.</para></glossdef>
</glossentry>
<glossentry id="rm">
<glossterm>rm <replaceable>files</replaceable></glossterm>
<glossdef><para>Remove files.</para></glossdef>
</glossentry>
<glossentry id="rmdir">
<glossterm>rmdir <replaceable>dirs</replaceable></glossterm>
<glossdef><para>Remove empty directories.</para></glossdef>
</glossentry>
<glossentry id="tar">
<glossterm>tar
<optional>c</optional><optional>x</optional><optional>t</optional><optional>z</optional><optional>j</optional><optional>J</optional>
-f <replaceable>file</replaceable>.tar
<optional><replaceable>files</replaceable></optional></glossterm>
<glossdef><para>Create (c), extract (x), list table of (t)
archive file, <emphasis>z</emphasis> for <filename>.gz</filename>,
<emphasis>j</emphasis> for
<filename>.bz2</filename>, <emphasis>J</emphasis> for
<filename>.xz</filename>.</para></glossdef>
</glossentry>
<glossentry id="find">
<glossterm>find <replaceable>directories
expressions</replaceable></glossterm>
<glossdef><para>Find files like <literal>-name
<replaceable>name</replaceable></literal> or <literal>-size
<replaceable>+1000</replaceable></literal>,
etc.</para></glossdef>
</glossentry>
<glossentry id="grep">
<glossterm>grep <replaceable>search-string</replaceable>
<replaceable>files</replaceable></glossterm>
<glossdef><para>Find search-string in files.</para></glossdef>
</glossentry>
<glossentry id="ln">
<glossterm>ln -s <replaceable>file</replaceable>
<replaceable>link</replaceable></glossterm>
<glossdef><para>Create a symbolic link to a
file.</para></glossdef>
</glossentry>
<glossentry id="ps">
<glossterm>ps
<optional><replaceable>options</replaceable></optional></glossterm>
<glossdef><para>Show current processes.</para></glossdef>
</glossentry>
<glossentry id="kill">
<glossterm>kill
<optional><replaceable>-9</replaceable></optional>
<replaceable>PID</replaceable></glossterm>
<glossdef><para>Send signal to process (e.g. terminate
it). Use <command>ps</command> for PID.</para></glossdef>
</glossentry>
<glossentry id="su">
<glossterm>su -
<optional><replaceable>username</replaceable></optional></glossterm>
<glossdef><para>Become another user,
e.g. <filename>root</filename>.</para></glossdef>
</glossentry>
<glossentry id="sudo">
<glossterm>sudo <replaceable>command</replaceable></glossterm>
<glossdef><para>Execute a command as <filename>root</filename>
as normal user, see
<filename>/etc/sudoers</filename>.</para></glossdef>
</glossentry>
<glossentry id="gt">
<glossterm><replaceable>command</replaceable>
<filename>></filename>
<replaceable>file</replaceable></glossterm>
<glossdef><para>Overwrite file with output of
command.</para></glossdef>
</glossentry>
<glossentry id="gtgt">
<glossterm><replaceable>command</replaceable>
<filename>>></filename>
<replaceable>file</replaceable></glossterm>
<glossdef><para>Append output of command to
file.</para></glossdef>
</glossentry>
<glossentry id="pipe">
<glossterm><replaceable>cmd1</replaceable>
<filename>|</filename>
<replaceable>cmd2</replaceable></glossterm>
<glossdef><para>Use output of command 1 as input of command
2.</para></glossdef>
</glossentry>
<glossentry id="lt">
<glossterm><replaceable>command</replaceable>
<filename><</filename>
<replaceable>file</replaceable></glossterm>
<glossdef><para>Use file as input for
command.</para></glossdef>
</glossentry>
</glosslist>
</section>
<section id="apt">
<title>APT</title>
<glosslist>
<glossentry id="apt-update">
<glossterm>apt update</glossterm>
<glossdef><para>Update packages listings from package
repositories as listed in
<filename>/etc/apt/sources.list</filename>. Required whenever
that file or the contents of the repositories
change.</para></glossdef>
</glossentry>
<glossentry id="apt-search">
<glossterm>apt search
<replaceable>search-string</replaceable></glossterm>
<glossdef><para>Search packages and descriptions for
<replaceable>search-string</replaceable>.</para></glossdef>
</glossentry>
<glossentry id="apt-list-a">
<glossterm>apt list -a
<replaceable>package-name</replaceable></glossterm>
<glossdef><para>Show versions and archive areas of available
packages.</para></glossdef>
</glossentry>
<glossentry id="apt-show-a">
<glossterm>apt show -a
<replaceable>package-name</replaceable></glossterm>
<glossdef><para>Show package information
incl. description.</para></glossdef>
</glossentry>
<glossentry id="apt-install">
<glossterm>apt install
<replaceable>package-names</replaceable></glossterm>
<glossdef><para>Install packages from repositories with all
dependencies.</para></glossdef>
</glossentry>
<glossentry id="apt-upgrade">
<glossterm>apt upgrade</glossterm>
<glossdef><para>Install newest versions of all packages
currently installed.</para></glossdef>
</glossentry>
<glossentry id="apt-full-upgrade">
<glossterm>apt full-upgrade</glossterm>
<glossdef><para>Like <command>apt upgrade</command>, but
with advanced conflict resolution.</para></glossdef>
</glossentry>
<glossentry id="apt-remove">
<glossterm>apt remove
<replaceable>package-names</replaceable></glossterm>
<glossdef><para>Remove packages.</para></glossdef>
</glossentry>
<glossentry id="apt-autoremove">
<glossterm>apt autoremove</glossterm>
<glossdef><para>Remove packages that no other packages depend
on.</para></glossdef>
</glossentry>
<glossentry id="apt-depends">
<glossterm>apt depends
<replaceable>package-name</replaceable></glossterm>
<glossdef><para>List all packages needed by the one
given.</para></glossdef>
</glossentry>
<glossentry id="apt-rdepends">
<glossterm>apt rdepends
<replaceable>package-name</replaceable></glossterm>
<glossdef><para>List all packages that need the one
given.</para></glossdef>
</glossentry>
<glossentry id="apt-file-update">
<glossterm>apt-file update</glossterm>
<glossdef><para>Update content listings from package
repositories, see <command>apt
update</command>.</para></glossdef>
</glossentry>
<glossentry id="apt-file-search">
<glossterm>apt-file search
<replaceable>file-name</replaceable></glossterm>
<glossdef><para>Search packages for file.</para></glossdef>
</glossentry>
<glossentry id="apt-file-list">
<glossterm>apt-file list
<replaceable>package-name</replaceable></glossterm>
<glossdef><para>List contents of a package.</para></glossdef>
</glossentry>
<glossentry id="aptitude">
<glossterm>aptitude</glossterm>
<glossdef><para>Console interface to APT, needs
<filename>aptitude</filename>.</para></glossdef>
</glossentry>
<glossentry id="synaptic">
<glossterm>synaptic</glossterm>
<glossdef><para>GUI interface to APT, needs
<filename>synaptic</filename>.</para></glossdef>
</glossentry>
</glosslist>
</section>
<section id="dpkg">
<title>Dpkg</title>
<glosslist>
<glossentry id="dpkg-list">
<glossterm>dpkg -l
<optional><replaceable>names</replaceable></optional></glossterm>
<glossdef><para>List packages.</para></glossdef>
</glossentry>
<glossentry id="dpkg-info">
<glossterm>dpkg -I
<replaceable>pkg</replaceable>.deb</glossterm>
<glossdef><para>Show package information.</para></glossdef>
</glossentry>
<glossentry id="dpkg-contents">
<glossterm>dpkg -c
<replaceable>pkg</replaceable>.deb</glossterm>
<glossdef><para>List contents of package
file.</para></glossdef>
</glossentry>
<glossentry id="dpkg-search">
<glossterm>dpkg -S
<replaceable>filename</replaceable></glossterm>
<glossdef><para>Show which package a file belongs
to.</para></glossdef>
</glossentry>
<glossentry id="dpkg-install">
<glossterm>dpkg -i
<replaceable>pkg</replaceable>.deb</glossterm>
<glossdef><para>Install package files.</para></glossdef>
</glossentry>
<glossentry id="dpkg-verify">
<glossterm>dpkg -V
<optional><replaceable>package-names</replaceable></optional></glossterm>
<glossdef><para>Audit check sums of installed packages.</para></glossdef>
</glossentry>
<glossentry id="dpkg-divert">
<glossterm>dpkg-divert <optional>options</optional>
<replaceable>file</replaceable></glossterm>
<glossdef><para>Override a package's version of a
file.</para></glossdef>
</glossentry>
<glossentry id="dpkg-compare-versions">
<glossterm>dpkg <filename>--compare- versions </filename>
<replaceable>v1</replaceable> gt
<replaceable>v2</replaceable></glossterm>
<glossdef><para>Compare version numbers; view results with
<command>echo $?</command>.</para></glossdef>
</glossentry>
<glossentry id="dpkg-query">
<glossterm>dpkg-query -W     
<filename>--showformat</filename>=<replaceable> format</replaceable></glossterm>
<glossdef><para>Query installed packages, format
e.g. <screen>'${Package}</screen> <screen>${Version}</screen>
<screen>${Installed-Size}\n'</screen></para></glossdef>
</glossentry>
<glossentry id="dpkg-get-selections">
<glossterm>dpkg <filename>--get-selections</filename> >
<replaceable>file</replaceable></glossterm>
<glossdef><para>Write package selections to
file.</para></glossdef>
</glossentry>
<glossentry id="dpkg-set-selections">
<glossterm>dpkg <filename>--set-selections</filename> <
<replaceable>file</replaceable></glossterm>
<glossdef><para>Set package selections from
file.</para></glossdef>
</glossentry>
</glosslist>
</section>
<section id="network">
<title>The Network</title>
<glosslist>
<glossentry id="etc-network-interfaces">
<glossterm><filename>/etc/network/interfaces</filename></glossterm>
<glossdef><para>Interface configuration (if not controlled
via network-manager).</para></glossdef>
</glossentry>
<glossentry id="ifupdown">
<glossterm>if <optional>up</optional><optional>down</optional>
<replaceable>device</replaceable></glossterm>
<glossdef><para>Start, stop network interfaces according to the
file above.</para></glossdef>
</glossentry>
<glossentry id="sbin-ip">
<glossterm>ip</glossterm>
<glossdef><para>Show and manipulate network interfaces and
routing, needs <filename>iproute2</filename>.</para></glossdef>
</glossentry>
<glossentry id="ssh">
<glossterm>ssh -X
<replaceable>user@host</replaceable></glossterm>
<glossdef><para>Login at another machine.</para></glossdef>
</glossentry>
<glossentry id="scp">
<glossterm>scp <replaceable>files</replaceable>
<replaceable>user@host:path</replaceable></glossterm>
<glossdef><para>Copy files to other machine (and vice
versa).</para></glossdef>
</glossentry>
</glosslist>
</section>
</article>
|