Skip to content

Instantly share code, notes, and snippets.

@chege-kimaru
Last active June 7, 2022 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chege-kimaru/ae97fb991004030c5013bfc5986766d2 to your computer and use it in GitHub Desktop.
Save chege-kimaru/ae97fb991004030c5013bfc5986766d2 to your computer and use it in GitHub Desktop.
kill process running a port command
kill process on port - sudo kill -9 $(lsof -t -i:4200 -sTCP:LISTEN)
fix partition - ntfsfix /dev/sda8
mount partition - sudo mount -t ntfs-3g -o rw /dev/sda8 /media/kevin
shorten cmd path - PROMPT_DIRTRIM=1
docker system df
docker system prune --volumes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment