Most of the commands in Ubuntu and Debian can be executed jointly. Sometimes there are commands that work differently between them. However, learning any command in Debian applies to any distribution based on it.