how to change commands in unix?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rashmiraj
    New Member
    • Sep 2007
    • 11

    how to change commands in unix?

    can any one help me to change the unix commands like we are using "cp" for copying the flies now i have to change it as cpy or copy.... please help me...
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    You want to look at the alias command.

    Regards,

    Jeff

    Comment

    • ashitpro
      Recognized Expert Contributor
      • Aug 2007
      • 542

      #3
      'cp' binary usually present in /bin directory.
      You can create the symbolic link for this binary with some other name..
      look for the 'ln' command

      Comment

      • numberwhun
        Recognized Expert Moderator Specialist
        • May 2007
        • 3467

        #4
        Originally posted by ashitpro
        'cp' binary usually present in /bin directory.
        You can create the symbolic link for this binary with some other name..
        look for the 'ln' command
        To that end, if you choose to use the ln command instead of alias, remember to use the -s option, otherwise you will create a hard link and you don't want to really do that.

        Regards,

        Jeff

        Comment

        • mlpkumar
          New Member
          • Oct 2008
          • 4

          #5
          you can write an alias for any command , and put it in .bashrc..

          Comment

          • numberwhun
            Recognized Expert Moderator Specialist
            • May 2007
            • 3467

            #6
            Originally posted by mlpkumar
            you can write an alias for any command , and put it in .bashrc..
            Thus, was my point.

            Regards,

            Jeff

            Comment

            Working...