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

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

25
ls -a
reveals hidden files
26
ls -lrt
sorts files by last modification date
27
ls -ld
to show properties of directory
28
globbing
using wildcards
29
* (star) - glob ls *
lists everything
30
? - glob
specific to one character
31
[a - c ] - glob
specify range between brackets
32
globs can be combined
?[a-c]* [a-c]*
33
ls -d a*
lists just the names of files and not contents
34
cp
copy
35