Find disk usage sorted by size
Jul 11, 2023·1 min read
To find all folders and it's disk usage sorted by size, you can use the following cmd
du -ck | sort -nTo find all files in a folder and it's size,
ls -l --block-size=MBor
ls -lhJul 11, 2023·1 min read
To find all folders and it's disk usage sorted by size, you can use the following cmd
du -ck | sort -nTo find all files in a folder and it's size,
ls -l --block-size=MBor
ls -lhJul 6, 2023·1 min read
you can execute the following cmd to find the process which occupies a specific port in linux.
sudo lsof -i :<port_number> -t | xargs ps -o pid,user,cmd -pFeb 5, 2021·1 min read
We can configure aliases very easily in bash or zsh. but those aliases are global to all directory. sometimes we need aliases or commands…
Nov 8, 2020·1 min read
Remembering the branches and all the available commands are daunting work in git. what if the commands auto-completes itself like shown in…
Jan 18, 2020·1 min read
I have been using VS code and cmdline for git. But I always miss something. Autocompletion is not perfect in cmdline and GIT tower is bit…