Linux File System Flashcards

1
Q

/ (slash)

A

Root directory - starting point

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

/bin (sub-directory)

A

binaries /bin

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

/home (sub-directory)

A

personal env for users

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

/var (sub-directory)

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

/usr

A

program files

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

/mount

A

to attach files to root using NFS

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

/sbin

A

root binaries

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

/usr

A

like windows program files

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

/boot

A

for booting - usually on separate file and contains the kernel

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

/dev

A

devices
device files provide connection to h/w

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

/etc

A

configuration files
text readable

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

/opt

A

for dbs

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

/proc

A

interface to linux kernel
cpuinfo

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

/srv

A

services
store document roots for web server or ftp server

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

/sys

A

h/w info and it is one of the advanced directories

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

/run

A

new dep directory temp need to write files

17
Q

/tmp

A

temporary files

18
Q

/var
/var/log

A

wide variety of files
duh - log files

19
Q

ls -l

A

long list

20
Q

cat

A

dumps contents of file to terminal screen

21
Q

ls

A

lists files
man ls

22
Q

permissions

A

user owner | group owner | others

23
Q

directory types
d
l

A

directory
symbolic link

24
Q

hidden files begin with a

A

.

25
Q

ls -a

A

reveals hidden files

26
Q

ls -lrt

A

sorts files by last modification date

27
Q

ls -ld

A

to show properties of directory

28
Q

globbing

A

using wildcards

29
Q
  • (star) - glob
    ls *
A

lists everything

30
Q

? - glob

A

specific to one character

31
Q

[a - c ] - glob

A

specify range between brackets

32
Q

globs can be combined

A

?[a-c]*
[a-c]*

33
Q

ls -d a*

A

lists just the names of files and not contents

34
Q

cp

A

copy

35
Q
A