Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,779,023 Members 44,088 Now Online
XDA Developers Android and Mobile Development Forum

Script help

Tip us?
 
Valiceemo
Old
#1  
Senior Member - OP
Thanks Meter 11
Posts: 219
Join Date: Jan 2014
Default Script help

I'm trying to write a script to check the size of a directory on my sdcard. Playing around in terminal emulator I can't figure it out.
With this command.
du -h /storage/sdcard/backups

I get an error saying.
usage: du [-H | -L | -P] [-a | -d depth | -s] [-cgkmrx] [file ...

If I use -H
It gives me an output but it doesn't correlate with what's in the folder?

Am I doing something wrong?

Sent from my LG-D802 using Tapatalk
 
Valiceemo
Old
#2  
Senior Member - OP
Thanks Meter 11
Posts: 219
Join Date: Jan 2014
Still struggling here!

Sent from my LG-D802 using Tapatalk
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes