Linux Flashcards
(234 cards)
Keuze voor Linux als besturingssysteem (5)
1) rol
2) functie
3) levenscyclus
4) stabiliteit
5) kost
- rol: distributies beschikbaar voor verschillende systemen; commercieel voor servers & desktop, gespecialiseerd voor hergebruik van computers, embedded systemen, enz.
- functie: doel van gebruik of benodigde beveiliging bepalen distributie
- levenscyclus: grote en kleine updatecycli.
LTS (long term support): 5+ jaar, 13 jaar voor SUSE LTS - stabiliteit: stabiele & bèta-versies, ook releases in test
- kost: kosteloos, ondersteuning onder betaling
prompt sysadmin@localhost:~$ (3)
gebruikersnaam
systeemnaam
huidige directory
C: gebruikersnaam
whoami
C: systeemnaam
hostname
huidige directory
~
snelkoppeling: begin van command line
ctrl+A
snelkoppeling: einde van command line
ctrl+e
snelkoppeling: wis alles voor cursor in comando line
ctrl+u
snelkoppeling: wis terminal
ctrl+l (kleine L)
C: wis terminal
clear
teken voor 2 commando’s na elkaar uit te voeren
;
teken voor 2 commando’s voorwaardelijk: na succes
&&
teken voor 2 comamndo’s voorwaardelijk: na failure
||
C: toon het path van het commando
which command
whereis command kan ook, maar toont niet enkel executable files
type -a command bevat deze info ook, maar toont meer (vb alias)
C: info over soort commando
type command
C: toont waar commando opgeslaan is
type -a command
of whereis command
C: toon de historiek
history
C: toon de laatste 3 commando’s
history 3
C: voer het 5de laatste commando opnieuw uit
!-5
C: voer het laatste commando opnieuw uit
!!
C: voer het laatste commando ls opnieuw uit
!ls
snelkoppeling: zoek in history
+ 2e maal zoeken
ctrl+r
ctrl+r
C: hoe ken je ‘Mattijs’ toe aan variabel ‘naam’
naam=’Mattijs’
C: print variabel ‘naam’ (niet inhoud)
echo \naam