Questions about identifying processes, about listing them, sending signals, killing them, assigning and using process priorities.

learn more… | top users | synonyms (1)

2
votes
1answer
48 views

Is there any reason to use 'kill' instead of 'killall'/'pkill'?

Starting my adventure with Linux a couple of years back, most tutorials and older, more experienced colleagues suggested using the command 'kill', sort of like a replacement for the Process Manager ...
0
votes
0answers
9 views

Accessing a process after closing the consol

Basically I am using Ubuntu to run a minecraft server via a VPS and I’m using putty to control it. once I have started my server and everything is running, I’m in control of the server console, just ...
1
vote
1answer
14 views

CGroups memory subsystem

I want to know if I can set dynamic limits to the memory subsystem in a cgroup. Currently I have the OOM disabled and a dummy process to test the control group, when the limit in memory is reached, ...
1
vote
0answers
19 views

Java process stays open

I like playing Minecraft but after I close Minecraft, the java process stays on and I need to go into the system monitor to kill it or else there will be a lot of java processes on slowing down my ...
1
vote
2answers
32 views

Daemonize process with autostart

I have simple script written in Ruby. I'd like to run as a background task (daemon process or service). What is more want to have control over it so that I can start and stop it. It will be perfect ...
0
votes
1answer
25 views

migrate live process from one machine to the other

I am going to work on a project in which one live process should migrate from one Ubuntu machine to the other machine( in a homogeneous environment ) so what are all the things I should know before ...
2
votes
3answers
29 views

Resuming a vim session I have accidentally Disconnected from

I came across an unusual problem today, I was using vim, had created a new alias in bash, and wanted to try it out. so I ctrl-z, exec bash (I do this because I don't like nesting it with bash. and my ...
0
votes
1answer
21 views

How to list out all the user created daemon processes

Is there any command which list out all the Daemon processes created by users to perform some tasks. I have created various daemon processes and I want to kill it manually by checking its pid how can ...
0
votes
1answer
22 views

How do I properly restart Chrome?

I've been doing some WebGL development, and of course crashing Chrome occasionally along the way. When this happens, WebGL in Chrome won't work until I restart my PC, which makes me think that even ...
1
vote
4answers
92 views

Which is the shortest way to list a running process?

I often need to check if a process is running, so I use one of these: ps aux | grep myprocess ps -Fe | grep myprocess top pgrep myprocess (only shows the PID) pkill myprocess (if I want to kill it) ...
3
votes
0answers
35 views

Suspicious processes starting with “[?/-]” with after upgrading to trusty

I have just upgraded to Trusty (this may not be relevant). I fired up top, and noticed a heap of processes running as root that I had not noticed before. For example: 234 root 39 19 0 ...
0
votes
1answer
36 views

Why applications do not always run in foreground when started from terminal?

If I start an application from terminal normally it runs in the foreground. So it is possible to suspend the application (with Ctrl+Z), look to the jobs and put it back to foreground again with fg ...
0
votes
0answers
14 views

kernel event listener

I wonder if there is something similar to an event listener in UNIX that a program can subscribes Specifically I want to know: Start and end times of a user session Start and end of the applications ...
2
votes
1answer
44 views

how to know the use of my applications?

I want to know how long my programs have been used. For example if I use my web browser i want to know the start and the close time to obtain a total of use time. Basicly I want to know when an ...
0
votes
1answer
14 views

Catching runaway processes

Occassionally, I run a command that hogs RAM and brings my system to a grind. Even pressing Ctrl-C takes 20 minutes to register, because the system is busy swapping to disk. What solutions are ...
0
votes
0answers
20 views

Docky closing upon package update

I've got docky running inside of KDE Plasma Workspace, and I notice that it just quits each time a post-installation trigger is processed. No error log, no proof it even crashed. This happens on both ...
7
votes
4answers
435 views

How to check the process is already running or not

I want to check the particular process in already running or not. I refereed this Q&A. But I didn't get any specific solution. Following is the example that I tried: I have created abc.sh file ...
0
votes
1answer
28 views

Permanently end processes

The point is that i installed xubuntu and at one point i get on the screen one light bulb increasing and decreasing the light on the display (laptop) so i found in task manager that it is this ...
1
vote
1answer
20 views

Stopped Jobs error upon logout

There are times when I attempt to logout of SSH and I get something along the lines of: There are stopped jobs Not knowing what this is, I end up force quitting putty with the exit button in the ...
3
votes
1answer
58 views

What is the “Browser” process?

What is the Browser process? Is the process safe or malicious? Thanks for help, Top results:
0
votes
1answer
32 views

Apache running only one process

pstree shows me Apache as having only once processus generated (Ubuntu Server 12.10). I do not think this is normal given the number of sub-processes Apache may launch. Could you explain me why this ...
3
votes
3answers
251 views

Killing several processes

I have one command (/usr/lib/R/exec/R pathtoDifferentFiles) being executed with many different arguments (file names). Looking at htop, I see at least 30 processes created, I want to kill all of ...
1
vote
0answers
31 views

How can I limit the bandwidth usage of the Copy process?

I am running Copy and it is uploading like crazy. Our ISP is crappy, so whenever copy is uploading, I have to STOP the process and then CONT it using KDE's System Monitor to prevent it from hogging ...
1
vote
2answers
161 views

How to get a list of running programs in Lubuntu 14.04

Just like in Windows where you can see and maybe "kill" one of the running programs. How to get such a list ?
1
vote
1answer
114 views

Know programs in cache

I have this situation with RAM and SWAP at the moment: $ free -h total used free shared buffers cached Mem: 7,7G 7,5G 159M 100M ...
0
votes
1answer
30 views

Is there any way to give a tag or nickname to a process so it can be killed invoking kill <tag>?

I have one Ubuntu 12.04 vps and I use git to upload code for a web server, when I push by git to vps I have to login via ssh to vps and look for the process by: ps -A | grep node I kill it once I ...
3
votes
1answer
58 views

Do something if a program is running

Is there something you can type into terminal so that it will run a command if a certain program is running? For example, if <Libre office is running> then sudo pkill <Libre ofice>. ...
2
votes
3answers
192 views

Cannot Delete User

I am trying to uninstall logstash, but sudo apt-get remove logstash fails because the user is being used by a process. If I try to manually delete the logstash user, I cannot because even when I kill ...
1
vote
0answers
33 views

I want to use fstate to measure context switch activity, but tracer 'sched_switch' is missing from my list of fstate tracers. Can I fix that somehow?

# uname -a Linux utah 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux # cat /sys/kernel/debug/tracing/available_tracers blk function_graph mmiotrace ...
0
votes
0answers
28 views

directory locked

I have been trying to install virtualbox using this command: sudo apt-get install virtualbox.qt But I am getting this error: E: Unable to lock directory /var/cache/apt/archives/ I have been ...
0
votes
4answers
119 views

What is a background process?

I always heard about background (but not desktop background) what is this really is? To better approach look at the answer of this link what is technical difference between daemon, service and process ...
2
votes
1answer
40 views

Exit program with all its processes

I'm using chromium browser on Ubuntu OS. When I press the exit button many processes appear still running. Does anyone know how I can stop this browser completely with all its processes when I press ...
1
vote
2answers
33 views

How can you get the number of the processes where program is started?

First of all I save in a file all of the working processes. ps -el > file1 My idea is to count the number of lines in file1 where vi is present. I tryied something like wc -l | grep vi file1 ...
0
votes
1answer
147 views

What process of Google Chrome to kill to close window from terminal?

Google Chrome usually has 8 to 9 processes running, even though only one window is open. Which one of these processes do I kill to safely close the Google Chrome window? Here is my ps -Af | grep ...
1
vote
2answers
56 views

Get full path of currently open files

I'm trying to code a simple application that must read all currently open files within a certain directory. More specificly, I want to get a list of files open anywhere inside my Documents folder, but ...
0
votes
1answer
30 views

How to change process priority

I want to change the priority of a process on my Ubuntu 12.04 Desktop, but I can't. I go into an app called "System Monitor", right click the process, and change the priority to "high". I then get ...
1
vote
3answers
41 views

Terminating the Terminal process for a particular outcome

for example consider the following situation:: I need to print some numbers randomly one after the other with a time interval of 5 seconds between each, and I need to terminate the terminal process ...
0
votes
0answers
12 views

Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) [duplicate]

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
0
votes
2answers
60 views

