git clone git clone https://github.com/kitex/diskusage.git
cd diskusage
go mod init main
get golang.org/x/sys/unix
set GOOS=linux
go build -o diskusage //If building for current system just use this line only
sudo ./diskusage -mount="/" -sort="diskusage"
-mount
- argument is for mount point
-sort
- argument for sorting by diskusage or mount point.
- The default is sort by mount point *
Sometime files cannot be read due to system file or transient files. These files which are not read (specially in / mount point) are written in log file called execution.log
sudo ./diskusage -mount="/" -sort="diskusage"
🤝 Connect with me: https://www.linkedin.com/in/sugandha-amatya/
- React Project
- Clickhouse
- My Health
- My Linux Skill / Azure / DevOps
- My SRE skill
- 📱 React Native
- Clickhouse
- Prometheus
- Reliability
- GoLang