169k views
3 votes
Write a command to list all files and folders in the current directory, including hidden files.

User Gavo
by
5.9k points

1 Answer

3 votes

Answer:

ls -a for Linux or UNIX based systems.

dir /a for windows systems.

Explanation:

In Linux or Unix based systems we use ls command that shows the directories and the files present in the current directory and for windows, we use dir in command prompt but these commands do not show the hidden directories and files. To show the hidden directories and the files we use ls -a command in Linux and dir /a command in windows.

User Alex Ozerov
by
5.6k points