How to List All Files in a Folder on Ubuntu Terminal

Many of us love to do things more with the Terminal rather than using GUI. In this Ubuntu terminal tutorial, let’s check how to list all files in a folder.

We use the ls command for this purpose. It’s a command line utility to list content of a directory.

How to use ls command

Open your terminal from the specific directory and just execute ls command to get the list of all files.

As you can see in the above screenshot, you list both folders and files inside the directory.

You can also mention the folder that using the ls command. See the screenshot given below.

That’s how we use the ls command on Ubuntu.

If you want to know how to get current folder path using Ubuntu terminal then check my blog post here.

Leave a Reply

%d bloggers like this: