Linked Questions

30 votes
3 answers
139k views

How to put executable to /usr/local/bin? [duplicate]

I realise this is basic but I have read two pages of google answers and am still unclear 'How to put executable in /usr/local/bin?' I have downloaded a package and made the executable called profit. ...
15 votes
3 answers
86k views

Launch shell scripts from anywhere [duplicate]

Is it possible to run my scripts located in ~/scripts from anywhere? Say i want to run ./scriptname regardless of my current working directory.
  • 4,602
10 votes
3 answers
38k views

How to add shell script to my linux system [duplicate]

I have shell script for monitoring local area traffic for my system. Now I want to install it, and want to run like other unix command
  • 323
7 votes
3 answers
11k views

How to create my own terminal commands [duplicate]

I know how to create my custom terminal commands and that would be really useful for me in compiling all my java classes in a folder. I also see that for doing this people usually creates a folder ~/...
5 votes
3 answers
13k views

How to run a program without typing the full path? [duplicate]

System utilities such as ls don't need to have the full path typed before executing them. However, to execute Netbeans, I have to type /home/chris/netbeans-7.0.1/bin/netbeans. How can I make it so ...
  • 5,299
1 vote
1 answer
40k views

Launching Android Studio from Terminal [duplicate]

I've downloaded and installed Android Studio and also added the path to my .bashrc export PATH="~/android-studio/bin/:$PATH" What I'm looking at now is that one command which will launch android ...
  • 219
4 votes
4 answers
1k views

Is it possible to create commands, put it in one file and run without "./"? [duplicate]

If I create a script in a file like this: #!/bin/bash echo "test" As far I know (as a newbie) is to put it in some folder then make it executable with chmod +x myscript and then execute it with ...
  • 1,261
5 votes
2 answers
9k views

How to add a script to command list [duplicate]

I am using sage a math library in python. After downloading its package, I usually have to go to the directory where I extracted it and then run the the script using sudo ./sage from terminal. How ...
3 votes
4 answers
4k views

Run bash script using name [duplicate]

I'm new to bash scripting and made one for my VPN called myvpn.sh Instead of doing ./myvpn.sh I want to just write myvpn in terminal and it will run it from any directory. Tried searching Google for ...
  • 33
1 vote
2 answers
7k views

How to run sh file from terminal? [duplicate]

I installed Viber on Ubuntu: /home/nazar/Software/Viber/Viber.sh I can run it from terminal specifying this path. I want to achieve some short command as: viber For lunching application. How to ...
  • 1,194
5 votes
3 answers
2k views

How to access a text file from anywhere in terminal [duplicate]

I have two files. file1 is executable and file2 is just a text file and I use them frequently but I have to do cd every time to reach the directory. How can I make file1 universally executable in ...
  • 1,615
1 vote
2 answers
4k views

How to run a script from terminal [duplicate]

Hi I would like to run a script from the terminal, is there anyway to do that? For example : if I have a python script I would normally run it with this command : python script.py How can I run ...
  • 175
0 votes
2 answers
4k views

Execute a binary file [duplicate]

When I want to execute a binary file or program which is named as vtmc.ubu.ifc, I have to use the terminal to go to that bin folder where the program exists and have to execute the program by ./vtmc....
3 votes
2 answers
5k views

How do I map a command to a file path [duplicate]

I am new to Linux. I have read the basic docs. I have just installed Filezilla. I first tried apt-get but the repository does not appear to be up to date. I then downloaded it from the Filezilla web ...
0 votes
2 answers
1k views

Run a script from every directory on ubuntu linux [duplicate]

I am new to Linux. On my Desktop, I have created the following script called trimmomatic #!/bin/bash java -jar /home/aishah/software_library/Trimmomatic-0.36/trimmomatic-0.36.jar When I open a ...

15 30 50 per page