week 4 commando's Flashcards

(34 cards)

1
Q

date

A

toont dag, maand, datum, tijd, tijdzone & jaar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

pwd

A

toont in welke directory/path je nu zit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

hostname

A

toont hoe je computer noemt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ls

A

laat alle directies en files zien in de directory waar je zit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ls - a

A

laat alle directies en files zien in de directory waarin je zit, ook de hidden ones

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

cat

A

concateneerd(linked of chained dingen samen) de content van een file en laat het zien op het scherm (dus output tekst van wat er in het bestand staat)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

tar

A

zelfde principe als ZIP files. het laat je files compressen of extracten

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

uname

A

vertelt je welke OS je gebruikt (Linux dus)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

–help

A

vergelijkbaar met de man page, geeft je extra opties & hoe een commando te gebruiken

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

id

A

print echte en effectieve user & group id’s (dus ook wheel)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

who

A

laat zien wie er ingelogd is

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

type

A

laat je (in de meeste gevallen) zien in welk path dit commando terug te vinden is (e.g.: type man)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

locate

A

vind het path van bestanden door te zoeken op naam

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

history

A

toont de commando’s die je hebt uitgevoerd in je huidige sessie

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

!!

A

voer het laatste commando nog eens uit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

!hist

A

voer het laatste commando dat begon met “hist” uit

17
Q

!?hist?

A

voer het laatste commando uit dat “hist” bevatte

18
Q

grep

A

print lines dat een bepaalde pattern matched (e.g: grep –color “woord” [bestandsnaam/path])

19
Q

CTRL+c

A

stopt het huidige commando

20
Q

$ voor een woord

A

dit betekent dat het als variabele beschouwd wordt

21
Q

set

A

lijst van alle variabelen

22
Q

env

A

lijst van alle omgevingsvariabelen

23
Q

alias

A

zo kan je een alis maken (e.g: alias c=clear)

24
Q

unalias

A

alias ongedaan maken

25
su
wissel van gebruiker
26
exit
sluit het venster => terug naar vorige gebruiker
27
sudo -i
ga naar de root van de gebruiker
28
PS1
tijdelijk prompt wijzigen
29
nano $HOME/.bashrc
ook om je shell aan te passen
30
PATH
variabele waar het systeem gaat kijken voor commando's
31
help
help page
32
help | less
laat je met pijltjes scrollen
33
info
ook info opvragen
34
man
man pages / hulp pages