Main Flashcards

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?

A

type

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?

A

!n

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?

A

SYNOPSIS

25
Q

What command would you use to get information about built-in commands?

A

help

26
Q

What are the programs called pager utilities?

A

less and more

27
Q

Which program is more advanced? less or more

A

less

28
Q

How would you perform a forward and backward search in less program?

A

/ - forward search

? - backward search

29
Q

Can more utility go backward?

A

Nope

30
Q

Which program would you use and with which parameter to look at the file in the real time?

A

tail -f

31
Q

How many lines do the head and tail programs print by default?

A

10

32
Q

What does the -F parameter means used with ls command?

A

Classify and print a file type.

33
Q

What does wc program print by default?

A

lines, word, bytes

34
Q

Which parameter allows you to show number of occurrences using uniq program?

A

-c

35
Q

How many times will duplicate appear using -d parameter?

A

Once

36
Q

Which parameter would you use to print all duplicates with uniq command?

A

-D

37
Q

Which program allows you to print file content with line numbers?

A

nl

38
Q

Does nl program counts empty new lines? (\n)

A

Nope

39
Q

How would you display two files side by side?

A

paste

40
Q

How would you part a file by a specified pattern?

A

split

41
Q

Which program would you use to change only one letter in a text file? And which to change patterns?

A

tr and sed :-)

42
Q

How would you display the second column separated by dot?

A

cud -d “.” -f2 file.txt

43
Q

How would you turn off grep highlighting?

A

grep –color=never