Tag Archives: command

Useful Linux Commands

List processes sorted by memory usage:

ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS

Check which process uses an input port:

sudo netstat -tulpn | grep :input_port

Output the md5 of each file to the defined filename:

find * -type f -exec /usr/bin/md5sum {} + > output_filename

View opened file descriptors by pid:

lsof || /usr/sbin/lsof -P -n -p input_pid