Operating System - HP-UX
1830431 Members
2414 Online
110002 Solutions
New Discussion

What environment setting tells the execution of the ll command to list the hidden files.

 
SOLVED
Go to solution
Jack C. Mahaffey
Super Advisor

What environment setting tells the execution of the ll command to list the hidden files.

If if run ll on some of my servers I automatically see the dot-prefixed hidden files without including -a.

I looked to see if there was an alias for ll and there isn't.

What setting is getting turned on for the environment to include these files in the listing when the user logs in? Otherwise, I need to add additional options to ll.

Another question, is there a way to see the current settings in effect for the set commands? e.g. set -u, set -A.

I would like to avoid digging through the .profile and associated login files to see what was set.

Thanks in advance.... Jack...
5 REPLIES 5
Rich Wright
Trusted Contributor
Solution

Re: What environment setting tells the execution of the ll command to list the hidden files.

I always thought that user root would see all and anyone else had to use the -a option.

Are you seeing different results?
What is your OS level?
Bill McNAMARA_1
Honored Contributor

Re: What environment setting tells the execution of the ll command to list the hidden files.

probably your uid/gid
I've tried, but couldn't hide files from root!

Later,
Bill
It works for me (tm)
Darren Prior
Honored Contributor

Re: What environment setting tells the execution of the ll command to list the hidden files.

Hi Jack,

further to Rich's answer

from the man page for ls(1): If you are a user with appropriate privileges all files except . and .. are listed by default.

If you are root and run ll you will see all files except . and .. If you include -a then you will see . and .. too.

If you are a non-root user you will need to use ll -a to see all files including . and ..

regards,

Darren.
Calm down. It's only ones and zeros...
Sajid_1
Honored Contributor

Re: What environment setting tells the execution of the ll command to list the hidden files.

hello,

User root wil display all files (hidden too) when doing a ll command. Check your settings when on the other systems using:
# env
# set
# alias
# /etc/passwd ..
learn unix ..
Peter Kloetgen
Esteemed Contributor

Re: What environment setting tells the execution of the ll command to list the hidden files.

Hi Jack,

root is allways seeing all files and directories, excluding the special entries "." and "..". ( same as any ls- command with the option -A ) All other users with different UIDs than root have to use -a or -A option to see the hidden files.

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping