+ 3

Can somebody tell me how to make a terminal app for linux

How to make a linux app and which language is necessary (i am comfortable with cpp) remember an app not a shell script or python script .

7th Oct 2017, 5:16 AM
DhruV
DhruV - avatar
10 Answers
+ 8
A compiled program can run in terminal, not just shell or python scripts. Write a hello world in C: # include <stdio.h> void main() { printf("Hello World!\n"); } Compile it in the Linux Terminal: $ gcc -o hello hello.c And run it like this: $ ./hello In order to run it from any directory, you must save it to the $PATH
7th Oct 2017, 5:39 AM
noobcøder
noobcøder - avatar
+ 7
Like any basic linux command? Run as root then move your app to /usr/bin All linux app( commands) are stored in there So yeah move it to there then test with terminal Have fun and don't make your computer broken <3
7th Oct 2017, 7:25 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 6
An application that runs from the terminal? Like vim, etc? Any executable (some.o file) kept in the directory /usr/local/bin can be directly run from the terminal by just typing its name. Read more info here: https://unix.stackexchange.com/questions/12391/how-to-run-my-c-program-from-anywhere-within-the-system-ubuntu-10-10
7th Oct 2017, 5:55 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
A mobile app? For which platform?
7th Oct 2017, 5:20 AM
Nick Nderitu
Nick Nderitu - avatar
+ 2
not a mobile app a linux terminal app which i can run in terminal and is not a shell script
7th Oct 2017, 5:21 AM
DhruV
DhruV - avatar
+ 2
Use QT5 which could build cross platform software using C++.
7th Oct 2017, 5:31 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
ok thanks buddie
7th Oct 2017, 5:33 AM
DhruV
DhruV - avatar
+ 2
I dont want to make a GUI app just want a terminal app which I can call from anywhere in terminal just like any basic linux command
7th Oct 2017, 5:44 AM
DhruV
DhruV - avatar
+ 2
thanks
7th Oct 2017, 7:51 AM
DhruV
DhruV - avatar