how do display only hidden files in unix?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the features of unix operating system?

497


What are the file permissions and access modes in unix?

494


What is unix pattern?

485


How do I show hidden files in unix?

477


Which is a form of interprocess communication in unix?

484






Explain how do we change file access permissions?

511


Explain what is a fifo?

553


How to reverse a string in Unix?

584


What is unix file?

511


Explain the different types of pathnames that are used in unix.

492


Write a script that prints out date information in this order: time, the day of week, day number, month, year(sample output: 17:34:51 pdt sun 12 feb 2012)

780


In what way the Fault Handlers and the Interrupt handlers are different?

543


What are the different versions of unix?

500


What is unix directory structure?

512


Is a directory unix?

477