Main Flashcards

(43 cards)

1
Q

Where are bootloader files stored?

A

/boot

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

Where are configuration files stored?

A

/etc

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

Where are users files stored?

A

/home

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

What is root user home directory?

A

/root

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

Where are removable media stored?

A

/media

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

What is older place where removable media were stored?

A

/mnt

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

Where are 3rd party apps stored?

A

/opt

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

Where is variable data stored?

A

/var

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

Where are Linux user program binaries stored?

A

/usr/bin

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

Where are Linux admin program binaries stored?

A

/usr/sbin

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

Where is local installation program data stored?

A

/usr/local

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

How would you list only directory name?

A

ls -d

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

What is a distribution?

A

Linux kernel (as base) + utility software

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

What is a distribution?

A

Linux kernel (as base) + utility software

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

What is FHS

A

Filesystem Hierarchy Standard

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

How would you get the kernel information

A

uname -r

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

How would you get kernel compilation datetime?

A

uname -v

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

How would you print kernel name?

A

uname = uname -s

19
Q

What type of commands we can distinguish?

A

Built-in and external

20
Q

What program would you use to check whether a command is built-in or external?

21
Q

What programs will help you find and understand usage of commands? (4)

A

help | info | man | apropos

22
Q

If you print your command history. How would you execute n-th command?

23
Q

What is the difference between history LIST and .bash_history

A

History LIST ‘lives’ inside’ memory, not storage. LIST contains all commands associated with current’s user session.

24
Q

In what section of man pages is command syntax described?

25
What command would you use to get information about built-in commands?
help
26
What are the programs called pager utilities?
less and more
27
Which program is more advanced? less or more
less
28
How would you perform a forward and backward search in less program?
/ - forward search | ? - backward search
29
Can more utility go backward?
Nope
30
Which program would you use and with which parameter to look at the file in the real time?
tail -f
31
How many lines do the head and tail programs print by default?
10
32
What does the -F parameter means used with ls command?
Classify and print a file type.
33
What does wc program print by default?
lines, word, bytes
34
Which parameter allows you to show number of occurrences using uniq program?
-c
35
How many times will duplicate appear using -d parameter?
Once
36
Which parameter would you use to print all duplicates with uniq command?
-D
37
Which program allows you to print file content with line numbers?
nl
38
Does nl program counts empty new lines? (\n)
Nope
39
How would you display two files side by side?
paste
40
How would you part a file by a specified pattern?
split
41
Which program would you use to change only one letter in a text file? And which to change patterns?
tr and sed :-)
42
How would you display the second column separated by dot?
cud -d "." -f2 file.txt
43
How would you turn off grep highlighting?
grep --color=never