Handy Linux Commands

By | June 17, 2014

ps -eaf | grep nginx

Used to determine where the process is using config files from. If you need to know where NGINX is pulling its command from, run this command. You can change ‘nginx’ to tomcat or apache or whatever you may need to find.

lsof -i TCP:80

Used to determine open files being used from specific ports. In this case, any file being used by port 80 will be shown in the list.