Recently when I was sitting on my couch in the living room, I have realised that the iTumes running on my iMac (which is in a different room) is playing bit too loud. As it was too comfortable to get up and go to the machine to reduce the volume I found an easy method using the OS X terminal. Here is how I did it.
Connected to the iMac using ssh from my laptop.
Entered the following code
osascript -e 'set volume output volume 10'
Here the volume scale is from 0 to 100.
That’s all.