commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
the system will display device manager command line utility, dns statistics, v
This will list your phone's filesystem with bitpim. (works on many LG, Samsung, and Sanyo)
See http://www.bitpim.org/help/phones-featuressupported.htm for full list.