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 |
What is unix operating system explain various components of unix operating system?
What is the chief difference between the –v and –x option s to set?
What is the difference between NFS 3 and NFS 4? What are new features added in NFS4?
If we are terminated at the middle of the program execution in UNIX,what will happen to the program, it will continue running r terminate r the o/p will be send to your mail?
What is the full form of unix?
How to print/display the last line of a file in Unix?
Define the term directory?
How is windows different from unix?
What is standard unix streams ?
How do you kill a job in unix?
Consider a TCP echo client which blocks on fgets which read input from standard input. If now the corresponding server process crashes, what will client TCP kernel receive? Can the client process receive that? Why or why not? How you solve the above problem?
What are conditions on which deadlock can occur while swapping the processes?