how to install android sdk tools in ubuntu using command line

C++
$ export PATH=/opt/android/tools:/opt/android/tools/bin:$PATH
Source

Also in C++: