SlideShare a Scribd company logo
1 of 2
Download to read offline
Configuration
/etc/ All system configuration files
are under directory /etc/.
nano files Default text editor. If not
present, try emacs, vi, joe.
webmin at https://
hostname:10000
Browser interface to system
configuration, access is defined
in /etc/webmin/miniserv.
conf.
CUPS at http://
hostname:631
Browser interface to printing
system.
dpkg-reconfigure
package-name
Reconfigure a package, e.g.
console-common (keyboard),
locales (localisation).
update-alternatives
options
Manage command alternatives.
update-grub After installing a new kernel.
make-kpkg --initrd
--revision=2:my.1.0
--rootcmd fakeroot
--uc --us kernel_
image
Build a kernel packages from
sources, if a customised kernel
is really needed, needs kernel-
package.
m-a a-i module
kernel_image
Create and install third-party
modules (nvidia, ...), needs
module-assistant.
Daemons and System
/etc/init.d/file
restart
Restart a service, system
daemon.
/etc/init.d/file
stop
Stop a service, system daemon.
/etc/init.d/file
start
Start a service, system
daemon.
halt, reboot,
poweroff
Halts, reboots, shuts down
system.
/var/log/ All log files are under this
directory.
/etc/default/ Default values for many
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]files
Compress, uncompress files.
less files Show contents of files.
ls [files] List files.
mkdir
directory-names
Create directories.
mv file1 file2 Move, rename files.
rm files Remove files.
rmdir dirs Remove empty directories.
tar [c][x][t][z][j] -f
file .tar [files]
Create, eXtract, list Table of
archive file, z, j for .gz, .bz2.
find directories
expressions
Find files like -name name or -
size +1000, etc.
grep search-string
files
Find search-string in files.
kill [-9]number Send signal to process (e.g.
terminate it).
ln -s file link Create a symbolic link to a file.
ps [options] Show current processes.
su - [username] Become another user, e.g.
root.
sudo command Execute a command as root as
normal user, see /etc/sudoers
command >file Overwrite file with output of
command.
command >>file Append output of command to
file.
cmd1 |cmd2 Use output of command 1 as
input of command 2.
command <file Use file as input for command.
APT
apt-get update Update packages listings from
package repositories as listed
in /etc/apt/sources.list.
Run, if the contents of one of
repositories, the file changed,
or if unsure.
apt-cache search
search-string
Search packages and
descriptions for
search-string.
apt-cache policy
package-names
Show versions and priorities of
available packages.
apt-cache show
package-names
Show package information incl.
description.
apt-cache showpkg
package-names
Show package dependencies
(needed packages).
apt-get install
package-names
Install packages from
repositories with all
dependencies.
apt-get upgrade Install newest versions of all
packages currently installed.
apt-get dist-upgrade Like apt-get upgrade, but
with advanced conflict
resolution.
apt-get remove
package-names
Remove packages with all
needed packages.
apt-cache depends
package-names
List all packages needed by the
given.
apt-cache rdepends
package-names
List all packages that need the
given.
apt-file update Update content listings from
package repositories, see
apt-get update
apt-file search
file-name
Search packages for file.
apt-file list
package-name
List contents of a package.
auto-apt Installs packages automatically
if needed, can replace apt-file,
needs auto-apt.
aptitude Console interface to APT,
needs aptitude.
synaptic GUI interface to APT, needs
synaptic.
Dpkg
dpkg -l [names] List packages.
dpkg -I pkg.deb Show package information.
dpkg -c pkg.deb List contents of package file.
dpkg -S filename Show which package a file
belongs to.
dpkg -i pkg.deb Install package files.
deborphan Show packages, on that no
other packages depend
(orphans), needs deborphan.
debsums Audit check sums of installed
packages, needs debsums.
dpkg-divert
[options]file
Override a package’s version of
a file.
dpkg --compare-
versionsv1 gt v2
Compare version numbers,
check with echo $?.
dpkg-query -W --
showformat=format
Query installed packages,
format e.g. ’${Package}
${Version}
${Installed-Size}n’.
dpkg --get-
selections > file
Write package selections to file.
dpkg --set-
selections < file
Set package selections from file.
The Network
/sbin/ifconfig Configure network interfaces.
/etc/network/ Network configuration files,
most relevant are interfaces
and options.
ifup, ifdown
[device]
Start, stop network interfaces
according to files above.
ssh -X user@host Login at other machine.
scp files
user@host:path
Copy files to other machine
(and vice versa).
Web Server (Apache2)
/etc/apache2/ Configuration files.
/etc/apache2/
sites-enabled/
default
Defines default virtual host.
/etc/apache2/
mods-available/
Contains available modules
files. To enable a module,
create a symbolic link into /
etc/apache2/mods-enabled/.
Database (PostgreSQL)
createdb Create a new database.
dropdb Remove a database.
createuser Create a new database user.
dropuser Remove a database user.
/etc/postgresql/
pg_hba.conf
Client access configuration.
ALTER USER name
WITH PASSWORD
’password’;
Change the password in the
SQL console psql.
File and Print Server (Samba)
/etc/samba/smb.
conf
Main configuration file.
smbclient Browse SMB network
resources, e.g. download,
upload files.
Legal Notice
This document may be used under the terms the GNU Gen-
eral Public License version 2 or higher. Conditions for copying
and translations can be found at http://people.debian.org/
~debacle/refcard/, where you can always get the latest ver-
sion of the reference card.
Copyright c 2004 W. Borgert
Made by: http://people.debian.org/~debacle/refcard/
Debian GNU/Linux Reference Card
Version 3.1-0.2, 2005-09-03
http://www.debian.org/
Getting Help
man page or man
bash
Read online help for every
command and many
configuration files.
command [--help, -h] Brief help for most commands.
/usr/share/doc/
[package-name/]
Find all documentation here,
optional file README.Debian
contains specifics.
Web documentation Reference, manuals, FAQs,
HOWTOs, etc. at http://
www.debian.org/doc/
Mailing lists at
http://lists.
debian.org/
The community is always
helpful, search for users.
Installation
Installer All information about it at
http://www.debian.org/
devel/debian-installer/
CD images Download from http://www.
debian.org/distrib/
boot: expert E.g. to set up the network w/o
DHCP or using LILO instead
of GRUB.
boot: linux26 or
boot: expert26
Use Linux kernel 2.6 for
installation.
Bugs
Bug Tracking at
http://bugs.
debian.org/
All about existing and fixed
bugs.
Package specific See http://bugs.debian.
org/package-name/, use wnpp
to ask for new packages.
reportbug Report a bug by e-mail.
Reporting Instructions at http://www.
debian.org/Bugs/Reporting

