Questions tagged [process]

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

Filter by
Sorted by
Tagged with
2 votes
0 answers
852 views

Caja running and can not kill it, Ubuntu 18.04 Mate

Caja runs constantly and restarts after I kill it, using 10-20% cpu on each of 4 cores. If I stop it (but do not kill it) all is fine. When it runs the hard disk is constantly running as well. What ...
scanex's user avatar
  • 41
8 votes
2 answers
15k views

Bash script to verify if a process is running is not working

I have a simple script as below which checks if fail2ban service is running or not on Ubuntu 18.04: #!/bin/bash # Script to check if fail2ban service is running if pgrep -x "fail2ban" > /dev/...
skr's user avatar
  • 81
1 vote
1 answer
556 views

threads presentation in pstree

I read manual of command tree and confused about threads Child threads of a process are found under the parent process and are shown with the process name in curly braces, e.g. ...
Alice's user avatar
  • 1,700
11 votes
1 answer
666 views

Is this behaviour of VLC normal?

I'm on ubuntu 16.04 unity latest updates installed, I have one of the best Asus gaming laptops in the market, VLC is installed but I never use it. For the last few months, I wasn't able to shut down ...
Lynob's user avatar
  • 6,665
0 votes
1 answer
81 views

How to locate that folder and files content related to every process newly started [closed]

According to my knowledge when we start a process. A folder related to that process is created somewhere else, and that folder have 2 sub-folders and then those sub-folders have sub-files. My ...
Asad Mehmood's user avatar
0 votes
1 answer
135 views

How does Alt+F2 run a command directly as a child process of the init process?

On Lubuntu 18.04, if I click the desktop menu, and lxterminal in it, and run the the following in the terminal emulator window, I will get $ pstree -a -p -s $$ systemd,1 --system --deserialize 19 ...
Tim's user avatar
  • 25.2k
4 votes
2 answers
7k views

How to check when a process stopped running? [duplicate]

I'm trying to figure out when a command I entered stopped executing, for example sudo apt-get update I want information like: started execution at : 12:00 finished execution at : 12:15
Tat Mush's user avatar
1 vote
0 answers
49 views

I have noticed that sometimes my HD is spinning and spinning running "find command" on Xubuntu 16.04.5

When I start my laptop the HD is spinning executing find command without reason, I tried to clean saved sessions, looking in startup programs if there is any command using find command, but I couldn't ...
vladimir pavloski's user avatar
1 vote
0 answers
23 views

Stopping a task and resuming it with more allocated cores

Is it possible to start a task eg- $ make xxx then pause it, and resume it with more cores allocated? $ <some-resume-command> <pid> -j which would be the equivalent of switching to ...
deltav's user avatar
  • 11
1 vote
0 answers
116 views

Ubuntu Server requires service restart every few days

I'm new here and I hope you can help me out this time. I have a MySQL server which receives many requests from my other servers...daily up to 1000 requests (HTTP and remote MySQL). However, for some ...
Brickr's user avatar
  • 19
0 votes
1 answer
999 views

Firefox doesn‘t start, because there‘s already a firefox process running

I‘m trying to launch firefox and it tells me, there‘d already be a firefox process running. I tried listing the processes using ps -A, but there is no firefox process listed. I also tried killall -9 ...
Max's user avatar
  • 177
0 votes
0 answers
278 views

The system call exit()

I have to make some modifications in the system call exit(), but I cannot find its implementation. I think that it calls the kernel method do_exit() but I am not sure. Is there anyone who can say ...
Goktug's user avatar
  • 123
0 votes
1 answer
3k views

How can I kill a process in kernel?

I am interested in kernel development, and I am trying to find a way to terminate and kill a process. The only thing that I know is pid and task descriptor value of that process. In other words, how ...
Goktug's user avatar
  • 123
0 votes
1 answer
3k views

Terminal not started in ubuntu 18.04

Ubuntu 18.04 failed to start terminal. It shows an Error message - -failed to execute child process gnome-terminal. Please help me to start terminal in my system.
vipul jain's user avatar
0 votes
1 answer
1k views

Niceness and Priority of Processes

According to the some resources I have read, the process with low nice value has more priority. Because it has more priority, CPU allocates more time for that process. However, it sounds a little bit ...
Goktug's user avatar
  • 123
0 votes
1 answer
1k views

Send multiple kill signals to a process

Say I run a .sh process. And now I open a new terminal tab and I want to send signals to it, for that, I just use kill: kill -*signal number* *pid* right? But I want to send 13 signals at the same ...
C. Cristi's user avatar
0 votes
1 answer
1k views

How to Run Process Manager as Super User

