Reputation: 17333
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
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
Reputation: 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
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