+ 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 .
9 Antworten
+ 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
+ 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
+ 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
+ 2
A mobile app? For which platform?
+ 2
not a mobile app a linux terminal app which i can run in terminal and is not a shell script
+ 2
Use QT5 which could build cross platform software using C++.
+ 2
ok thanks buddie
+ 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
+ 2
thanks