1. nice:
It sounds nice isn’t it. This command is used to run a program with low priority
example; nice ls –l
2. nohup: (no hangup): This is used to execute the command even after logging out. We need to just prefix this command before the program to be executed.
3. Control Z: When we hit Control Z while executing any command, it will suspend the process, i.e. the process will stop temporarily. If we wish to resume the process, we can use the command fg. In case there are multiple processes suspended, we use “fg” with the PID. To find the PID, issue the command jobs
Control Z
jobs
The number in the square brackets is the PID. To retrieve the job, enter fg %1
kill.
To terminate the process issue the command kill pid. It sends the SIGTERM(15) signal.
To kill the last job, issue the command kill $!
You can even kill the login process!
kill –9 $$ (-9 is for force kill). The terminal will exit once the command is executed.
No comments:
Post a Comment