Can i delete empty files and directories "/usr/"?

i want to delete empty files and directories for path "/usr/

#find /usr -type d -empty 
#find /usr -type f -empty 

for me found 550dirs 8456files
Can I run ?

#find /usr -type d -empty -delete
#find /usr -type f -empty -delete

Is this a safe command?
Is there a problem for the system?

1 Like

I wouldn’t do that, I see no benefits, that shouldn’t take a lot of space, as by definition these are empty. You would gain more space by deleting a MP3 file. On the other hand, it could be a problem, potentially, I don’t know but if this is a risk for basically no benefit, why would you?

2 Likes

Solely to accelerate the operating system

That wouldn’t do that.

2 Likes

That would be very unwise - the os is not going to get faster - you are getting trouble.

6 Likes

https://wiki.archlinux.org/title/Improving_performance

2 Likes

You may read further in:

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.