More Related Content

What's hot

Hadoop single cluster installation
Hadoop single cluster installationHadoop single cluster installation
Hadoop single cluster installationMinh Tran
 
Introduction to linux day-3
Introduction to linux day-3Introduction to linux day-3
Introduction to linux day-3Gourav Varma
 
OpenGurukul : Database : PostgreSQL
OpenGurukul : Database : PostgreSQLOpenGurukul : Database : PostgreSQL
OpenGurukul : Database : PostgreSQLOpen Gurukul
 
Hadoop Cluster - Basic OS Setup Insights
Hadoop Cluster - Basic OS Setup InsightsHadoop Cluster - Basic OS Setup Insights
Hadoop Cluster - Basic OS Setup InsightsSruthi Kumar Annamnidu
 
Linux apache installation
Linux apache installationLinux apache installation
Linux apache installationDima Gomaa
 
Red Hat Certified Engineer (RHCE) EX294 Exam Questions
Red Hat Certified Engineer (RHCE) EX294 Exam QuestionsRed Hat Certified Engineer (RHCE) EX294 Exam Questions
Red Hat Certified Engineer (RHCE) EX294 Exam QuestionsStudy Material
 
An example Hadoop Install
An example Hadoop InstallAn example Hadoop Install
An example Hadoop InstallMike Frampton
 
Running hadoop on ubuntu linux
Running hadoop on ubuntu linuxRunning hadoop on ubuntu linux
Running hadoop on ubuntu linuxTRCK
 
My sql failover test using orchestrator
My sql failover test  using orchestratorMy sql failover test  using orchestrator
My sql failover test using orchestratorYoungHeon (Roy) Kim
 
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuHow To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuWirabumi Software
 
Hadoop installation
Hadoop installationHadoop installation
Hadoop installationAnkit Desai
 
L.A.M.P Installation Note --- CentOS 6.5
L.A.M.P Installation Note --- CentOS 6.5L.A.M.P Installation Note --- CentOS 6.5
L.A.M.P Installation Note --- CentOS 6.5William Lee
 
My sql with querys
My sql with querysMy sql with querys
My sql with querysNIRMAL FELIX
 
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testingGaruda Trainings
 
Installation of Subversion on Ubuntu,...
Installation of Subversion on Ubuntu,...Installation of Subversion on Ubuntu,...
Installation of Subversion on Ubuntu,...wensheng wei
 

What's hot (20)

Linux class 10 15 oct 2021-6
Linux class 10   15 oct 2021-6Linux class 10   15 oct 2021-6
Linux class 10 15 oct 2021-6
 
Hadoop single cluster installation
Hadoop single cluster installationHadoop single cluster installation
Hadoop single cluster installation
 
Linux class 9 15 oct 2021-5
Linux class 9   15 oct 2021-5Linux class 9   15 oct 2021-5
Linux class 9 15 oct 2021-5
 
Introduction to linux day-3
Introduction to linux day-3Introduction to linux day-3
Introduction to linux day-3
 
OpenGurukul : Database : PostgreSQL
OpenGurukul : Database : PostgreSQLOpenGurukul : Database : PostgreSQL
OpenGurukul : Database : PostgreSQL
 
Hadoop Cluster - Basic OS Setup Insights
Hadoop Cluster - Basic OS Setup InsightsHadoop Cluster - Basic OS Setup Insights
Hadoop Cluster - Basic OS Setup Insights
 
Linux apache installation
Linux apache installationLinux apache installation
Linux apache installation
 
Red Hat Certified Engineer (RHCE) EX294 Exam Questions
Red Hat Certified Engineer (RHCE) EX294 Exam QuestionsRed Hat Certified Engineer (RHCE) EX294 Exam Questions
Red Hat Certified Engineer (RHCE) EX294 Exam Questions
 
An example Hadoop Install
An example Hadoop InstallAn example Hadoop Install
An example Hadoop Install
 
Running hadoop on ubuntu linux
Running hadoop on ubuntu linuxRunning hadoop on ubuntu linux
Running hadoop on ubuntu linux
 
Puppet
PuppetPuppet
Puppet
 
Linux class 8 tar
Linux class 8   tar  Linux class 8   tar
Linux class 8 tar
 
My sql failover test using orchestrator
My sql failover test  using orchestratorMy sql failover test  using orchestrator
My sql failover test using orchestrator
 
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuHow To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
 
Hadoop installation
Hadoop installationHadoop installation
Hadoop installation
 
L.A.M.P Installation Note --- CentOS 6.5
L.A.M.P Installation Note --- CentOS 6.5L.A.M.P Installation Note --- CentOS 6.5
L.A.M.P Installation Note --- CentOS 6.5
 
My sql with querys
My sql with querysMy sql with querys
My sql with querys
 
Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
 
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testing
 
Installation of Subversion on Ubuntu,...
Installation of Subversion on Ubuntu,...Installation of Subversion on Ubuntu,...
Installation of Subversion on Ubuntu,...
 

Similar to Refcard en-a4

Linux Troubleshooting
Linux TroubleshootingLinux Troubleshooting
Linux TroubleshootingKeith Wright
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linuxVicent Selfa
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linuxnejadmand
 
Automatic systems installations and change management wit FAI - Talk for Netw...
Automatic systems installations and change management wit FAI - Talk for Netw...Automatic systems installations and change management wit FAI - Talk for Netw...
Automatic systems installations and change management wit FAI - Talk for Netw...Henning Sprang
 
Hadoop installation and Running KMeans Clustering with MapReduce Program on H...
Hadoop installation and Running KMeans Clustering with MapReduce Program on H...Hadoop installation and Running KMeans Clustering with MapReduce Program on H...
Hadoop installation and Running KMeans Clustering with MapReduce Program on H...Titus Damaiyanti
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Ata Rehman
 
Installaling Puppet Master and Agent
Installaling Puppet Master and AgentInstallaling Puppet Master and Agent
Installaling Puppet Master and AgentRanjit Avasarala
 
Fedora Atomic Workshop handout for Fudcon Pune 2015
Fedora Atomic Workshop handout for Fudcon Pune  2015Fedora Atomic Workshop handout for Fudcon Pune  2015
Fedora Atomic Workshop handout for Fudcon Pune 2015rranjithrajaram
 
One click deployment
One click deploymentOne click deployment
One click deploymentAlex Su
 
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package managementAcácio Oliveira
 
How to make debian package from scratch (linux)
How to make debian package from scratch (linux)How to make debian package from scratch (linux)
How to make debian package from scratch (linux)Thierry Gayet
 
Linux training
Linux trainingLinux training
Linux trainingartisriva
 
Performance all teh things
Performance all teh thingsPerformance all teh things
Performance all teh thingsMarcus Deglos
 

Similar to Refcard en-a4 (20)

Linux Troubleshooting
Linux TroubleshootingLinux Troubleshooting
Linux Troubleshooting
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
linux installation.pdf
linux installation.pdflinux installation.pdf
linux installation.pdf
 
Sahu
SahuSahu
Sahu
 
Linux filesystemhierarchy
Linux filesystemhierarchyLinux filesystemhierarchy
Linux filesystemhierarchy
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linux
 
Automatic systems installations and change management wit FAI - Talk for Netw...
Automatic systems installations and change management wit FAI - Talk for Netw...Automatic systems installations and change management wit FAI - Talk for Netw...
Automatic systems installations and change management wit FAI - Talk for Netw...
 
Linux
Linux Linux
Linux
 
Hadoop installation and Running KMeans Clustering with MapReduce Program on H...
Hadoop installation and Running KMeans Clustering with MapReduce Program on H...Hadoop installation and Running KMeans Clustering with MapReduce Program on H...
Hadoop installation and Running KMeans Clustering with MapReduce Program on H...
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
 
$ make install
$ make install$ make install
$ make install
 
Installaling Puppet Master and Agent
Installaling Puppet Master and AgentInstallaling Puppet Master and Agent
Installaling Puppet Master and Agent
 
Fedora Atomic Workshop handout for Fudcon Pune 2015
Fedora Atomic Workshop handout for Fudcon Pune  2015Fedora Atomic Workshop handout for Fudcon Pune  2015
Fedora Atomic Workshop handout for Fudcon Pune 2015
 
One click deployment
One click deploymentOne click deployment
One click deployment
 
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management
 
How to make debian package from scratch (linux)
How to make debian package from scratch (linux)How to make debian package from scratch (linux)
How to make debian package from scratch (linux)
 
Linux training
Linux trainingLinux training
Linux training
 
Performance all teh things
Performance all teh thingsPerformance all teh things
Performance all teh things
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Unix Administration 2
Unix Administration 2Unix Administration 2
Unix Administration 2
 

More from Arduino Aficionado (15)

