|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Member
Iscritto dal: Nov 2010
Messaggi: 33
|
Spazio occupato su hd esterno
Ciao a tutti,
su un router fonera ho collegato un hd su porta usb (hd wd scorpio 250 GB) se esguo il comando df per vedere lo spazio libero e occupato ho questo risultato: Codice:
Filesystem 1k-blocks Used Available Use% Mounted on /dev/sda1 225.5G 71.8G 142.0G 34% /tmp/run/mountd/sda1 Codice:
root@Fonera:~/run/mountd/sda1# du -sh * 10.0G Pvr 4.0k View.xml 4.0k android.pub 768.0k bin 4.0k happyelly.txt 4.0k id_dsa.pub 4.0k opkg.conf 128.1M opt 4.0k profile 6.2M usr 4.0k woggle 4.0k woggle.txt 2.4M xBot |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Feb 2006
Città: Parma
Messaggi: 3010
|
du -sh * non analizza cartelle e file nascosti (nome che inizia con un .). Magari c'è molta roba lì dentro.
Per controllare la dimensione dei soli file/cartelle nascosti: Codice:
du -sh /tmp/run/mountd/sda1/\.??* Codice:
ls -la /tmp/run/mountd/sda1
__________________
~Breve riferimento ai comandi GNU/Linux (ormai non molto breve...) Ultima modifica di Gimli[2BV!2B] : 07-09-2013 alle 12:52. |
|
|
|
|
|
#3 | |
|
Member
Iscritto dal: Nov 2010
Messaggi: 33
|
Quote:
Codice:
du -sh /tmp/run/mountd/sda1 /\.??* root@Fonera:~/run/mountd/sda1# du -sh /tmp/run/mountd/sda1 /\.??* 10.1G /tmp/run/mountd/sda1 0 /.ssh ls -la /tmp/run/mountd/sda1 root@Fonera:~/run/mountd/sda1# ls -la /tmp/run/mountd/sda1 drwxr-xr-x 8 root root 4096 Sep 7 12:54 . drwxr-xr-x 3 root root 0 Sep 7 12:58 .. drwxr-xr-x 3 root root 8192 Jun 21 18:06 Pvr -rwx------ 1 root root 96 Apr 21 22:14 View.xml -rwx------ 1 root root 591 Mar 5 2013 android.pub drwxr-xr-x 2 root root 4096 Mar 10 17:42 bin drwxr-xr-x 2 root root 4096 Sep 7 12:54 downloads -rwx------ 1 root root 2269 Apr 23 23:56 happyelly.txt -rwx------ 1 root root 602 Mar 1 2013 id_dsa.pub -rwxr--r-- 1 root root 368 Feb 23 2013 opkg.conf drwxr-xr-x 9 root root 4096 Feb 17 2012 opt -rwxr--r-- 1 root root 589 Feb 23 2013 profile drwxr-xr-x 5 root root 4096 Dec 2 2009 usr -rwx------ 1 root root 349 Mar 1 2013 woggle -rwx------ 1 root root 349 Mar 1 2013 woggle.txt drwx------ 4 root 1000 4096 Sep 6 17:57 xBot |
|
|
|
|
|
|
#4 |
|
Member
Iscritto dal: Nov 2010
Messaggi: 33
|
|
|
|
|
|
|
#5 | |
|
Senior Member
Iscritto dal: Feb 2002
Messaggi: 2511
|
Quote:
per vedere le dimensioni dei files. Se fosse installato (dubito) ncdu e' comodo per queste operazioni. |
|
|
|
|
|
|
#6 | |
|
Member
Iscritto dal: Nov 2010
Messaggi: 33
|
Quote:
ho installato ncdu e lanciandolo da mi da Codice:
ncdu 1.7 ~ Use the arrow keys to navigate, press ? for help
--- /tmp/run/mountd/sda1 -------------------------------------------------------
10.0GiB [##########] /Pvr
128.2MiB [ ] /opt
6.2MiB [ ] /usr
2.4MiB [ ] /xBot
768.0kiB [ ] /bin
e 4.0kiB [ ] /downloads
4.0kiB [ ] happyelly.txt
4.0kiB [ ] id_dsa.pub
4.0kiB [ ] android.pub
4.0kiB [ ] profile
4.0kiB [ ] opkg.conf
4.0kiB [ ] woggle.txt
4.0kiB [ ] woggle
4.0kiB [ ] View.xml
Total disk usage: 10.1GiB Apparent size: 10.1GiB Items: 11081
|
|
|
|
|
|
|
#7 |
|
Senior Member
Iscritto dal: Feb 2002
Messaggi: 2511
|
ncdu e' interattivo: sposta il cursore sulla prima voce -> dai invio -> verifica dentro la prima voce cos'e' che effettivamente occupa spazio -> ... -> usa canc per cancellare
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 10:11.




















