Debian Reference Card Version 5.0.12008-08-01

  • Uploaded by: Open Software Network
  • 0
  • 0
  • December 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Debian Reference Card Version 5.0.12008-08-01 as PDF for free.

More details

  • Words: 862
  • Pages: 2
dpkg-query -W --showformat=format dpkg --get-selections > file dpkg --set-selections < file

/etc/network/ interfaces ifup, ifdown [device] /sbin/ip ssh -X user@host scp files user@host:path

Dpkg Query installed packages, format e.g. '${Package} ${Version} ${Installed-Size}\n'.

Debian GNU/Linux Reference Card Version 5.0.1 2008-08-01 http://www.debian.org/

Write package selections to file.

Getting Help Read online help for every man page or man command and many bash configuration files. command [--help, Brief help for most -h] commands. Find all documentation /usr/share/doc/ here, optional file package-name/ README.Debian contains specifics. Reference, manuals, FAQs, Web HOWTOs, etc. at documentation http://www.debian.org/doc/ Mailing lists at The community is always http://lists.debihelpful, search for users. an.org/ The Wiki at http:Contains all kind of useful //wiki.debian.org/ information.

Set package selections from file.

The Network Network interface configuration. Start, stop network interfaces according to files above. Show and manipulate network interfaces and routing, needs iproute. Login at other machine. Copy files to other machine (and vice versa).

Web Server (Apache2) /etc/apache2/ Configuration files. Contains virtual hosts. To /etc/apache2/ enable a virtual host, use sites-available/ a2ensite. Contains available modules /etc/apache2/ files. To enable a module, mods-available/ use a2enmod.

Installer CD images boot: expert

Installation All information about it at http://www.debian.org/devel/debian-installer/ Download from http://www.debian.org/distrib/ E.g. to set up the network w/o DHCP or using LILO instead of GRUB.

Bugs Bug Tracking at http://bugs.debian.org/ Legal Notice

This document may be used under the terms the GNU General Public License version 3 or higher. Conditions for copying and translations can be found at http://xinocat.com/refcard/, where you can always get the latest version of the reference card. Copyright © 2004, 2008 W. Martin Borgert Made by: http://xinocat.com/refcard/

Package specific reportbug Reporting

All about existing and fixed bugs. See http://bugs.debian.org/package-name/, use wnpp to ask for new packages. Report a bug by e-mail. Instructions at http://www.debian.org/Bugs/Reporting

Configuration All system configuration /etc/ files are under directory /etc/. Default text editor. May be editor files nano, emacs, vi, joe. CUPS at http://hBrowser interface to ostname:631 printing system. Reconfigure a package, e.g. dpkg-reconfigure console-common package-name (keyboard), locales (localisation). updateManage command alternatives alternatives. options After changing update-grub /boot/grub/menu.lst. make-kpkg Build a kernel packages --initrd -from sources, if a -revision=2:my.1.0 customised kernel is really --rootcmd needed, needs fakeroot --uc --us kernel-package. kernel_image Create and install m-a a-i module third-party modules (gspca, kernel_image ...), needs module-assistant.

Daemons and System /etc/init.d/file Restart a service, system restart daemon. /etc/init.d/file Stop a service, system stop daemon. /etc/init.d/file Start a service, system start daemon. halt, reboot, Halts, reboots, shuts down poweroff system. All log files are under this /var/log/ directory. Default values for many /etc/default/ daemons and services.

Important Shell Commands cat files Print files to screen. cd directory Change to directory. cp files dest Copy files and directories. echo string Echo string to screen. gzip, bzip2 [-d] Compress, uncompress files. files pager files Show contents of files.

Important Shell Commands ls [files] List files. mkdir Create directories. directory-names mv file1 file2 Move, rename files. rm files Remove files. rmdir dirs Remove empty directories. tar [c][x][t][z][j] -f Create, eXtract, list Table of file.tar [files] archive file, z, j for .gz, .bz2. find directories Find files like -name name or expressions -size +1000, etc. grep search-string Find search-string in files. files Send signal to process (e.g. kill [-9] number terminate it). Create a symbolic link to a ln -s file link file. ps [options] Show current processes. Become another user, e.g. su - [username] root. Execute a command as root sudo command as normal user, see /etc/sudoers Overwrite file with output of command > file command. Append output of command command >> file to file. Use output of command 1 as cmd1 | cmd2 input of command 2. Use file as input for command < file command.

apt-get update

apt-cache search search-string apt-cache policy package-names apt-cache show package-names apt-cache showpkg package-names

APT Update packages listings from package repositories as listed in /etc/apt/sources.list. Required whenever that file or the contents of the repositories change. Search packages and descriptions for search-string. Show versions and priorities of available packages. Show package information incl. description. Show package dependencies (needed packages).

apt-get install package-names apt-get upgrade apt-get dist-upgrade apt-get remove package-names apt-get autoremove apt-cache depends package-names apt-cache rdepends package-names apt-file update apt-file search file-name apt-file list package-name auto-apt

aptitude synaptic

dpkg -l [names] dpkg -I pkg.deb dpkg -c pkg.deb dpkg -S filename dpkg -i pkg.deb debsums dpkg-divert [options] file dpkg --compare-versions v1 gt v2

APT Install packages from repositories with all dependencies. Install newest versions of all packages currently installed. Like apt-get upgrade, but with advanced conflict resolution. Remove packages with all needed packages. Remove packages that no other packages depend on. List all packages needed by the one given. List all packages that need the one given. Update content listings from package repositories, see apt-get update Search packages for file. List contents of a package. Installs packages automatically if needed, can replace apt-file, needs auto-apt. Console interface to APT, needs aptitude. GUI interface to APT, needs synaptic.

Dpkg List packages. Show package information. List contents of package file. Show which package a file belongs to. Install package files. Audit check sums of installed packages, needs debsums. Override a package's version of a file. Compare version numbers, check with echo $?.

Related Documents

Debian
November 2019 29
Vi Reference Card (hp)
November 2019 14
Zsh Reference Card
November 2019 12
Opengl Reference Card
May 2020 12
Emacs Reference Card
July 2020 8

More Documents from ""