Garagino doc
Garagino docGaragino doc
Garagino doc
 
Netfx4
Netfx4Netfx4
Netfx4
 
Ubunturef
UbunturefUbunturef
Ubunturef
 
Scala cheatsheet
Scala cheatsheetScala cheatsheet
Scala cheatsheet
 
Xm lquickref
Xm lquickrefXm lquickref
Xm lquickref
 
Html xhtml tag-sheet
Html xhtml tag-sheetHtml xhtml tag-sheet
Html xhtml tag-sheet
 
Unix command quickref
Unix command quickrefUnix command quickref
Unix command quickref
 
Ruby on rails_cheat_sheet
Ruby on rails_cheat_sheetRuby on rails_cheat_sheet
Ruby on rails_cheat_sheet
 
Pqrc 2.4-a4-latest
Pqrc 2.4-a4-latestPqrc 2.4-a4-latest
Pqrc 2.4-a4-latest
 
Nmap5.cheatsheet.eng.v1
Nmap5.cheatsheet.eng.v1Nmap5.cheatsheet.eng.v1
Nmap5.cheatsheet.eng.v1
 
Matlab quickref
Matlab quickrefMatlab quickref
Matlab quickref
 
Java quickref
Java quickrefJava quickref
Java quickref
 
Eclipse emacskeybindings 3_1
Eclipse emacskeybindings 3_1Eclipse emacskeybindings 3_1
Eclipse emacskeybindings 3_1
 
Cpp reference sheet
Cpp reference sheetCpp reference sheet
Cpp reference sheet
 
Core c sharp and .net quick reference
Core c sharp and .net quick referenceCore c sharp and .net quick reference
Core c sharp and .net quick reference
 

Recently uploaded

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 

Recently uploaded (20)

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 

