Docker remove dangling images: docker rmi -f $(docker images --filter='dangling=true' -q). Find and replace: find . -type f -name '*.txt' -exec sed -i '' s/this/that/ {} +. Find pid of something running on : lsof -i :port.