Operating System - HP-UX
1833053 Members
2834 Online
110049 Solutions
New Discussion

umask 022, then ll no display

 
Gengwd
Occasional Advisor

umask 022, then ll no display

Hi,

HP-UX 11.0,I created a user "gwd", I edited the file /home/gwd/.profile so I can set some enviroment variables. When I login using gwd,
$cd /home/gwd
$ll
I can see .profile,.login files.

Then I add a line in /home/gwd/.profile, the line like this:
umask 022
I save the file and logout

When I login gwd
$cd /home/gwd
$ll
Just display "total 0", I delete the line and relogin but it also display no files,Why?

Note: During the procedure,I do not reboot system

thanks in advance
Ping-Jian Xiao
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: umask 022, then ll no display

Hi:

Do ls -al.

This shows all "." files.

...JRF...
John Palmer
Honored Contributor

Re: umask 022, then ll no display

Only root sees 'all files' by default with ls -l. Non-root users have to supply the -a flag. Your setting of umask will not have affected this.
Devbinder Singh Marway
Valued Contributor

Re: umask 022, then ll no display

just to add . files are hidden files i.e. .profile .login to view them as suggested ,use ls -la

cheers
Seek and you shall find
CHRIS_ANORUO
Honored Contributor

Re: umask 022, then ll no display

Hi,

Usually, entries with a .(period) are not listed, use ls -la. The inclusion of umask 022 in your .profile is not okay, why don't you use umask 024.
Check the online manual for umask.


Chris
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Emilio Sierra
Advisor

Re: umask 022, then ll no display

You can use the following line in your .profile:

alias ll='ll -a'