Skip to main content
I prefer text when an image is not needed
Source Link
tshepang
  • 67.7k
  • 94
  • 226
  • 297

I am using putty to connect my linux server which my sites are in. I can run

# ps aux | less

to show running processes. But I want to display which files running these processes ?

I have also tried

# ps aux | grep <pid>

But getting this error.:

enter image description here

-bash: syntax error near unexpected token `newline'

What is the correct way to do it  ?

I am using putty to connect my linux server which my sites are in. I can run

# ps aux | less

to show running processes. But I want to display which files running these processes ?

I have also tried

# ps aux | grep <pid>

But getting this error.

enter image description here

What is the correct way to do it  ?

I am using putty to connect my linux server which my sites are in. I can run

# ps aux | less

to show running processes. But I want to display which files running these processes ?

I have also tried

# ps aux | grep <pid>

But getting this error:

-bash: syntax error near unexpected token `newline'

What is the correct way to do it?

edited tags
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k
Post Migrated Here from stackoverflow.com (revisions)
Source Link
user198989
user198989

Show running processes with file name(s)?

I am using putty to connect my linux server which my sites are in. I can run

# ps aux | less

to show running processes. But I want to display which files running these processes ?

I have also tried

# ps aux | grep <pid>

But getting this error.

enter image description here

What is the correct way to do it ?