un and $un

Posted on 2012-09-16
Last Modified: 2012-09-16

I googled about this and I can't find it.

what is the difference between un and $un

thank you for your help.
Question by:bt1942
    LVL 84

    Expert Comment

    In what context?

    Author Comment

    in linux script
    LVL 68

    Accepted Solution

    un is a variable, $un represents the value of that variable.


    echo un

    -> un

    echo $un

    -> x
    LVL 84

    Expert Comment

    > in linux script
    You should be more specific.
    In what linux scripting language, and used in what way in the script?
    http:#a38403003 illustrates un as an lvalue, un a literal, and $un as an rvalue, as used in several common shell languages.
    In other contexts, un might be an rvalue, or $un might be an lvalue.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now