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)
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
3
Q
How can you check which run level you are on?
A
who -r
runlevel
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