Snippets

Erwin Goossen Handy command line commands

Created by Erwin Goossen last modified
1
2
3
4
5
// Find and list all files with a pattern
find . -name "._*" -type f

// When adding `-delete` they will be deleted instantly
find . -name "._*" -type f -delete
1
2
3
4
5
6
7
8
// When an address is in use and you do not know which process it is use the next command
// Replace $PORT with the port you want to check
lsof -n -i4TCP:$PORT | grep LISTEN

// Then kill it with
sudo kill -9 $PID


Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.