Here are some commands to set the volume in Ubuntu using PulseAudio.
Set the volume to 0.
Set the volume to 50%.
Set the volume to 100%.
Mute the volume. – This is not the same as setting the volume to 0. If you use mute, then you can unmute to return to the previous volume level.
Unmute the volume.
Display the current volume level.