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
The way I would solve this (with my fairly rudimentary linux skillz) is to make an alias to the shell script.
First ensure the shell script is executable.
Then, edit your
Add this towards the bottom. (I think you can also add this in a specific alias file, such as
To save changes to your
On Ubuntu, it is possible to create a bin folder in your home folder and place your user scripts in there. Indeed, your
After you have created your bin folder you must logout and login again for
The bin folder does not need any special permissions, and if you just want your user to be able to execute the scripts enter
Your new output of
You can place your scripts in
However, it is important to note that if you have more than one user on your system and you want the script to be available for them all, you would definitely need to put it in
The usual location to install local scripts is
These directories are usually included if the corresponding