Some Useful Bash Commands to Help You At Work

05 Aug 2012

There are some routines I do frequently with command line utilities on Linux. But I do not always remember them. Here are some notes for myself:

# rename every file with `.svg` suffix to `.xml` suffix 
$ find . -name "*.txt" -print | xargs rename 's/.svg/.xml/g'

# check CPU utilization
$ mpstat -P ALL

# check disk capacity
$ df -h