Refcard en-a4

  • 1. Configuration /etc/ All system configuration files are under directory /etc/. nano files Default text editor. If not present, try emacs, vi, joe. webmin at https:// hostname:10000 Browser interface to system configuration, access is defined in /etc/webmin/miniserv. conf. CUPS at http:// hostname:631 Browser interface to printing system. dpkg-reconfigure package-name Reconfigure a package, e.g. console-common (keyboard), locales (localisation). update-alternatives options Manage command alternatives. update-grub After installing a new kernel. make-kpkg --initrd --revision=2:my.1.0 --rootcmd fakeroot --uc --us kernel_ image Build a kernel packages from sources, if a customised kernel is really needed, needs kernel- package. m-a a-i module kernel_image Create and install third-party modules (nvidia, ...), needs module-assistant. Daemons and System /etc/init.d/file restart Restart a service, system daemon. /etc/init.d/file stop Stop a service, system daemon. /etc/init.d/file start Start a service, system daemon. halt, reboot, poweroff Halts, reboots, shuts down system. /var/log/ All log files are under this directory. /etc/default/ Default values for many 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]files Compress, uncompress files. less files Show contents of files. ls [files] List files. mkdir directory-names Create directories. mv file1 file2 Move, rename files. rm files Remove files. rmdir dirs Remove empty directories. tar [c][x][t][z][j] -f file .tar [files] Create, eXtract, list Table of archive file, z, j for .gz, .bz2. find directories expressions Find files like -name name or - size +1000, etc. grep search-string files Find search-string in files. kill [-9]number Send signal to process (e.g. terminate it). ln -s file link Create a symbolic link to a file. ps [options] Show current processes. su - [username] Become another user, e.g. root. sudo command Execute a command as root as normal user, see /etc/sudoers command >file Overwrite file with output of command. command >>file Append output of command to file. cmd1 |cmd2 Use output of command 1 as input of command 2. command <file Use file as input for command. APT apt-get update Update packages listings from package repositories as listed in /etc/apt/sources.list. Run, if the contents of one of repositories, the file changed, or if unsure. apt-cache search search-string Search packages and descriptions for search-string. apt-cache policy package-names Show versions and priorities of available packages. apt-cache show package-names Show package information incl. description. apt-cache showpkg package-names Show package dependencies (needed packages). apt-get install package-names Install packages from repositories with all dependencies. apt-get upgrade Install newest versions of all packages currently installed. apt-get dist-upgrade Like apt-get upgrade, but with advanced conflict resolution. apt-get remove package-names Remove packages with all needed packages. apt-cache depends package-names List all packages needed by the given. apt-cache rdepends package-names List all packages that need the given. apt-file update Update content listings from package repositories, see apt-get update apt-file search file-name Search packages for file. apt-file list package-name List contents of a package. auto-apt Installs packages automatically if needed, can replace apt-file, needs auto-apt. aptitude Console interface to APT, needs aptitude. synaptic GUI interface to APT, needs synaptic.
  • 2. Dpkg dpkg -l [names] List packages. dpkg -I pkg.deb Show package information. dpkg -c pkg.deb List contents of package file. dpkg -S filename Show which package a file belongs to. dpkg -i pkg.deb Install package files. deborphan Show packages, on that no other packages depend (orphans), needs deborphan. debsums Audit check sums of installed packages, needs debsums. dpkg-divert [options]file Override a package’s version of a file. dpkg --compare- versionsv1 gt v2 Compare version numbers, check with echo $?. dpkg-query -W -- showformat=format Query installed packages, format e.g. ’${Package} ${Version} ${Installed-Size}n’. dpkg --get- selections > file Write package selections to file. dpkg --set- selections < file Set package selections from file. The Network /sbin/ifconfig Configure network interfaces. /etc/network/ Network configuration files, most relevant are interfaces and options. ifup, ifdown [device] Start, stop network interfaces according to files above. ssh -X user@host Login at other machine. scp files user@host:path Copy files to other machine (and vice versa). Web Server (Apache2) /etc/apache2/ Configuration files. /etc/apache2/ sites-enabled/ default Defines default virtual host. /etc/apache2/ mods-available/ Contains available modules files. To enable a module, create a symbolic link into / etc/apache2/mods-enabled/. Database (PostgreSQL) createdb Create a new database. dropdb Remove a database. createuser Create a new database user. dropuser Remove a database user. /etc/postgresql/ pg_hba.conf Client access configuration. ALTER USER name WITH PASSWORD ’password’; Change the password in the SQL console psql. File and Print Server (Samba) /etc/samba/smb. conf Main configuration file. smbclient Browse SMB network resources, e.g. download, upload files. Legal Notice This document may be used under the terms the GNU Gen- eral Public License version 2 or higher. Conditions for copying and translations can be found at http://people.debian.org/ ~debacle/refcard/, where you can always get the latest ver- sion of the reference card. Copyright c 2004 W. Borgert Made by: http://people.debian.org/~debacle/refcard/ Debian GNU/Linux Reference Card Version 3.1-0.2, 2005-09-03 http://www.debian.org/ Getting Help man page or man bash Read online help for every command and many configuration files. command [--help, -h] Brief help for most commands. /usr/share/doc/ [package-name/] Find all documentation here, optional file README.Debian contains specifics. Web documentation Reference, manuals, FAQs, HOWTOs, etc. at http:// www.debian.org/doc/ Mailing lists at http://lists. debian.org/ The community is always helpful, search for users. Installation Installer All information about it at http://www.debian.org/ devel/debian-installer/ CD images Download from http://www. debian.org/distrib/ boot: expert E.g. to set up the network w/o DHCP or using LILO instead of GRUB. boot: linux26 or boot: expert26 Use Linux kernel 2.6 for installation. Bugs Bug Tracking at http://bugs. debian.org/ All about existing and fixed bugs. Package specific See http://bugs.debian. org/package-name/, use wnpp to ask for new packages. reportbug Report a bug by e-mail. Reporting Instructions at http://www. debian.org/Bugs/Reporting