A process is an instance of a computer program that is being executed.

learn more… | top users | synonyms (1)

0
votes
1answer
21 views

Open ports with no associated PIDs

I have some open ports on my laptop but netstat is not reporting which PID/Program is associated with them: $ netstat -tulpn (Not all processes could be identified, non-owned process info will not ...
0
votes
1answer
13 views

Linux ps -elf command output, what is Process Flag meaning?

In output of ps -elf command in linux, we can recognize that process flag of 4 and 1, and process flag of 5, (sum of 1 and 4), but what is meaning of process flag 0 ? unfortunately, man does not help ...
3
votes
0answers
274 views

Monitor if a process has terminated in C [migrated]

Introduction I am writing a monitoring program in C, which performs the fork() and exec() cycle. However I need to check whether the child process has terminated or not without blocking the main ...
1
vote
2answers
28 views

Directory in /proc that isn't process dir but start with number?

Quick question. Is it possible to create directory in /proc that starts with number but isn't process directory (where name is PID)? I write software that searches for process directories and I wonder ...
3
votes
2answers
176 views

What does p and e denote in exec family of calls?

l and v in exec calls denote whether the arguments are provided via list or array(vector). I read it somewhere that p denotes the user's path and e denote the environment but did not understand what ...
1
vote
1answer
26 views

Restricting CPU time of processes by executable path

Is there a way to restrict CPU time (duration) for all processes which are invoked by executables that are located in a certain directory? I would like to be able to auto-kill all applications which ...
1
vote
3answers
36 views

What does it mean to run a process in background? [duplicate]

What exactly does it mean to run a process in the background? The difference between $program and $program&: Is it just that the input file descriptor is not inherited from the shell or is there ...
4
votes
2answers
139 views

Zombies in bash

Bash doesn't seem to create zombies. It looks like the processes get immediately reaped when they get killed. Can I make bash make zombies? Why I'm asking: I'd like to be able to safely kill a ...
3
votes
2answers
39 views

foolproof way to detect if java process is running

I have a java process that runs continually that sometimes, for reasons I have yet to fully debug, craps out. So, I also have a cron job that looks for the process every 5 minutes and if it finds the ...
3
votes
1answer
33 views

Resource (CPU time and memory) limitation and termination of a process upon violation in Linux

The problem: Given a process, limit the resources it and its child-processes can use. I.e. set CPU time and virtual memory quotas. When the process group exceeds one of the limits, terminate it, ...
6
votes
1answer
57 views

Is it possible to add a process to the job list in bash (e.g. to reverse “disown”)?

If I disown a job in bash and change my mind, can I undo it somehow ? If so, taking it further, is it possible to bring an arbitrary process under job control (an acceptable restriction would be that ...
1
vote
1answer
41 views

What is the actual process name when nautilus is copying files?

I am copying some files from an external drive to my desktop running Ubuntu. I can see the "File Operations" dialog which shows copying process. How do I find this particular process in ps aux | grep ...
2
votes
1answer
26 views

How can I know threads names that run on specific core

I am working in java code,my code attend in making specific java thread run on specific core and in this code i give names for java threads.I need linux command that enable me to know threads names ...
2
votes
1answer
41 views

How to kill a task that cannot be killed (uninterruptable?)

I have a task running that blocks pm-hibernate (on Linux 4.0.7-2). When I try pm-hibernate there is an error message "Freezing of tasks failed after 20.002 seconds (1 tasks refusing to freeze, ...
3
votes
1answer
32 views

Why can the waitpid system call only be used with child processes?

The man page wait(2) states that the waitpid system call returns the ECHILD error if the specified process is not a child of the calling process. Why is this? Would waiting on a non-child process ...
2
votes
2answers
45 views

How do I kill a process after detaching it from bash?

I have multiple scripts that detach a process from bash using nohup and &>/dev/null &. My question is, how do I kill the process after completely detaching it from bash. using killall or ...
0
votes
1answer
50 views

Process command

When I used ps -u root command in Ubuntu it showed the following output? PID TTY TIME CMD 1 ? 00:00:02 init 2 ? 00:00:00 kthreadd 3 ? 00:00:00 ksoftirqd/0 5 ? ...
1
vote
0answers
47 views

Find which process is being joined by another?

If I have open Nautilus and spawn a new Nautilus instance a new PID is created for the new Nautilus instance. Shortly after, the instance is being joined with the main Nautilus program running. Main ...
1
vote
1answer
45 views

Is there a robust way for a child process to signal readyness to its parent? [closed]

I have a (Java) process which is staring a separate process foo. foo takes some number of seconds to start up, then is really running. Control returns back to the parent process as soon as foo is ...
3
votes
2answers
22 views

bash + how to hold shell scripts

Is it possible to hold/stop the bash script progress without to kill the process? ( by kill command ) or other command For example this script - install_linux_pkgs.bash , will install Linux pkgs ...
21
votes
1answer
538 views

What does it mean to have a minus sign as the first character of a command in htop output?

In htop, or other commands that show process status, all bash processes have in the command column /bin/bash but one process has in the command column -bash What does it mean?
1
vote
1answer
62 views

Why does my process take too long to die?

Basically I'm using Linux 2.6.34 on PowerPC (Freescale e500mc). I have a process (a kind of Virtual Machine that was developed in-house) that uses about 2.25 G of mlocked VM. When I kill it, I notice ...
2
votes
1answer
61 views

list processes belonging to a network namespace

I am on Ubuntu 12.04, and the ip utility does not have ip netns identify <pid> option, I tried installing new iproute, but still, the option identify doesn't seem to be working!. If I were to ...
1
vote
0answers
18 views

Inconsistent output on /proc. Can some processes be hidden? [duplicate]

When I list /proc/<PID>, works as expected. But when I use ps or ls /proc | grep <PID>, the process is hidden. How & Why is this possible? [user@host ~]$ ls /proc/12263 attr ...
9
votes
1answer
913 views

Still alive, still alive after kill -9 / SIGKILL [duplicate]

An apache2 process got stuck on my server and caused problems with other services. (original problem: kerneloops after USB hardware disconnect) root@server:~# ps aux | grep apache2 | grep -v grep ...
2
votes
1answer
72 views

Process startup after boot

I know the following are ways processes get started in Linux from init.d (or similar) from shell (by user) forked by a running native daemon Is is ever possible on Linux for a process to be ...
1
vote
2answers
57 views

Why is the range of load average not 0-1+ for all cpu's together?

I know that load average is 0-1(or 0-1024) per cpu. E.g a busy quad-core can have a load average of 4.0 or higher. (e.g if there are many tasks). I understand it can be huge like 100+ etc. I also ...
1
vote
1answer
33 views

How can I find out which mounted filesystems a running process sees?

After having a long debug session and finally finding out that in Fedora (and CentOS) php-fpm has its own mounted /tmp filesystem, which was caused by a systemd setting, PrivateTmp, I am wondering if ...
0
votes
0answers
15 views

Page Fault Frequency Algorithm - Compute number of frames and mean resident set

I'm reading about Page Fault Frequency algorithm but I don't understand how can I compute the number of frames. For example I have my reference string: 112233444412412214432255543 and control ...
9
votes
1answer
80 views

Is it possible to know the source (application) of the clipboard?

I've noticed that sometimes clipboard contents become unavailable if the source application (where the content was copied from) is closed. This leads me to wonder if it's possible to know what the ...
0
votes
1answer
31 views

Kernel current working directory and inode information placement

I'm reading some doc about UNIX but I don't understand two things: Why is important for the kernel to know the current working directory of the running process? Why not keeping the inode information ...
2
votes
6answers
373 views

How to close all proceses without restarting a machine?

I have a lot of processes running and I need to kill them all. How can I do this without restarting a machine?
1
vote
1answer
26 views

Stopping jobs by PID?

Could someone tell me why I am unable to kill the jobs below when specifying their PID? I can stop the jobs when using their % id. Mac:~ gd$ ps PID TTY TIME CMD 4523 ttys000 0:00.02 ...
3
votes
1answer
42 views

Sending signals to long-running processes (AWK, DD)

I'm familiar that DD command doesn't produce output while running. However, if I send a USR1 signal to it, it can print current state. Can I do the same with AWK? Prints its variables, register ...
1
vote
1answer
28 views

Show CPU core usage for parent process and its child processes

Is it possible to display CPU core usage just for a single process and its child processes on Linux?
3
votes
2answers
54 views

Sum the memory usages of all the processes of a program?

How can we sum the memory usages of all the processes of a program? For example, I have opened many Chrome tabs for webpages, and each tab runs a different process. How can I get the total sum of ...
4
votes
2answers
337 views

How to locate a Chrome tab from its process PID?

I opened many Chrome tabs for webpages. Each tab has its own PID, e.g. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND t 3900 1.9 6.3 5718440 508660 ? Sl ...
2
votes
1answer
26 views

How to guard a set of folders from being written into by a specific process?

I would like to have a way in which a set of folders do not allow write access for a particular process. For example, I would love to have a way in which YUM/RPM is not allowed to write into /usr/bin ...
3
votes
2answers
37 views

How to update user/group settings of a running process?

Suppose I change some user settings like its initial login group or add it to a new group. I now can do su user and work with these new settings. But all the previously running processes will still ...
3
votes
3answers
190 views

How to restart (or reset) a running process in linux

I have two Linux systems communicating over sockets (Desktop and ARM-based development board). I want to restart (or reset) my client application (running on a development board) when server sends a ...
3
votes
1answer
49 views

what does it mean 'fork()' will copy address space of original process

I'm studying 'operation system concepts' on my own and I'm studying the chp3. process part. There is an example where the 'fork()' function is called and depending of the returned pid value like the ...
0
votes
2answers
55 views

Why do some processes end with the letter “d”? [duplicate]

Some Linux binaries end with a "d", for example sshd, httpd, ppd, etc. Why is this so?
1
vote
0answers
30 views

How do I automatically kill the process and restart it to use the updated package? [closed]

Suppose a process is using a package, and I update it in the midst. How do I create a trigger in Linux that automatically kills the process and restarts it to use the updated package
1
vote
0answers
27 views

If processes can't modify their parent's environment, what is MC doing?

As far as I know, a process cannot modify its parent's environment. However, when I run mc (GNU's Midnight Commander, a curses-based file manager) and then quit it, I end up with another $PWD: ...
3
votes
4answers
105 views

How do I get the value of a named option of an already running process in Linux?

I run the following command. ps -e -o args | grep destiny | grep UNIX I receive the following output. /path/to/destiny -r -m UNIX -t TCP -p 1501 What command can I use the get the value of the ...
5
votes
3answers
369 views

How do Linux permissions work when a process is running as a specific group?

This is something I haven't been able to find much info on so any help would be appreciated. My understanding is thus. Take the following file: -rw-r----- 1 root adm 69524 May 21 17:31 ...
1
vote
0answers
27 views

Is there any considerations I should take when running untrusted apps as non-root user?

I have to use an application I don't trust (unstable) and I will run it as a non-privileged user so if something bad happens the damage would be limited to the home folder of that user. I removed ...
3
votes
1answer
34 views

Get all files open for writing with pid, recursively

Given a pid, I can get all the files open for writing something like: lsof -p 28827 | awk '$4 ~ "[wW]"{print $(NF-1), $NF}' One of those ends up being a pipe: 28827 232611 pipe I want to look-up ...
5
votes
1answer
66 views

How to enable random PIDs on Linux?

I'm currently comparing random PID implementation on OpenBSD, FreeBSD and Linux from security perspective. As long as OpenBSD and FreeBSD are concerned, my work is done. However, while the answer ...
0
votes
2answers
29 views

Is there a need to get rid of a zombie process? [duplicate]

I read somewhere (forgot where) that a zombie process continues to consume the process table entry (concretely the process identifier or PID), and causes a resource leak. Is it correct that a zombie ...