Skip to content

Instantly share code, notes, and snippets.

@jaimeivan
Last active December 2, 2023 18:20
Show Gist options
  • Save jaimeivan/171f7b9856f531dfeaee6594bc06c3f6 to your computer and use it in GitHub Desktop.
Save jaimeivan/171f7b9856f531dfeaee6594bc06c3f6 to your computer and use it in GitHub Desktop.
Comandos para la terminal de OSx

Para renombrar ardchivos de un directorio a minúsculas

for f in *; do mv "$f" "$f.tmp"; mv "$f.tmp" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done

Ver que proceso está ocupando cierto puerto

ref: https://stackoverflow.com/a/4421674/2499084

sudo lsof -nP -iTCP:[puerto] | grep LISTEN

Matar procesos que corren en cierto puerto

sudo lsof -t -i tcp:[puerto] -s tcp:listen | sudo xargs kill 

Ver el modelo del procesador

sysctl -n machdep.cpu.brand_string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment