How do you list the files in an UNIX directory while also
showing hidden files?

Answers were Sorted based on User's Feedback



How do you list the files in an UNIX directory while also showing hidden files?..

Answer / srinath.p

$ls -Ra
This command shows all the hidden files in the directory
and all of it's subdirectories.

Is This Answer Correct ?    13 Yes 3 No

How do you list the files in an UNIX directory while also showing hidden files?..

Answer / suchitra

ls-a
will give all the files including hidden files

ls-R
which will give u the sub directories in the current
directory

hence to list both the subdirectories and the hidden file
list give
ls-aR

Is This Answer Correct ?    13 Yes 3 No

How do you list the files in an UNIX directory while also showing hidden files?..

Answer / venkatesh

ls -a it give all the file and directory including hidden files

Is This Answer Correct ?    1 Yes 0 No

How do you list the files in an UNIX directory while also showing hidden files?..

Answer / upendar

ls -a
-It will give all the Files and Sub Directories including Hidden files.

ls -r
- It will give all the files in Descending or Reverse order.

Is This Answer Correct ?    1 Yes 2 No

How do you list the files in an UNIX directory while also showing hidden files?..

Answer / vawani

ls -ltra

Is This Answer Correct ?    0 Yes 1 No

How do you list the files in an UNIX directory while also showing hidden files?..

Answer / sagar

ls -ltr

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More Unix Commands Interview Questions

What is the command to view process running?

0 Answers  


how to check a file system type

7 Answers   Wipro,


What is difference between grep and find command in unix?

0 Answers  


What Command is used to make a directory?

4 Answers   IBM,


How will you know who are the users logged in to the system before 15 minutes?

4 Answers   Amazon,


How can you see the command line history?

0 Answers  


what does the 'tee' command do?

4 Answers  


What is mtime in find command?

1 Answers  


What does mkdir up2date; touch outdated up2date do?

2 Answers  


How to identify whether a file is normal file or directory?

3 Answers  


What do chgrp command do?

0 Answers  


Give two UNIX kernel parameters that effect an Oracle install

3 Answers   Oracle,


Categories