Comments on Linux dir command for beginners (10 examples)

At any point in time while working on the command line, you are always inside a directory. There may be times when you'd want to list information about all files and subdirectories within a directory. This is where the dir command helps. In this tutorial, we will discuss the basics of this command as well as the features it provides.

4 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Pete

On my 16.04 system, dir appears to be a hardlink to ls (el-es).

Nothing to see here.

By: john

Isn't this just the 'ls' command that's aliased? As far as I know, linux does not have a built-in or external 'dir' command.

By: kenneth Hammons

Can you make the linux dir command display only files with certain extension like you can in DOS?

ie:  dir *.bin

By: Moin Shaikh

I want to know  Why there is .. Directory inside / partition ?