Created
May 16, 2019 15:29
-
-
Save pictolearn/75fd74a2f8580d6388e16d919ce9f4f8 to your computer and use it in GitHub Desktop.
UNIX_HELPER_COMMANDS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find out what is running on what port in linux | |
# Lists all ports | |
netstat -l | |
# Specify a port and find out which process is using it | |
netstat -ltnp | grep -w ':80' | |
# Look for what process is running on the unix box | |
ps -ef | grep <app-name> | |
Ex: ps -eg | grep nginx | |
#Notes on the curl command | |
# -k is required if you are using https, remove it if that is not the case | |
# -v is | |
curl <url> -v -k | |
Ex: curl localhost:80 -v (Gives you the webserver running locally on your machine) | |
curl <ip-addr>:<port> -v (Gives you the output of any response received from server) | |
Note: This is as good as trying to run it from the browser. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment