![]() ![]() That is the only string that was matched in the output of ps, in other words, grep command itself is the only one on that list. result of ps -ef grep Ask Question Asked 7 years, 8 months ago Modified 7 years, 8 months ago Viewed 8k times 0 I'm new to Ubuntu and I've problem with port 6703 i executed this command ps -ef grep 6703 and got this result user 4378 4308 0 09:40 pts/2 00:00:00 grep -colorauto 6703 but can't understand what does that mean 12. The output of this command gives information on the PID ( process ID ), the TTY (terminal), the TIME (cumulative execution time), and the CMD (command name). Lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfsįirefox 2491 xieerqi 65u IPv4 1948841 0t0 TCP eagle:58732->104.16.113.188:http (ESTABLISHED)Īs to why your command returned user 4378 4308 0 09:40 pts/2 00:00:00 grep -color=auto 6703 The ps -ef command in Linux is a system administration command that is used to report a snapshot of the current processes. Same for lsof, if I want to check a specific port, like 58732 sudo lsof | grep ":58732" Abhishek Prakash What is ps command in Linux The ps command in Linux displays running processes on the system. Here are some useful examples of the complicated and extensive ps command. The more appropriate command to use is netstat or lsof.įor instance, if I want to see whether or not my ssh server is listening on port 22, I can do this: sudo netstat -tulpan | grep ":22" The ps command in Linux is used for getting information about running processes. Ps doesn't show network ports, at least not to my knowledge.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |