1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Rep Power

    Help with Alias in Unix

    Hi Everyone,

    I am having some difficulties with my assignment about using alias in Unix. Any help or assistance would be greatly appreciated.

    Create an alias called whopw

    alias whopw='ypcat passwd | grep `whoami`'

    When executed, will the alias output your entry from the ypcat passwd file?

    -Thanks in advance.
  2. #2
  3. Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2006
    Rep Power
    Dare I ask what happened when a) you tried the command directly and b) when you tried it via the alias?
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc

IMN logo majestic logo threadwatch logo seochat tools logo