|
03/10/2012, 04:36 PM
#1
Commander (since v0.0.6) supports 'command library' - simple oneliners and scripts that can be executed quickly by selecting command from list.
Currently these scripts are included (check /media/internal/appdata/xx.commander/lib after Commander v0.0.6+ is first time launched):
disk usage (USB partition)
du -h -d 1 /media/internal
disk usage (current directory)
du -h -d 1 .
memory usage
free
echo ""
ps aux | head -1 | awk '{print $2,$5,$6,$11}'
ps aux | awk '{if ($5 != 0 ) print $2,$5,$6,$11}' | sort -k2 -n -r
files greater than 10MB
find . -type f -size +10000k -exec du -h {} \;
files greater than 100MB
find . -type f -size +100000k -exec du -h {} \;
snapshot of the current processes
ps -ef
find duplicate files
...16 lines long script...
clear Adobe Reader's cache
rm -rf /media/internal/appdata/com.quickoffice.ar/.cache
clear Quickoffice's cache
rm -rf /media/internal/appdata/com.quickoffice.webos/.cache
It is possible to add your own commands after installation - simply add them into lib directory (with special comment line as first line - see existing files).
There are some limitations and special requirements for syntax and some restrictions due to service running as prisoner in jail ... so if you have ideas and suggestions - any useful non-interactive action that you want to have - feel free to post it here. If doable with given restrictions - will be included in next version of the library...
|
|
|