If there are other general Linux administration areas that you would like to see a dedicated list of commands for, email the team at and I will do my best to flesh that out for you.My computer occasionally becomes terribly unresponsive. You can now complete general process management tasks-everything from listing and killing to moving between the background and foreground. In today's Linux Command Basics, we looked at processes and how to manage them. ![]() This brings job XXXample to the foreground. To do this, we are just going to add the job/process name to the command. Use the fg command again, but select a specific job to bring to the foreground (instead of the most recent). This command brings us to our final command in this list. The sleep 500 process that is in the background is now active in the background. The following example is a continuation of the above command. This brings the most recently run job/process to the foreground. To do this, we are going to use the fg command. Bring the most recent job to the foreground Thus we see it listed when running bg below: ~]$ bg I started a new sleep 500 process and then stopped it, sending it to the background. To list and manage background jobs, we will use the bg command. List background jobs and resume background jobs I will give a basic look at the syntax below however, for an in-depth look at these commands, see my previous article on the subject. They allow you to move/manage background commands. This would kill all sleep processes active on the system (the -9 option works here as well). This command will kill all processes with the keyword/name that you specify. ![]() Use the killall command to kill a process by name. However, if you are dealing with a stuck process, add the -9 option. The most accurate way to identify a process is by process ID (PID). The more time you spend at the CLI, the more likely it is you will need the kill command. Inevitably, a process will get hung, and you will need to kill it. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND You can see the command here (output edited for length): ~]$ ps aux
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |