Tag Info

New answers tagged

2

Those are Process signals in general and not just related to htop, you can list all signals using the command kill -l For examplesource : -1 or -HUP - This argument makes kill send the "Hang Up" signal to processes. This probably originates from the modem/dial-in era. Processes have to be programmed to actually listen to this process and do ...


4

First try SIGTERM 15 Term Termination signal if this doesn't work SIGKILL 9 Term Kill signal From man 7 signal First the signals described in the original POSIX.1-1990 standard. Signal Value Action Comment ────────────────────────────────────────────────────────────────────── SIGHUP 1 Term ...


2

For the sake of completion, you can also use pgrep: pgrep -lU foobar this will match Real user ID of the user foobar. This will show the output with PIDs. If you want only the process names, also with removing duplicates: pgrep -lU foobar | cut -d' ' -f2 | sort -u ##Using RUID pgrep -lu foobar | cut -d' ' -f2 | sort -u ##Using EUID


2

Try this: pgrep java | xargs -n 1 echo renice -n 5 -p If output is okay, remove echo.


4

If you have only one java instance running, simply: renice -n 5 -p $(pgrep ^java$) $(pgrep ^java$): command substitution; bash replaces this with the output of pgrep ^java$; pgrep ^java$ returns the list of PIDs of the processes whose name matches the regular expression ^java$, which matches all processes whose name is exactly java If you have multiple ...


0

Use Boot-repair tool of Ubuntu: 1: Boot your computer on a Ubuntu live-CD or live-USB then choose "Try Ubuntu" 2: Connect Internet 3: Open Terminal ctrl + alt + t 4: Execute following command sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && boot-repair 5: Launch boot-repair and ...


0

Using start-stop-daemon: /sbin/start-stop-daemon --background --make-pidfile --pidfile /tmp/foo.pid -S --startas /usr/bin/program -- arg1 arg2 It works as normal user.


0

This worked for me, Controlling the CPU usage cooled the system down. Is there a way to autostart CPULIMIT in order to reduce excessive CPU consumption Also this is a good post: Ways to keep your laptop cool


0

It is not especially worrying that there are multiple instances around of certain processes. For example the webserver Apache2 can have 10 or more processes depending on the settings. Mail handling software Dovecot has typically three associated processes and they're all needed. Usually it is not recommended to kill off or blacklist processes without ...


0

lsof -t -itcp:PORT e.g $ lsof -t -itcp:8080 17396


2

It is in fact a feature of how computers work: When a program is invoked it is indeed loaded into the memory and it works from there. A file actually works in the same way. To avoid problems many files in UNIX-ish systems create locks. The actual riddle is why you can't do such and similar things in Windows. This feature is actually what allows you to ...


1

You need to kill the whole process group. The process group ID (PGID) is the PID of the process that started the group. To kill the process group you need to find the PID of the process that started the process group i.e. the script or command that started it all. The syntax is: kill -- -PGID For example: kill -- -1234 Here 1234 is the PGID (Process ...


1

Usually you can use top, htop or similar to find the process and and kill it (or if you know the name or PID of the process, you can killall, pkill etc). For example, using top, I can select a script running from terminal and kill it by pressing k+Enter: If that does not work, k+9+Enter should use the SIGKILL signal. SIGKILL requests that the process be ...


3

So basically you run a script that makes everything inaccessible, and you want quick and easy solution to stop it . An alternative to powercycling is to hold SYSRQ key (it's same as PRTSC key in many cases), and press one by one R, E, I,S,U,B. Basically that's a safe way to kill all running processes and restart the system. Alternative to that is to do ...


2

That is the freshclam daemon running that is causing that error message. If you check the log, tail -10 /var/log/clamav/freshclam.log you will probably see updates for the freshclam as early as today. As long as you're seeing updates, everything should be fine. If you want to change the intervals to the freshclam daemon, type in the following from a ...


53

Not quite. The file is already open by the program. Deleting the file ( and then replacing it with another version ) does not affect the running program because the original file is held open ( though without a name on disk to open it again ) until the program is done with it. Only when all handles to the file are closed are its data blocks on disk ...


8

Is the xterm process cached in RAM whilst it is running? Exactly. It's similar to the process that allows you to install updates to things while they're running without them crashing. And also why you have to restart services after you update them. Once something is running, its binary is in memory. If it depends on other files (that aren't in a held ...


2

You can easily do it with ps itself without need to any other tool: ps -U user-name -o comm= If you want some king of sorting and removing duplicate entries you can do this: ps -U user-name -o comm= | sort | uniq Here sample of my output: liferea mission-control nacl_helper nautilus nm-applet notify-osd nxclient.bin nxnode.bin obex-data-serve okular ...



Top 50 recent answers are included