How do you list all the files in a directory, including hidden files?



How do you list all the files in a directory, including hidden files?..

Answer / hr@tgksolutions.com

The 'ls -a' program is used to list every file in a directory, including hidden files. In Linux, hidden files begin with a dot (.), and 'ls -a' guarantees that they are also visible.

Additionally, candidates should use 'ls -l' to obtain a comprehensive listing that includes ownership, modification dates, and file permissions. This demonstrates their ability to retrieve detailed file information.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux Commands Interview Questions

What does rmdir do in linux?

0 Answers  


Explain how you would find a specific string in a file.

1 Answers  


how do u find remote machine operating system and version?

10 Answers   Wipro,


Diff b/w C-shell and Born-shell

2 Answers   HP,


What does the top command display?

10 Answers   iNautix, Yahoo,






Who linux commands?

0 Answers  


What is kill 9 in linux?

0 Answers  


How would you monitor real-time system performance in Linux?

1 Answers  


What are two functions the move mv command can carry out?

0 Answers  


in LINUX,What are two subtle differences in using the more and the pg commands?

2 Answers  


What does r mean linux?

0 Answers  


How do you create a text file in linux?

0 Answers  


Categories