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 use of "test" command in unix?

4 Answers  


What happens when we execute a unix command?

0 Answers  


How to view the hidden files in /etc directory?

10 Answers  


What is the search command in unix?

0 Answers  


Which command is used to create a directory?

0 Answers  






which command is used to identify the type of the file?

3 Answers  


How to set sticky bit, or it have any seperate directory to create sticky bit in sunfir servers. Please help me , i don't no the exact answer?

4 Answers   HCL, Wipro,


What command is used to check the current users?

0 Answers  


By using which command we can find the CPU utilization time?

7 Answers   Amazon,


what is the command to find out the difference between files and folders?

6 Answers  


Which command is used to kill the last background job?

0 Answers  


what is the cmd to display the last exit status in UNIX?

5 Answers   MEIT, Syntel,


Categories