Hot answers tagged killall
From the man page for killall killall sends a signal to all processes running any of the specified commands. If no signal name is specified, SIGTERM is sent. When you do a kill -9, you are sending the SIGKILL signal. If you want to send a SIGKILL with killall, you need to do killall -s SIGKILL <PROCESSNAME> A good explanation of the ...
lightdm is the X display manager for Ubuntu and killing the processes will effectively disable the graphical user interface of your system. If you do not need the graphical user interface then go ahead and kill the processes but it would be preferable to stop the lightdm service instead of killing the processes with: sudo service lightdm stop ...
Using GUI, you can use System Monitor Or from terminal you can use ps aux | less To view every process: ps -A or ps -e All processes running by a user: ps -u username To kill a process, either find the process name and type: kill -9 processname or kill the process ID (PID): kill pid Stop/suspend a process: ctrl-z Source:Man Page
From the terminal, ps -ef will list all the processes. See man ps. See man kill, man 2 kill, man killall, man nice, man pkill, man renice, man 7 signal, and man skill to mess with processes. However, simply killing a process that you think is useless may be a mistake. The system might restart the process, or something you depend on might depend on the ...
Note that you don't have to kill all: you can kill the specific instance: for file in *.pdf; do echo "$file" evince "$file" & sleep 20s kill $! done $! is the pid of the most recently backgrounded process. (http://www.gnu.org/software/bash/manual/bashref.html#Special-Parameters)
I think you just forgot to run evince in background: for file in *.pdf; do echo $file; evince $file &; sleep 20s; killall evince; done Notice the & after the evince command.
My main tool here is top type top at the command line in a terminal window You'll get a list of the process that are running, listed by cpu usage. Wait a few seconds for it to gather more stats before proceeding. This is my main tool in unix for killing runaway or unwanted processes. They are likely to be near the top of the list. Note their pid and ...
Only top voted, non community-wiki answers of a minimum length are eligible