Kill a process of a user Whose username start with a particular prefix?

I want kill specified process of all users in my ubuntu whose username sytarting with 'cs' and 'ec'
3
votes
1answer
190 views

pkill not killing

I have a Script named PirateRadio.py That I am writing a script for. I need to kill and reload the script. Possibly with the same PID. I thought SIGHUP was a sure thing. when i run #pkill -1 ...
3
votes
1answer
34 views

Is it safe to remove a process folder from /var/run/?

Is it safe to remove a process folder from /var/run/ if I think it has got wrong permissions, will it be recreated by process as before? Do I lose any information by deleting /var/run/<process ...
2
votes
2answers
1k views

How o kill libreoffice from command line

I am using Ubuntu 12.04.4 LTS 64 bit My LibreOffice suite (especially Writer) used to freeze! I tried to search for the executable process at System Monitor and command line (ps) but didn't find it ...
2
votes
1answer
229 views

What should I do when I get 'There are stopped jobs' error?

I face this type of situation many times. For example, whenever I try to open some file in emacs with sudo rights using: sudo emacs tet.c & Instead of asking me for the password Ubuntu just ...
0
votes
1answer
45 views

wc prints a byte count for a nonexistent process

I came across a program called wc, which prints the number of bytes, words, and lines in files. Now my intention is to use it to determine if a process is actually running on my computer. If it is, it ...
0
votes
1answer
87 views

Question from a newbie [closed]

I installed ubuntu yesterday, so this is a very new and unique experience for me. Naturally, I want to know how does installation work here? In Windows, exe files are opened and installation boots ...
0
votes
0answers
9 views

What prevents a user process from writing at random positions in memory and damage the OS or other processes?

Why can't the following code damage memory? int x; while(1) { x = rand();//assuming that the address space has the size of an int *x = 0; } I know that each process has a virtual address ...
0
votes
0answers
18 views

Int system call and 'int' within C syntax

I'm learning about kernels and I was curious if the int system call(in our case, in Linux) has any connection with the declaration of an integer in C and C-based languages. int n; Is an integer ...
26
votes
3answers
2k views

Why do shells call fork()?

When a process is started from a shell, why does the shell fork itself before executing the process? For example, when the user inputs grep blabla foo, why can't the shell just call exec() on grep ...
1
vote
1answer
292 views

kill sleeping process in mysql?

I have a MySQL database, which is very often filling with sleep process and I have to open my workbench and then have to kill them to free connections & then it will work fine. Is there any way ...
0
votes
1answer
364 views

Running a daemon process from upstart

I'm running my application on a VPS under Ubuntu 12.04 LTS. And I have a problem with one daemon process for one of my applications. This process is called "delayed_job" (If not familiar - this is ...