- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
Forums
Discussions
Discussions
Forums
Discussions
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
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
04-19-2004 09:41 PM
04-19-2004 09:41 PM
1) All the hidden files is start with .abc
Am I right?
2) How to make a file become hidden?
3) If login as root, all the hidden files can be viewed normally. But for normal user, they have to user ll -a command to view hidden files. Is there any command to enable the particular user to view the hidden files without -a command? (The user id for the user must not same as root which is 0)
regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 09:50 PM
04-19-2004 09:50 PM
Re: Hidden files
2. The file need to begin with dot.
3. Use alias ls="ls -al" in .shrc or .cshrc.
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 09:51 PM
04-19-2004 09:51 PM
Re: Hidden files
2) rename it to have a "." in front of it.
3) No, sorry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:02 PM
04-19-2004 10:02 PM
Re: Hidden files
1) What is .cshrc and .shrc used for?
2) I need to put in "ls -al" inside .cshrc
Where should I put it? Attach is my .cshrc file.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:11 PM
04-19-2004 10:11 PM
SolutionPOSIX users define it using ~/.shrc whereas C Shell users use ~/.cshrc.
Use vi .shrc to define as below:
alias ls="ls -al"
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:14 PM
04-19-2004 10:14 PM
Re: Hidden files
it depends on which shell is configured for you! It is fixed in the passwd file.
Also you can change it 'csh' for c-shell, for example.
.cshrc is read when logging in with csh,
.profile is read with ksh (korn-shell).
Write for example:
alias ll 'ls -al'
anywhere in your .cshrc
Regards
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:16 PM
04-19-2004 10:16 PM
Re: Hidden files
# alias d dirs
# alias pd pushd
# alias pd2 pushd +2
# alias po popd
# alias m more
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:19 PM
04-19-2004 10:19 PM
Re: Hidden files
for sh/ksh .profile
csh .cshrc and .login
Just inside your .cshrc,
alias ls ls -cFa
Once you put this inside the .cshrc file it becomes persistent everytime you log in.
to be simple the file is used to create the customized user enviroment.
Hidden files start with dot "."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:33 PM
04-19-2004 10:33 PM
Re: Hidden files
Is there any difference between
alias ls ls -cFa & alias ll ls al
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:36 PM
04-19-2004 10:36 PM
Re: Hidden files
With this in mind, there is no difference between alias "ll" and alias "ls"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:42 PM
04-19-2004 10:42 PM
Re: Hidden files
Actually the one that I not clear is
-cFa & al
What is -cFa & al stand for?
Any different?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:43 PM
04-19-2004 10:43 PM
Re: Hidden files
you can check this with 'man ls'
Option F shows a slash if it is a dir, an * if the file is executable, a @ if it is a symbolic link.
-c shows last modification of inode
V.