Zerium
Zerium

Reputation: 17333

What is the difference between a directory and a file with no extension?

On nearly all types of computers (if not all), folders have no extension. So I was wondering, what is the difference between a directory and a file with no extension? Don't they have the same name?

Upvotes: 3

Views: 25496

Answers (4)

vikas choudhary
vikas choudhary

Reputation: 21

directory is a collection of a the folders and files. in the linux based system directories will be in blue colour and has the permissions stsrting with like --rwx-r--rwx and directories permisions start from the drwx--rwx for the owner and group and nothing guys do not need to recognize the directories and file.

Upvotes: 1

difference between directory and File : A file is any kind of computer document and a directory is a computer document folder or filing cabinet.

Upvotes: 0

Siva Charan
Siva Charan

Reputation: 18064

Directory:

Directory is a collection of files and folders.

Upvotes: 0

Thilo
Thilo

Reputation: 262714

You cannot have a directory and a file of the same name (regardless of extension), just like you cannot have two files of the same name.

A directory is just a file, too.

The difference is that a directory can contain other files. It does not matter how it is called, it can have an extension (or two). What makes it a directory is that it was created as such.

Upvotes: 5

Related Questions