Find the answer to your Linux question:
Results 1 to 6 of 6
Hi all, can someone let me know what is the difference between UMASK and UNMASK? Thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2004
    Posts
    17

    UNMASK


    Hi all,


    can someone let me know what is the difference between UMASK and UNMASK?

    Thanks

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    As far as I know (please correct me if I am wrong) but uNmask doesn't exist, while umask is a utility that helps one mask things, or as the manpage says:
    Quote Originally Posted by manpage
    DESCRIPTION
    The umask utility shall set the file mode creation mask of the current
    shell execution environment (see Shell Execution Environment ) to the
    value specified by the mask operand. This mask shall affect the initial
    value of the file permission bits of subsequently created files. If
    umask is called in a subshell or separate utility execution environ-
    ment, such as one of the following:


    (umask 002)
    nohup umask ...
    find . -exec umask ... \;

    it shall not affect the file mode creation mask of the caller's envi-
    ronment.

    If the mask operand is not specified, the umask utility shall write to
    standard output the value of the invoking process' file mode creation
    mask.
    For more information on umask read
    Code:
    man umask
    dylunio
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Just Joined!
    Join Date
    Oct 2004
    Posts
    17
    Hi dylunio,

    I also have heard only about UMASK but recently in an interview they asked me about UNMASK, and i was stumped....

    What other members have to say????

  4. $spacer_open
    $spacer_close
  5. #4
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    Quote Originally Posted by IwantLINUX
    Hi dylunio,

    I also have heard only about UMASK but recently in an interview they asked me about UNMASK, and i was stumped....

    What other members have to say????
    There are some dumb interviewers out there! :o

  6. #5
    ljp
    ljp is offline
    Just Joined!
    Join Date
    Jun 2005
    Location
    Queensland Australia
    Posts
    14
    Quote Originally Posted by IwantLINUX
    Hi dylunio,

    I also have heard only about UMASK but recently in an interview they asked me about UNMASK, and i was stumped....

    What other members have to say????

    Similar to an Un-Mount command ie unmount your CD-ROM:

    Code:
    umount /dev/cdrom (No "n" in umount)
    I think you were being tested, the answer they were looking for was a confident 'there is no such command'


    LJP

  7. #6
    Just Joined!
    Join Date
    Oct 2004
    Posts
    17
    Hi,

    I think ljp is right, i was being tested by the interviewer.....i think i will have to face some more dumb questions....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •