answersLogoWhite

0


Best Answer

ls

will list the contents of a directory.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

7y ago

To list the contents of a directory, "ls" command is used.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the Linux command used to list the contents of a directory?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What command is used to list the contents of a directory recursively in Unix?

ls -lR directory


What command list basic directory files?

In Linux: ls In Windows: dir


What does DIR in the DIR DOS command stand for?

DIR is used to list the contents of a directory.


Linux command to list a folders contents?

The LS command: ls folder Type man ls for more details.


What command do I use in Linux to list all absolute path names in my current working directory?

ls -la


What does the ls command in Linux?

Exploration is the best thing! Try it! It's a commonly used command. It lists the files in the current directory (or another directory if you specify). You can use flags to choose what information you need to see.


What command will display a list of NFS exports in Linux?

exportfs lists the directory shared and the access control list/home/stuff 192.168.6.100showmount --all also shows exports.


What is ls -FC command in linux?

ls will list the directory -C otion is to list entries by columns -F or --classify is to append indicator (one of */=>@|) to entries


What would the syntax of a command to list all documents in a directory that have the extension doc?

For windows: dir *.doc For Unix/Linux: ls *.doc


What was the 'ls' option to list directory entries instead of contents?

In a Linux (I use Ubuntu) terminal, type ls to print a list of directories on the screen.Use man ls for the manual page.


What does man ls abcdat command do in Linux?

The command "man ls" will tell you about the 'ls' command. The last part will be ignored because it isn't part of the manual entry for the 'ls' command.The command as you can given it is most likely because you want to know what will happen when you issue the 'ls abcdat' command in Linux. The answer is that it will list out the name (in a short form) of the file or directory abcdat if it exists in your current working directory.


What are the common Linux commands?

In my opinion, the most commonly used Linux commands are: ls - list files and folders in a directory CD - change directory mkdir - make a directory cp - copy mv - move/rename rm - remove man - manual pages find - um, find Having a good command of all of these and you should be able to navigate around in the command line comfortably.