Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Alias in Unix  (Read 4810 times)

0 Members and 1 Guest are viewing this topic.

dgigga

    Topic Starter


    Starter

    • Experience: Beginner
    • OS: Windows 7
    Alias in Unix
    « on: October 22, 2013, 01:47:22 PM »
    Hi everyone,

    I am a newbie and working on my class assignment. 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!

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: Alias in Unix
    « Reply #1 on: October 22, 2013, 02:48:05 PM »
    Please do not use bold for the whole post.

    At a console you can type
    man alias
    at get concise information about alias.
    OR
    you can also search the internet the same way.
    Here is one of many

    Quote
    Ubuntu man pages alias[/url]
    DESCRIPTION

           The  alias  utility shall create or redefine alias definitions or write
           the values of existing alias definitions to standard output.  An  alias
           definition  provides  a  string value that shall replace a command name
           when it is encountered; see Alias Substitution .
    ...
    The CH forum does not do homework. Even a note from Mum.