I am trying to run an API on an Orange Pi. It is running Ubuntu and the API process is running via Node.js Express. I would like the process to automatically start running when the computer boots up, ...
Matthew's user avatar
  • 573
0 votes
3 answers
506 views

Does opening a new terminal tab use equivalent system resources to opening a new window when running scripts in parallel?

Is opening a new tab in the terminal window equivalent to opening a new tab in terms of resources? I need to run 16 scripts in parallel. I do not know whether opening tabs or new terminals is the ...
user9371654's user avatar
1 vote
1 answer
327 views

Why does x-terminal-emulator sometimes exit on launch and sometimes not?

From my Java program, I launch an x-terminal. The Java waits for the x-terminal command to start. (It's a Datastore emulator for developers.) Process proc = Runtime.getRuntime().exec("/usr/bin/x-...
Joshua Fox's user avatar
  • 2,931
0 votes
1 answer
218 views

How can I identify or find the origin of this mysterious process?

I have a strange process on Ubuntu 14.04 that fires up fairly frequently. It appears as a bash shell in top, I haven't actually located it in ps xfa. When it runs, top says it's using 215% CPU and ...
A.Adverse's user avatar
  • 195
2 votes
1 answer
668 views

How to know jar process

I launched on server, by crontab few jar (java) files (part1.jar, part2.jar...). I can get are data of process: lsof -i tcp:8080 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java ...
Valentyn Hruzytskyi's user avatar
3 votes
2 answers
828 views

Can I toggle a script with a shortcut key?

I have a bash script on my desktop called script.sh. Currently, if I want to execute it, I open a terminal and type ./script.sh, and if I want to stop it, I have to press Ctrl + C What I'd like to ...
Xanimede's user avatar
9 votes
1 answer
5k views

How to get a process exit status from another shell session?

Suppose I run a command in one shell session, for example bash -c 'apt-get update && apt-get upgrade'. 5 minutes later I decide to go outside for a snack, and realize I forgot to add some form ...
Sergiy Kolodyazhnyy's user avatar
0 votes
1 answer
220 views

How to handle signal in foreground process?

I have doubt, why does we cannot use kill -s 9 <pid> or kill -s 15 <pid> to kill foreground process? When I am trying to do the same, getting result that process id does not exist ...
Sunny Kang's user avatar
6 votes
4 answers
3k views

Process hangs before termination with ubuntu 18.04

When using ABAQUS 6.14 (but also ABAQUS 2018) on ubuntu 18.04 everything seems to work fine except the termination of the standard process (the process started when performing an implicit analysis -- ...
David's user avatar
  • 383
1 vote
1 answer
12k views

Unable to modify ulimit

I am on Ubuntu 18.04 Trying to modify max number of processes (hard limit) via the following command, and getting the respective error: $ ulimit -H -u 500 bash: ulimit: max user processes: cannot ...
pkaramol's user avatar
  • 2,121
1 vote
1 answer
508 views

Ubuntu 18 keeps processes running

I noticed my Ubuntu keeps process running after ending an application. For instance after closing my vscode it still appears to be in the process and still takes up memory and I end up having multiple ...
joseph jide's user avatar
4 votes
0 answers
2k views

Random http command by user _apt with 100% CPU usage

A random process with the command http owned by the user _apt starts automatically and uses 100% CPU. What is it? And why does it keep starting? I have attached a screenshot of the top command ...
code's user avatar
  • 163
1 vote
2 answers
386 views

How to abort Fight Flash Fraud (F3)?

I am using the commands f3write and f3probe and want to abort them. There is no consideration of this in the manual and Ctrl-C is not working. I can kill the process in task manager but I was ...
bomben's user avatar
  • 2,059
5 votes
1 answer
11k views

ubuntu error : Errors were encountered while processing: redis-server

I am getting error when I run sudo apt-get upgrade output error : Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 ...
Behnam Rasouli's user avatar
6 votes
1 answer
3k views

What is the gmain process?

I used lsof | grep home/$USER and I found that the gmain process likes to open my personal files. What does this process do and is there any available documentation that explains it in context of ...
David Kamer's user avatar
1 vote
2 answers
186 views

Prevent other processes for performance

Let's say I have an .c and .cpp file which runs some code to calculate the duration of some process; Basically I get microseconds between some method and I calculate how many seconds does this method ...
Falzao's user avatar
  • 11
2 votes
0 answers
256 views

Track all process activity in real or near real time on Linux

I want to track the activity of processes. For processes, forks, file access, etc. should be tracked. Also files, data transfers, authentication events, authorization events, and similar. It should ...
WTP's user avatar
  • 21
4 votes
2 answers
7k views

How do I kill a Firefox process thrashing my computer? 18.04

In short: a Firefox process takes control of Ubuntu 18.04 LTS in my Acer TravelMate P, and it seems there's nothing I can do but to shutdown the computer. This is similar to https://superuser.com/...
Beta Ziliani's user avatar
0 votes
0 answers
1k views

Unable to stop VIM with Kill, Htop, or anything else

I'm running Ubuntu Bionic. I installed SLiM display manager so my GUI uses tty2 and I ran vim to edit some C++ code in tty1. Suddenly, it froze completely. I tried to type things but nothing would ...
Baaing Cow's user avatar
13 votes
1 answer
6k views

How to limit resource usage for a given process?

I have a process for an application which needs to run, but ends up using far too much IO usage for what it does. And really crashes my computer, making it impossible to do anything else whilst it is ...
user avatar
3 votes
1 answer
2k views

Issues with running Apache Certbot due to port already used for httpd.bin

My goal is to get SSL running on my server to run over HTTPS. I'm trying to run the command sudo certbot --apache to generate a certificate for my server as part of these steps https://certbot.eff.org/...
fuzzi's user avatar
  • 191
35 votes
3 answers
40k views

How to stop a bash while loop running in the background?

I started a while loop as follows: while true; do {command}; sleep 180; done & Notice the &. I thought when I killed the terminal, this while loop would stop. But it is still going. It has ...
Saqib Ali's user avatar
  • 845
1 vote
1 answer
9k views

How to find process name?

Does every service that is active running have a process that can be seen by ps command on linux? If yes, how can I find the related process name? For example if ntp is running, should I see it by ...
Ana's user avatar
  • 11
1 vote
1 answer
4k views

How to respawn automatically a process(wso2am)?

I have an upstart script as # Ubuntu upstart file at /etc/init/wso2am.conf #!upstart description "wso2am" pre-start script mkdir -p /var/log/wso2am/ end script respawn respawn limit 15 5 ...
VIVEK-MDU's user avatar
1 vote
1 answer
348 views

killing the bash interpreter

Im trying to kill /bin/bash but when I do ps aux | grep "/bin/bash" and I kill the pid associated with it, it gaves me an error. Any help is greatly appreciated. Also can you tell me what's the ...
PostMaloneM3m3r's user avatar
2 votes
2 answers
1k views

Sending SIGSTOP or SIGCONT signals graphically (similar to xkill)

Question Do you know any tool/script to send SIGSTOP (to pause a process) or SIGCONT (to resume it) to a process by clicking on a graphical window generated by the process? Some context There is ...
GeekInDisguise's user avatar
7 votes
3 answers
3k views

How can I list running bash scripts by the name of the script?

ps returns bash as the name of the process... I would like the name of the shell script instead. For instance, if my script is TestEric.sh, I would like to list the number of instances of that script ...
Eric Mamet's user avatar
0 votes
0 answers
203 views

How do I look for a specific process and skip if it's not running?

I wanted to stop a particular process and proceed further, also if the same process is not running just wanted to print a message saying this process is not running and proceed further. How do I do ...
Venkat's user avatar
  • 1
1 vote
0 answers
2k views

cupsd is consuming 100% cpu and creating large (832GB+) logs

I'm using ubuntu 16.04 LTS.When I was running ambari-server,cloudera image in docker container and apache hadoop the system was not responding anymore.One fine day I observed that my total hard disk ...
sai krishna's user avatar
1 vote
1 answer
198 views

Run second screen process after first screen process complete?

Is it possible to start a screen process, but let it wait for another running screen process to complete? Basically creating two screen processes like so: screen -S myfirstprocess screen -S ...
Socrates's user avatar
  • 2,473
2 votes
2 answers
135 views

How to perform process handling routines on a Ubuntu machine on a Windows system

On my Windows 10 machine, I've installed a Ubuntu system (as a Trusted Microsoft Store app). When I open that window and type help, these are the first lines I see: GNU bash, version 4.3.48(1)-...
Dominique's user avatar
  • 427
3 votes
1 answer
44 views

When you direct output to a file, is that file opened and closed exactly once?

When you redirect the output of a command to a file using >, and that process takes a while (like apt-get update) will the file being written to be opened and closed only once for the entire ...
user8897013's user avatar
3 votes
2 answers
5k views

Why are instances of gnome-settings-daemon always running?

I have noticed recently that there are always instances of gnome-settings-daemon running as processes, why is this? And is it safe to disable them? The explanation from the GNOME Wiki is: [...] ...
James's user avatar
  • 55
7 votes
1 answer
4k views

What is the difference between cat /etc/services and service --status-all?

I would like to know the difference between these commands to show linux services: cat /etc/services and service --status-all
Esteban Mejía's user avatar

1
3 4
5
6 7
16