New answers tagged

1

That is not a valid command so: no. ps -u $(whoami) would be a valid method but since $USER equals to the current user ps -u $USER is shorter and less consuming. You can also do top -U $USER for a real time method (it will refresh the processes) and ordered by %CPU. Or pstree $USER for a tree like view.


1

If you know the pid of a process, you can use this command to see who is the owner of the process: ps u pid_number


4

If you run a command from terminal then the command will always show up in the process table being a process. Your case is different as you have run a Desktop entry (declared in a .desktop file), whose name and the command it executes can be totally different. The .desktop files use an INI format to express metadata. Here is the Desktop entry for htop: [...


0

The default video player of Ubuntu is totem, so if you want to find the PID of the Video player, you should find the totem process. You can do like this: ps aux | grep totem, then you can kill the PID of totem. And you can get the information in SoundVideoDefault


0

The reason the process continues running is because when you close all of its windows it actually just minimizes to the tray, or at least, it carries on running until you have closed it using the Quit option either by choosing that for the option from the tray, or from File > Quit in one of the windows: As you probably will have also noticed from the ...


0

I don't have the rep to comment, so I'll just post an answer. You may need to apply the kill "cont" command to all of the child processes, like this... ps -eL | grep python | awk '{print $2}' | xargs -n 1 kill -s cont If this doesn't help you, you may want to investigate why the processes are falling in to wait states to begin with. A strategically ...


4

It does not require root permissions to lower the priority of a process $ sleep 100 & [1] 6965 $ renice 19 6965 6965 (process ID) old priority 0, new priority 19 Raising the priority does require root permission: $ renice -19 6965 renice: failed to set priority for 6965 (process ID): Permission denied $ sudo renice -19 6965 6965 (process ID) old ...



Top 50 recent answers are included