Linux Operations Flashcards

1
Q

What command allows you to write a messagem to a specific user or to all users that are logged in to a server?

A

To a specific user: write (user) \n (message)

To all users: wall \n (message)

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

What commands are there that shutdown ( in different ways ) the server, explain their differences

A

reboot - restart server
halt - stop all cpu functions
poweroff - system power down

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

How can you check which run level you are on?

A

who -r

runlevel

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

Which command allows you to check the current runlevel in human format (unit) and to set the default runlevel?

A

systemctl get-default

systemctl set-default graphical.target

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