Make a bash script accesible from anywhere in the system
1) Create script in /bin or /.bin 2) #!/bin/bash at the beginning of each script 3) $ chmod u+x 4) Export path $ export PATH=$PATH:/home/username/bin 5) to make it permanent - write the command on .bashrc, open file /home//.bashrc
No comments:
Post a Comment