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

    Join Date
    Oct 2013
    Posts
    4
    Rep Power
    0

    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. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,481
    Rep Power
    1752
    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