Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, The title is probably misleading but heres what i want im trying to do: Lets say i create a script called fish and store it in e.g. /home/me, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    2

    Adding a script for everyone


    Hi all,

    The title is probably misleading but heres what i want im trying to do:

    Lets say i create a script called fish and store it in e.g. /home/me, is there any way that i can call that script simply by typing 'fish' rather than typing /home/me/fish?

    Sorta like when u want to call iptables, u can just type 'iptables' rather than '/sbin/iptables'

    Any help is greatly appreciated, thanks

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    You need to put the script somewhere in your path e.g. /usr/local/bin, /home/me/bin etc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •