Commands Test 1 Flashcards

1
Q

How do you force updates on group policy?

A

gpuupdate /force

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

What command can we uses to get Sudo privileges?

A

usermod -aG wheel username*

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

Command to set hostname for jdrost?

A

hostname to set-hostname jdrost
Then
shutdown -r now

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

How to show who has passwords?

A

cat /etc/passwd

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

How do you copy an authorized key into the siguser folder?

A

On CMD enter the drive the folder is stored in:
C:> pscp keys\authourized_keys root@ipaddr:/home/siguser/.ssh
Identify pscp, file location, user+IP, folder to save under

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

How to change permissions?

A

chmod 777 /file path

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

How to install realm discover?

A

Sudo yum -y install realmd

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

How to discover a domain?

A

Sudo realm discover jdrost.domain

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

How to you connect to a windows adds in linux

A

Sudo realm join jdrost.domain

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

How to make siguser the owner of the authorized keys folder?

A

Sudo chown siguser:siguser authourized_keys

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

How to install vnc server?

A

Sudo yum install tigervnc-server

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

What are the other commands for vnc

A

Sudo systemclt

  • daemon-reload
  • enable vnc@:3.servive
  • status vnc@:3.service
How well did you know this?
1
Not at all
2
3
4
5
Perfectly