bash Flashcards

(27 cards)

1
Q

cut

A

tar bort kolumnbaserat ur en textrad

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

uniq

A

tar bort dubbletter

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

wc

A

räknas new line, word och bytes

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

touch

A

Updaterar timestamp på den fil samt skapar om den inte finns

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

find

A

söker i filsystemet

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

du

A

estimerar disk användandet för filer

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

df

A

rapporterar filsystemets diskutnyttjande

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

pico

A

som nano

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

viktigt koncept

A

allt är filer

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

FHS

A

file hieracy system

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

Home

A

användare, Desktop, local config, etc

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

Root

A

här bir superuser

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

/etc

A

global konfiguration, bachrc, fstab, motd, ssh, mysql, cups, cron

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

dev, devices

A

hårddiskar, joystick, slumpgenerator, nvme<DEVICE>n<namespace>p<partition></partition></namespace></DEVICE>

17
Q

/opt

A

add on applicationer

18
Q

var

19
Q

bin och sbin

A

binärer, head, ls etc

20
Q

mnt, media

A

monterings plats, temp saker som extern hårddisk etc

21
Q

redirect «

A

dirigerar om stdin till ett kommando till dess att ett specifikt vilkor är möt.

22
Q

history

A

kan användas med !id

23
Q

bättre variant av historik

A

ctrl r, skriv vad man vill söka på

24
Q

shell scripting $1

A

first argument

25
z betyder?
zero lenght comparison
26
-f in en bash if
en fil existerar
27