- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ls -A, problem with hidden files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2010 04:58 AM
тАО10-18-2010 04:58 AM
ls -A, problem with hidden files
For example:
/home/oper/test#whoami
oper
/home/oper/test#touch '.hiddenfile'
/home/oper/test#ls -A
.hiddenfile
/home/oper/test#sudo su
/home/oper/test#ls -A
/home/oper/test#
/home/oper/test# ls
.hiddenfile
If you are root, 'ls -A' doesn't list hidden files.
Thanks
Maki
HP-UX B.11.31 U ia64
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2010 05:14 AM
тАО10-18-2010 05:14 AM
Re: ls -A, problem with hidden files
Note the 'ls' man page entry for '-A'
-A The same as -a, except that the current directory . and parent directory .. are not listed. For a user with appropriate privileges, this flag defaults to on, and is turned off by -A.
In a nutshell -- Since root already has the ability to display hidden files, the '-A' switch turns OFF the display of hidden files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2010 05:17 AM
тАО10-18-2010 05:17 AM
Re: ls -A, problem with hidden files
-A The same as -a, except that the current directory . and
parent directory .. are not listed. For a user with
appropriate privileges, this flag defaults to on, and is
turned off by -A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2010 06:51 AM
тАО10-18-2010 06:51 AM
Re: ls -A, problem with hidden files
Use ls with -a option,
As -A option : -A The same as -a, except that the current directory . and parent directory .. are not listed. For a user with
appropriate privileges, this flag defaults to on, and is
turned off by -A.
Regards
Vishnu Khandare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2010 03:02 AM
тАО10-19-2010 03:02 AM
Re: ls -A, problem with hidden files
Would you define the user 'with appropriate privileges', is it only root?
Thanks
Maki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2010 03:12 AM
тАО10-19-2010 03:12 AM
Re: ls -A, problem with hidden files
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2010 03:19 AM
тАО10-19-2010 03:19 AM
Re: ls -A, problem with hidden files
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2010 03:20 AM
тАО10-19-2010 03:20 AM