Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 2774  / 2 Years ago, mon, june 20, 2022, 2:09:17

The /var/lib contains some unreadable contents, one of which is the mysql folder. I wanted to see the size of the /var/lib folder and the mysql folder in particular. Right-clicking on it and clicking on the "Properties" option gives me this:



The Properties dialog box



In case you need the specs:




  • Ubuntu 12.10

  • Nautilus 3.4.2



EDIT:



`du -sh /var/lib` gives me this:
du: cannot read directory `/var/lib/sudo': Permission denied
du: cannot read directory `/var/lib/tor': Permission denied
du: cannot read directory `/var/lib/udisks2': Permission denied
du: cannot read directory `/var/lib/php5': Permission denied
du: cannot read directory `/var/lib/openfire': Permission denied
du: cannot read directory `/var/lib/gdm': Permission denied
du: cannot read directory `/var/lib/lightdm': Permission denied
du: cannot read directory `/var/lib/polkit-1': Permission denied
du: cannot read directory `/var/lib/mysql': Permission denied
du: cannot read directory `/var/lib/libvirt/qemu': Permission denied
du: cannot read directory `/var/lib/libvirt/sanlock': Permission denied
du: cannot read directory `/var/lib/libvirt/images': Permission denied
du: cannot read directory `/var/lib/libvirt/boot': Permission denied
266M /var/lib


and sudo du -sh /var/lib gives this:



309M    /var/lib

More From » file-size

 Answers
6

sudo du -sh lib/ should do the job. It is showing the size greater than it shows in "Properties" window. root login is required as only root may be having access to some files. Hence the permission denied and unreadable content errors.


[#31682] Monday, June 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
leadprogres

Total Points: 298
Total Questions: 114
Total Answers: 139

Location: Samoa
Member since Mon, Nov 8, 2021
3 Years ago
;