New answers tagged

0 votes

How to kill MY OWN idle ssh sessions

Don't run pkill sshd on a remote server, or you won't be able to reconnect: ssh: connect to host yourdomain.com port 22: Connection refused. Instead: Run w. Find your idle command in the last column (...
Alex's user avatar
  • 101
0 votes

Where does the signal that causes EINTR come from?

Signals that cause a system call to return EINTR come from where signals normally come from. The behavior you describe can be caused by any signal that is caught by a signal handler. I interpret your ...
Johan Myréen's user avatar
0 votes

killall gives me `no process found ` but ps

Setting the name of the main thread with pthread_setname_np call will also cause killall and other command to fail even if the name of the process will stay the same with ps: pthread_setname_np(...
fededevi's user avatar
  • 101
0 votes

Create tree of processes

I'd suggest taking a snapshot of the processes currently running on the system. The absolute minimum that you'd need is each PID and its corresponding PPID: ps -ax -o pid=,ppid= This will give you ...
Kusalananda's user avatar
  • 323k
3 votes
Accepted

How to list process with their depth?

On my OpenBSD system (also tested on Ubuntu): $ ps -o pid=,ppid=,command= -ax | awk '{ parent[$1] = $2; cmd[$1] = $3 } function depth(p) { if (p == "" || p == 1) return 1; else return depth(...
Kusalananda's user avatar
  • 323k
0 votes

Can not stop nohup process

In my case, I was protecting laravel using nohup. I had to also kill the process bound to the port use fuser 8080/tcp (change the port based on your own) and kill the PID found there.
Aminah Nuraini's user avatar
0 votes

How to view a specific process in top

When your top does not know the -p option (top: invalid option -- 'p'), then you can get a similar result using the batch mode with -b: top -b | grep java
not2savvy's user avatar
  • 225
2 votes
Accepted

Why does Linux needs both pid_max and threads-max?

These settings don’t have the same effect: threads-max limits the number of processes which can be instantiated simultaneously pid_max limits the identifier assigned to processes threads-max limits ...
Stephen Kitt's user avatar
1 vote

Can ps display only non kernel processes on Linux?

Although the question has aged a bit, there is an interesting new approach: Since version 4 of the procps package, you can set the environment variable LIBPROC_HIDE_KERNEL. If set, ps(1) and top(1) ...
Bjorn Fischer's user avatar
1 vote
Accepted

How could we get the USS of a process

The answer to Getting information about a process' memory usage from /proc/pid/smaps includes the instruction to do so. It doesn't hand out the exact command for USS specifically, but it provides all ...
aviro's user avatar
  • 3,895

Top 50 recent answers are included