Tagged Questions
18
votes
4answers
2k views
Why do we use “./” to execute a file?
Why do we use ./filename to execute a file in linux?
Why not just enter it like other commands gcc, ls etc...
8
votes
1answer
413 views
How to run my own program without specifying its path
Let's suppose I have compiled something and I run it like so:
$ /path/to/my/executable/mycmd
Hello World
What do I need to do to run it like
$ mycmd
Hello World
from everywhere in my computer?
...
6
votes
1answer
154 views
Bash executes a different file from the one prompted, even when providing full path
I imagine there's a environment variable or some setting I'm unaware of, but this is driving me nuts.
baco:~ # ls -la /root/subversion-1.4.6/subversion/svnadmin/.libs/svnadmin
-rwxr-x--- 1 ...
3
votes
2answers
2k views
Running python script from terminal without .py extension
I want to call a python script script.py from the terminal by simply typing script. Is this possible? If so, how?
I know I can avoid typing python script.py by adding #!/usr/bin/env python to the top ...
3
votes
2answers
969 views
Running C Programs on Linux
I watched a video lecture today that introduced C and things like how to make a C program that will run in Linux. I followed the steps given and now I'm stuck with a bit of a problem.
I created my C ...
1
vote
2answers
63 views
Executable located in location A how to run it in location B?
So, I've an executable in my debian server and this executable located in /home/human/ExecuteIt, still i cant figure it out how to run my executable in another location. In my case it is ...
0
votes
1answer
334 views
Cannot execute binary file on Mac OS X Lion 10.7.5
I want to execute phylocon on a mac OS X lion but after changing the path and making the file executable, I get the error 'cannot execute binary file'. But the steps that I took to running the command ...