Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What is the difference between NFS 3 and NFS 4? What are new features added in NFS4?

3 Answers   ComNet,


What is Process id in unix?

0 Answers  


How old is unix?

0 Answers  


Is it possible to restrict incoming message?

0 Answers  


What are the requirements for a swapper to work?

0 Answers  


Which mode executes the fault handler?

0 Answers  


Who owns unix?

0 Answers  


Explain the following statement, “it is not advisable to use root as the default login.”

0 Answers  


How to get the nth word of a line in Unix?

0 Answers  


Is learning unix useful?

0 Answers  


Is unix a coding language?

0 Answers  


1)How to schedule a job,that will periodically execute in second by crontab? 2)I know only second specific time to execute the job. like 10 10 * * * sleep 40&&ps -l>/dev/pts/1 It will execute at 10:10:40 AM but do not know how to execute 15 second,30 second so on at 10:10 am.

3 Answers   Qwest,


Categories