In windows, I usually use Alt + Shift to change between keyboard layout. How can I achieve this in Ubuntu? I mean, what command I have to use keyboard shortcuts settings?
You can set the shortcut in your System Settings panel at Text Entry by entering your new accelerator keys (Alt+Shift) in the text field(s) "Switch to next/previous source using:"
Does that work for you or do you insist in a terminal command?