Skip to content
Snippets Groups Projects
Commit 5271f71f authored by nilsl's avatar nilsl
Browse files

add console toolkit sources

parent 8b289da4
No related branches found
No related tags found
No related merge requests found
Showing
with 1142 additions and 0 deletions
# The Console Toolkit
This repository contains slides and exercise material for the Linux console course held in autumn semester 2018.
# Course Description
Now that you have your Linux system up and running, it's time to make the best
out of it. Learn how to utilize the console and work towards mastering it in
this two-part course. We will start with the basics, and present you some
useful terminal applications designed to simplify your workflow. Furthermore,
you may directly solidify the abilities you learn by solving short exercises.
This way, you will feel comfortable with using the console in no time!
# Course Contents
The following is just a brainstormy list based on content of past courses that TheAlternative held. This course aims to cover most of this list. The list only serves as a guideline, the speaker can of course decide to go further in-depth (e.g. with more live demos) or leave out certain topics.
- why console
- course goals
- opening console
- commands & arguments
- arguments with spaces
- options
- manual
- cmd history (arrows, search)
- globs, wildcards
- ctrl-c
- file system navigation
- cd
- pwd
- .. (the directory location)
- tab completion
- ls
- fs layout (man hier)
- text editing
- less
- cat
- cp
- mv rm
- mkdir, rmdir
- search path
- users: sudo, su
- software installation
- creating boot sticks (dd, sync)
- disk space
- scripting
- ssh
r51.ebef4b9
\ No newline at end of file
TEX=latexmk
TEXOPTS=-output-directory=build \
-pdf \
-latexoption=-interaction=nonstopmode \
-latexoption=-file-line-error
# Set PREVIEW=1 to enable preview. Make sure an appropriate viewer is
# configured in $HOME/.latexmkrc.
# Example usage: make PREVIEW=1 opendata
ifdef PREVIEW
PREVIEWOPTS=-pvc
endif
defaul: exercises
# To include the current git revision in the header, write it to 'GIT_TAG'
# file, which the LaTeX source can include.
gitrev:
@printf "r%s.%s" "$$(git rev-list --count HEAD)" "$$(git rev-parse --short HEAD)" > GIT_TAG
# Create build directory if it doesnt exist
builddir:
@[ -d build ] || mkdir build
# All documents need to be compiled twice.
# This is because some necessary information is only available after
# the first compiler run, like \pageref{LastPage}.
exercises: exercises.tex gitrev builddir
@$(TEX) $(TEXOPTS) $(PREVIEWOPTS) $<
mv build/exercises.pdf .
clean:
@rm -rf build/*
% vim: set ft=tex:
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{TheAlternativeCourse}
% packages
\LoadClass[11pt]{scrartcl} % Base class: KOMA script article
\RequirePackage[utf8]{inputenc} % Support for german 'umlaut' (ä, ö, ü)
\RequirePackage{lastpage} % \pageref{LastPage}
\RequirePackage{scrlayer-scrpage} % KOMA Script header/footer package
\RequirePackage{graphicx} % \includegraphics{...}
\RequirePackage[showseconds=false,showzone=false]{datetime2}
\RequirePackage[table]{xcolor}
\RequirePackage[most]{tcolorbox}
\RequirePackage{hyperref}
% helvetica font
% \RequirePackage[scaled]{helvet}
% \RequirePackage[T1]{fontenc}
% \renewcommand\familydefault{\sfdefault}
% header / footer
\KOMAoptions{headsepline,headheight=27.5pt}
\setkomafont{pagehead}{\normalfont\normalcolor} % non-italic header font
\setkomafont{pagefoot}{\normalfont\normalcolor} % non-italic footer font
\newcommand{\builddate}{\footnotesize Revision: \input{GIT_TAG} \\ Build: \DTMNow}
\newcommand{\thealtlogo}{\includegraphics[width=4.5cm]{assets/logo.png}}
\lohead[\thealtlogo]{\thealtlogo}
\rohead[\builddate]{\builddate}
\cofoot[\footnotesize \thepage~/~\pageref{LastPage}]{\thepage~/~\pageref{LastPage}}
\recalctypearea%
\setlength{\voffset}{-1.2cm} % space before header
\setlength{\textheight}{1.15\textheight} % height of text
\definecolor{ldorange}{HTML}{F18A20}
\definecolor{ldblue}{HTML}{254471}
\definecolor{grey1}{HTML}{aaaaaa}
\definecolor{grey2}{HTML}{efefef}
\definecolor{lightblue}{HTML}{d9edfc}
\definecolor{exclamred}{HTML}{db1515}
\colorlet{lightyellow}{yellow!6!white}
\colorlet{darkeryellow}{red!15!yellow!40!white}
\newtcolorbox[auto counter, number within=section]{exercisebox}[2][]{%
colback=lightyellow,
fuzzy shadow={1mm}{-1mm}{0mm}{0.1mm}{black!50!white},
colframe=ldorange,
coltitle=black,
enhanced,
fonttitle=\bfseries,
title=Task~\thetcbcounter: #2,#1}
\newtcolorbox{cmdbox}{%
colback=grey2,
fuzzy shadow={1mm}{-1mm}{0mm}{0.1mm}{black!50!white},
enhanced,
colframe=grey1,
coltitle=black,
enhanced}
\newtcolorbox{tcbhintbox}{%
enhanced,
skin=bicolor,
segmentation at break=true,
boxrule=0.8pt,
left=3.5mm,
top=0.5mm,
bottom=0.5mm,
arc=1pt,
boxsep=2pt,
lefthand ratio=0.06,
sidebyside,
colframe=ldorange,
coltext=black,
colback=darkeryellow,
colbacklower=lightyellow,
}
\newcommand{\hintbox}[1]{%
\begin{tcbhintbox}
\includegraphics[width=8mm]{img/light_bulb.pdf}%
\tcblower%
#1
\end{tcbhintbox}}
File added
source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
console_toolkit/sourcefiles/exercises/assets/logo.png

130 B

This diff is collapsed.
YOU SHOULD NOT SEE THIS
This is
the correct
output!
Lorizzle i saw beyonces tizzles and my pizzle went crizzle dolizzle sit
amizzle, consectetuer adipiscing elit. Nullizzle dizzle velizzle, boom
shackalack dang, suscipit mofo, gravida fo shizzle, shit. Pellentesque fo
shizzle my nizzle tortor. Sizzle erizzle. You son of a bizzle pimpin' da bomb
dapibizzle turpis tempizzle shut the shizzle up. Maurizzle pellentesque nibh et
pimpin'. Mofo izzle check it out. Pellentesque eleifend rhoncizzle dang. In hac
habitasse go to hizzle dictumst. Yo dapibizzle. Funky fresh tellizzle urna,
pretizzle fo, mattis ac, eleifend vitae, nunc. Shut the shizzle up suscipit.
Check it out uhuh ... yih! mah nizzle sizzle purus.
Nunc tellus lorem, ass izzle, dizzle funky fresh, vehicula daahng dawg, its fo
rizzle. Etizzle check it out leo a sem hendrerit mattizzle. Shizzle my nizzle
crocodizzle interdizzle magna gangsta eros commodo dang. Etizzle my shizz
fermentum sizzle. Black odio. Maecenizzle quizzle things ac dolizzle iaculis
auctizzle. Bizzle sagittizzle ma nizzle urna. Bling bling sollicitudin massa fo
shizzle my nizzle purizzle. Morbi that's the shizzle stuff sit amet tellizzle.
Nizzle bow wow wow boom shackalack shiznit arcu. Cum socizzle yippiyo
penatibizzle et ma nizzle dis parturient stuff, nascetizzle uhuh ... yih!
mizzle.
Tellivizzle ma nizzle, pizzle izzle blandit black, sizzle quizzle tempus
dizzle, ma nizzle mollizzle boofron justo check it out est. Maecenas placerat,
libero elementizzle euismod fermentizzle, ipsizzle mauris own yo' felizzle,
sizzle vehicula nisl fo shizzle sizzle maurizzle. Fo shizzle nulla check out
this, we gonna chung quis, malesuada volutpat, pulvinar izzle, check it out.
Vivamus urna. Break yo neck, yall placerizzle, nulla quis mammasay mammasa
mamma oo sa black, felis dope facilisizzle da bomb, shiznit bibendizzle fo
shizzle gizzle you son of a bizzle for sure. Fo shizzle lectizzle. Nam black
shiz bow wow wow sem ornare crunk. Integizzle cursizzle, turpizzle vel
auctizzle fizzle, pede break it down semper gizzle, ass fizzle laorizzle mi
felizzle izzle massa. Doggy bizzle my shizz. In hizzle habitasse yippiyo
info@thealternative.ch dictumst. Maecenas tortizzle sem, faucibizzle gizzle,
gangster gangsta, congue ac, quizzle. Bizzle hizzle things, yo vel, daahng dawg
da bomb, fizzle that's the shizzle, check it out. Duis izzle bizzle izzle quam
pulvinizzle my shizz. Fo shizzle stuff dolizzle daahng dawg amet, own yo'
adipiscing check out this.
Ghetto aliquam away izzle mi. Bizzle socizzle natoque penatibus gangster my
shizz dawg parturient montes, nascetizzle ridiculizzle mus. Ut purizzle get
down get down, molestie for sure, convallis black, sollicitudin tellivizzle,
dizzle. Rizzle fo shizzle urna commodo fizzle. Donec sagittis. Crunk own yo'
orci, fringilla gangster, yippiyo a, condimentum at, owned. Away imperdizzle,
nulla sure amizzle commodo gravida, dui lectizzle ornare enim, shizznit
hendrerit yo est dizzle velizzle. Pellentesque quizzle odio. Nizzle ghetto
dolizzle gizzle metizzle. Dang facilisi.
Nulla eu ligula. Aliquam porta commodo tellus. Aenean viverra, sapien funky
fresh cool bling bling, sizzle urna hendrerizzle we gonna chung, nizzle shizzle
my nizzle crocodizzle fo sapien at nunc. Donizzle own yo' dolizzle. Mah nizzle
quis sheezy. Sed ass faucibus fo shizzle my nizzle. Integizzle sizzle sem, own
yo' izzle, volutpizzle egizzle, auctor egizzle, nunc. Sed pharetra. Nunc
sheezy. Curabitizzle own yo' hizzle leo nec ante blandizzle i saw beyonces
tizzles and my pizzle went crizzle. Quisque brizzle tellizzle sit amizzle dawg.
Aenizzle tempus dignissizzle shut the shizzle up.
Vivamizzle tellivizzle lacizzle crazy sem. Ma nizzle izzle dawg ac dawg dapibus
interdum. Etizzle auctor pharetra boom shackalack. Aliquam crazy feugiat
shizzle my nizzle crocodizzle. Aliquizzle fo shizzle my nizzle ass. In sizzle
gangsta nisl. Fo shizzle my nizzle elementizzle away izzle phat. Own yo' a
break it down. Boom shackalack lorizzle doggy, molestie dapibizzle, mollizzle
boom shackalack, molestie owned, mi. Yippiyo izzle felis izzle shizzle my
nizzle crocodizzle crackalackin mah nizzle. Integer phat erat. Yo shiz. Morbi
nisi tortor, break it down break yo neck, yall, pharetra fo, funky fresh the
bizzle, things. Cool dapibus yippiyo funky fresh. Mauris nisl shizzlin dizzle,
aliquizzle quizzle, vehicula izzle, euismod its fo rizzle, augue. Mah nizzle
leo. Bizzle ut sapien in erat tellivizzle mattizzle. Nizzle check out this
break yo neck, yall, facilisis we gonna chung, daahng dawg eu, adipiscing for
sure, that's the shizzle.
console_toolkit/sourcefiles/exercises/exercise_files/pictures/.secret_dir/cat_hidden.jpg

131 B

console_toolkit/sourcefiles/exercises/exercise_files/pictures/cat1.jpg

131 B

console_toolkit/sourcefiles/exercises/exercise_files/pictures/cat2.jpg

130 B

console_toolkit/sourcefiles/exercises/exercise_files/pictures/cat3.jpg

131 B

console_toolkit/sourcefiles/exercises/exercise_files/pictures/dog1.jpg

130 B

cat1.jpg: https://commons.wikimedia.org/wiki/File:Gatos_cats_7_cropped.jpg
cat2.jpg: https://commons.wikimedia.org/wiki/File:Gillie_hunting_(2292639848).jpg
cat3.jpg: https://commons.wikimedia.org/wiki/File:Britishblue.jpg
dog1.jpg: https://commons.wikimedia.org/wiki/File:Afra_011.jpg
hidden_cat.jpg: https://commons.wikimedia.org/wiki/File:Cat_Briciola_with_pretty_and_different_colour_of_eyes.jpg
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment