Linux Review Flashcards

(27 cards)

1
Q

Where is users info

A

Etc/passwd

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

How to change a user shell

A

Usermod -s

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

How to change comment

A

usermod -c

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

How to delete a user

A

userdel

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

How to lock a user acct

A

usermod -L

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

How to search files or directory and format to do so

A

find destination -name “ “

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

Awk format

A

awk ‘{ print $1 }” file

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

How to get rid of duplicates

A

uniq

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

What is $NF

A

Print last part of an entry

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

How to search lines in a file or list and what is the format

A

grep word file

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

What is the access log

A

Incoming requests to a web server

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

What log shows connections to a server

A

sshlog

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

How to set numbers in vim

A

:number line

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

How to switch modes in vim

A

Etc

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

How to exit and save in vim

17
Q

How to exit vim without saving

18
Q

How to add a user in linux

19
Q

What does tar mean

A

Taped archive

20
Q

What log records installations, upgrades, removal, or config updates of software packages

21
Q

What is tar -cf

22
Q

What is tar -xf

A

Extract files

23
Q

What is tar - tf

A

See contents without extracting

24
Q

What is tar -czf

25
What is tar -cjf
bzip
26
What is tar -cJf
xy compress
27
What is tar bzip format
Tar -cjf name where