Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Script help

OP Valiceemo

4th April 2014, 01:12 PM   |  #1  
Valiceemo's Avatar
OP Senior Member
Thanks Meter: 12
 
249 posts
Join Date:Joined: Jan 2014
More
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
5th April 2014, 08:05 PM   |  #2  
Valiceemo's Avatar
OP Senior Member
Thanks Meter: 12
 
249 posts
Join Date:Joined: Jan 2014
More
Still struggling here!

Sent from my LG-D802 using Tapatalk
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes