LPIC 101 Flashcards

1
Q

to show the name of the kernel currently using ?

A

uname
uname -s

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

to give us the kernel version ?

A

uname -r

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

to give us the build info ?

A

uname -v

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

to give us the name of the kernel the build date the version number and some processor information ?

A

uname -a

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

to show the version number of the bash shell ( Bourne again shell) ?

A

bash –version

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

change command behavior ?

A

options also called switches

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

change on what command operates ?

A

arguments also called parameters

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

to find an absolute directory of a command ?

A

which

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

to see if the command is built in the shell or it is an external command ?

A

type

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

to write the history commands in the .bash_history file?

A

history -w

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

to clear the history command ?

A

history -c

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

ls option to display a symbol called a classification indicator behind certain types of files to point out what type of file they are .

A

ls -F
/ = directory
@ = symbolic link
* = executable file

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

head -n 2 etc/passwd/
head -2 etc/passwd/

A

to show the first two lines of passwd file

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

head /etc/passwd

A

to show the first 10 lines of passwd file

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

cat /proc/version

A

to see the linux version same as uname -r

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

tail -n 2 etc/passwd/
tail -2 etc/passwd/

A

to show the last two lines of passwd file

17
Q

tail -f /var/log/secure

A

to show the last lines of the log file and then display any new messages as they come in.

18
Q

to show the first page of a long text file we use pager utility

A

more /var/log/boot.log

19
Q

to show the first page of a long text file we use pager utility and to go backward and forward in the file

A

less /var/log/boot.log

20
Q

we can perform searches in the less command using ?

A

/”pattern” = to search for the forward pattern
?”pattern” = to search for the backward pattern

21
Q

how to show how much lines, words and bytes in a text file?

A

wc /etc/passwd