how do display only hidden files in unix?

Answers were Sorted based on User's Feedback



how do display only hidden files in unix?..

Answer / amedela chandra sekhar

ls -a|grep "^\."

Is This Answer Correct ?    63 Yes 6 No

how do display only hidden files in unix?..

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

how do display only hidden files in unix?..

Answer / guest

ls -a

Is This Answer Correct ?    35 Yes 24 No

how do display only hidden files in unix?..

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

how do display only hidden files in unix?..

Answer / ashutosh gupta

ls -a|grep "^\."

Is This Answer Correct ?    1 Yes 0 No

how do display only hidden files in unix?..

Answer / qwertz

Even more minimalistic:
ls -lad .*

Is This Answer Correct ?    0 Yes 0 No

how do display only hidden files in unix?..

Answer / qwertz

And the most minimalistic:
echo .*


:-)

Is This Answer Correct ?    0 Yes 0 No

how do display only hidden files in unix?..

Answer / kirus

ls-a

Is This Answer Correct ?    1 Yes 2 No

how do display only hidden files in unix?..

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

how do display only hidden files in unix?..

Answer / unix expert

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

Post New Answer

More Unix General Interview Questions

Is ios based on unix?

0 Answers  


What is unix buffer cache?

0 Answers  


Describe a link in unix.

0 Answers  


How do you change directories in unix?

0 Answers  


What is grep family in unix?

0 Answers  






How to perform a system shutdown in unix?

0 Answers  


What is the explanation for protection fault?

0 Answers  


How can you edit a large file without opening it in unix?

0 Answers  


What is inode in unix operating system?

0 Answers  


how to list all the hidden files?

10 Answers   Polaris,


What are conditions for a machine to support Demand Paging?

0 Answers  


How to give execute permission for a file in unix?

0 Answers  


Categories