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 do you mean by unix?

707


What is unix structure?

733


Where is unix used?

732


What are the benefits of running processes in the background?

678


What is file structure in unix?

688


Name two paging states for a page in memory?

767


What is unix language?

675


How do I find a pattern in unix?

711


How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?

708


What are the hidden files in unix?

793


How to print/display the first line of a file in Unix?

755


Define a process group.

711


how to kernel protected memory?

2146


How to create files in unix?

722


What are conditions for a machine to support Demand Paging?

762