In Linux go to root folder of your application and write something like:
build means build.gradle actually, or something like ./gradlew assembleDebug, with that you will build application with debug type. Check the source in /app/build.gradle.
After building we can install application with command like:
-d Direct an adb command to the only attached USB device.
-r Reinstall an exisiting app, keeping its data.