HomeAbout

Local Process

Local Process

# show all localhost processes lsof -i @localhost # ps ps # show active processes # show all processes matching process_name ps x | grep process_name # show active process_num on a port_num lsof -i :port_num # find process_number by port number lsof -i :8001 fuser 8001/tcp

Foreground

foreground = bring background cli run to show up in cli

fg

Kill Process

#Kill the specified process_number pkill process_number # Force kill the process_number kill -9 process_number

Network Level Operations

# download a file from the internet wget http://sample.com/sample-menu.php

Find local machine IP Address

ipconfig getifaddr en0 ipconfig getifaddr en1

Get localhost ip

ping localhost telnet localhost

Machine Level Operations

# free free ## check for memory RAM on your system ## to check the memory statics of the Linux operating system. # In MacOS, the counterpart would be: vm_stat
AboutContact