What made the first Command fail? I decided to clear my data usage stats on my Android in Settings &gt; Data Usage from the terminal emulator app, but the first command came back with the error "No such file or directory".

The first command: rm /data/system/netstats/*

The same command that worked: rm /data/system/netstats/*

Here's a screenshot of what happened.



I'm running the supernexus custom ROM on android 4.4.2 on my Samsung Galaxy S3-19300

I was sure of the directory to clear of the stats but had to try a different directory in the latter commands, and the same command worked fine in the last line, what could've caused this?
Hard to tell for sure without "direct access", but here are the most likely answers:


there are no files in that directory, so nothing to remove
you cannot use rm to remove directories (that's what rmdir is for)
that will most likely fail as well, since /system is usually mounted read-only ;) 
the original command succeeded at last: most likely some file was created there in the meantime.