MIXED Flashcards

1
Q

Compare output of
fdisk-l /dev/DiskName

cat /proc/partitions

Command
partprobe /dev/DiskName

partprobe

A

How to check if
partition on new disk is added to partition table
Compare if also added to in-memory kernel partition table?

How to add new partition to kernel partition table?

How to add after extending partition?

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

command

id UserName

A

Check user info including groups

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

sudo useradd -a -G groupname username

-a (append)

A

Add an Existing User to a secondary Group

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

ls /bin

A

see many commands on system

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

vi /etc/selinux/config

SELINUX=enforcing

A

change selinux to enforcing mode

?? is it live though? other ways to do it? like the commands

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

lscpu

Core(s) per socket: 4
Socket(s): 1

A

How many cpu cores in a system

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