Block 4 + Flashcards

(33 cards)

1
Q

How to add a user. -c. And -G

A

Useradd. -c for comment (usually full name. -G to add to a specific group

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

Create password in linux

A

Passwd. Also creates a new user and user group.

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

Modify a user. And how to lock their account

A

Usermod. -L to lock account.

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

Delete a user

A

Userdel

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

Archive and gzip compress

A

Tar -czf

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

Archive and bzip2 compress

A

Tar -cjf

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

Archive and xz compress

A

Tar -cJf

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

Preview a tar file without decompressing it

A

Tar -tf

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

Unzip any type of files

A

Tar -xf

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

How to change permissions

A

Chmod

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

Adding a group to system

A

groupadd

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

Renaming a group and new name sub

A

groupmod. -n to change name. New name…old name

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

Group delete

A

groupdel

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

Get info on users and groups

A

retention (get entity).

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

What d holds list of groups and members

A

/etc/group

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

Adding a user to group

A

usermod -aG group user

17
Q

Remove user from all groups but their own

18
Q

Shows location of binary files

A

which $(passwd)

19
Q

Finds all versions of word, upper case, lower case, 1st letter cap and rest lower

20
Q

Find everything that doesn’t contain the word

21
Q

Shows what line text is on

22
Q

Shows 5 lines before line with text

23
Q

Find how many times the text shows up

24
Q

How to search a dir

25
Find text like grep but put output into columns
awk
26
awk format
awk -F ':' "{print $1}" file, print column 1. Sort @ :
27
What is APT and what is it used for
Advance packaging tool. Used to bring or get rid of apps from the terminal
28
Apt remove
Removes the app but keeps associated files
29
Apt purge
Gets rid of app and all related files.
30
Apt update
Will list all available updates in the advanced packaging tool
31
Apt upgrade
Will update all software
32
What is dpkg -l
Search system for all packages (apps) and list
33
What is top
Shows all processes. Like windows task manager