answersLogoWhite

0

What is the directory in Linux?

Updated: 10/3/2023
User Avatar

Wiki User

11y ago

Best Answer

One of the most noticable differences between Linux and Windows is the directory structure. Not only is the format different, but the logic of where to find things is different

In Windows, you use this format to access a directory:

C:\Folder1\subfolder\file.txt

In Linux, this is the basic format:

/Folder1/subfolder/file.txt

You'll notice that the slashes are forward slashes in Linux versus backslashes in Windows. Also, there is no drive name (C:, D:, etc.) in Linux. At boot, the 'root partition' is mounted at /. All files, folders, devices and drives are mounted under /. Though it is not apparent from this example, it is important to note that files and folders in Linux are case sensitive. /Folder1/subfolder/file.txt is not the same as /folder1/subfolder/file.txt.

User Avatar

Wiki User

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

Wiki User

13y ago

A directory file is a special file in Unix that can hold multiple files and subdirectories. It is the folder equivalent of Windows.

This answer is:
User Avatar

User Avatar

Wiki User

6y ago

A directory is a "folder" in Windows terminology. A directory is a file that contains references to other files.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

Typing the terminal command: 'ls' (without the single quotes) and pressing enter will list the directories.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the directory in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp