Tuesday, January 13, 2009

Linux Beginner Series ..Create your Own Command with Symbolic link

particularly we need to compose our command such as batch in Win platform. This is this simplest way to create our own command in linux, using the symbolic link command in linux. For example, I want to create a symbolic link in my /usr/local/bin directory called mendem that symbolically links to /usr/local/YourFunApps
  • First you may open your terminal, go to the local bin directory by entering this.
    you@yourcomputer:~$ cd /usr/local/bin
then Enter;
  • Point your symbolic link that you refers to by entering this command
    you@yourcomputer:~$ ln -s /usr/local/YourFunApps mendem
  • you'll might find your own command marked by arrow text after your symbolic link successfully been created
    you@yourcomputer:~$ ls -l /usr/local/bin
    you@yourcomputer:~$ lrwxrwxrwx mendem 46 May 30 13:59 mendem -> /usr/local/YourFunApps
That The last two commands are just to demonstrate that the link was created




No comments :