Skip to content

Instantly share code, notes, and snippets.

@its-dibo
Last active July 29, 2021 20:23
Show Gist options
  • Save its-dibo/c0961ed7a81db10e560621cc46fe0bd1 to your computer and use it in GitHub Desktop.
Save its-dibo/c0961ed7a81db10e560621cc46fe0bd1 to your computer and use it in GitHub Desktop.
# disk usage sort by size
# -h: human readable
du -h --max-depth=1 $path | sort -h
# current dir:
du -h --max-depth=1
# delete a directory
rm -r -f <dirName>
# get OS info
# run any of the following commands
cat /etc/os-release
lsb_release -a
hostnamectl
# clean a port (kill process)
sudo fuser -k 8080/tcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment