chenquan / diskusage

💥A tool for showing disk usage(Linux, MacOS and Windows), it is a very fast utility to find largest directories or files.
Apache License 2.0
275 stars 5 forks source link

Unable to run in different directories #45

Open SonGokussj4 opened 2 years ago

SonGokussj4 commented 2 years ago

I've downloaded the tar, unpacked and moved the executable (Rocky Linux 8.6) into my ~/bin folder. When I run it anywhere, nothing happens (diskusage -h works) unless I go to ~/bin folder and run it there.

If I want to check diskusage of /my/interesting/path, I would need to copy this file into that path and then run it there.

chenquan commented 2 years ago

Thank you for your attention and use, it may be that there are many files, so it takes a long time to run.

chenquan commented 2 years ago

@SonGokussj4 Hi! my friend. Have you solved your problem?

SonGokussj4 commented 2 years ago

It behaves... Interestingly.

I'm not sure what's happening but I'm missing some error/exception/logging management that tells me where is the problem, why it didn't even start to gather info.

Oh and when it ends, it returns classical 1, so no error code.

chenquan commented 2 years ago

Try using sudo diskage

SonGokussj4 commented 2 years ago

It works with sudo.

But that shouldn't be the way it works. If I needed to do that for testing purposes, that's ok. But this kind of program should, even partly, without sudo.