Linux command error
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all) That’s the error message I get on Linux after this command: netstat -antp | grep Apache |
And what is unclear with it?
|
For the -p option to work, you'll have to run it as root. Also the grep part ought to search for a lower case 'apache' or else use the -i option.
|
1. ss, which is a modern replacement for netstat, won't display this error message ;).
2. What netstat -antp | grep Apache is supposed to show? The netstat option -n is short for --numeric-hosts --numeric-ports --numeric-users. Your grep expression will match nothing (not to mention that the names are probably lowercase). BTW, the name of Apache binary is httpd (if that's what you were trying to match) . |
The Apache process is called "httpd."
|
Quote:
Code:
$ pgrep -lx apache2 Code:
$ pgrep -lx apache2 |
Quote:
|
I always use 'grep -i' ;)
|
All times are GMT -5. The time now is 11:42 PM. |