Linux Maintenance Flashcards
Search system for root SUID bit set
find / -user root -perm 4000
Or -perm -u+s
How to view all processes Inc background
ps aux
Which command lets you view process by most resources used with updates every 3 seconds
top
NB press ‘H’ while running for interactive commands
3 ways to change priority of process
nice -n <-20..19> PSPATH
renice <-20..19> PSID
Press ‘R’ while running ‘top’
What is the absolute kill signal
kill -9 PID
What is the kill hang up signal
kill -1 PID
What is the kill interrupt signal
kill -2 PID
What is the kill termination (and default) signal
kill -15 PID
What is the kill with core dump signal saved to working directory and called core)
kill -3 PID
How to start a task/process and have it run in the background
PS/CMD &
How do you bring a process back to the foreground
fg PSID
How do you schedule a process
at <7.20pm> <08/08/1888>
at NOW + <5 minutes/hours>
How do you view default environment variables
env
How do you view ALL variables (env,shell,usr,aliases)
set (| more)
How do you make a variable change permanent
export VARIABLE
(after changing the VARIABLE)