how do display only hidden files in unix?
Answers were Sorted based on User's Feedback
Answer / sarvan
Hidden files will start a period (.) in their names. To
list them use -a option of ls command.
like, ls -ltra
Is This Answer Correct ? | 29 Yes | 18 No |
Answer / chelios
Minimalistic form:
ls -a | grep '\.'
Really people, 'only hidden' means 'only hidden', not 'also hidden'...
Is This Answer Correct ? | 8 Yes | 6 No |
Answer / ram
In unix, hidden files are started with .
But whenever checking for hidden files, we should consider
the two extra ordinary files in evry directory.
'.' and '..'
. denotes to the present working direcory
.. denotes to the previous/parent directory
For filtering only for hidden files use
ls -la .??*
But this will consider the hidden files have length > 2.
So if a hidden file with one letter wont appear.
Is This Answer Correct ? | 0 Yes | 1 No |
He wrote correct answer(2).who stupid given "NO".
Before giving "no' u should check correct or not .
simply don't tell 'NO'
Is This Answer Correct ? | 6 Yes | 12 No |
Is windows a unix operating system?
What is difference between SSH V1 and SSH V2? What are drawbacks of SSH V2?
what is wrong with this interactive shell script?
How to get the n-th field from a Unix command output?
Name the different file types available with unix.
List the distributions of unix.
Explain how do we change file access permissions?
How the Kernel handles the copy on write bit of a page, when the bit is set?
What is disk block allocation in unix?
In what way the validity fault handler concludes?
Is mac unix like?
Where is unix operating system used?