Top Ten Concepts for Linux Beginners – Number 2, Directories

The Linux people like to claim that the directories are actually just another file type. This statement may be misleading. We have seen in a previous article that creates a file with a file editor. We will see later in this article how to create a directory.
So what is a directory of Linux? A directory is a collection that may include one or more directories, one or more files, or in fact be empty. You can think of a file directory as a folder or notebook computer containing separator sheets (directories themselves) and pages (files.o) Like a sheet of notebook can not contain a separator, a Linux Files can not contain a directory.
Up to now take our comments on the Linux for the Windows directory. Now let’s look at some differences between these two systems. First are the naming conventions. Linux is still distinguishes between lowercase and capital letters in directory names. Microsoft Windows is not. For example, Linux is pay12june Pay12june and are like two different directories, as different as the directory and heighho pay12june. These directory names are used as file name in the preceding article. While Linux has a private directory and file names, in general we can not say the name if it is a filename or a directory name. So beware. Linux helps us here ‘command ls, which lists the contents of a given directory usually lists the files and directories in different colors.
Directories are hierarchical. They look like a tree or a tree. But unlike a tree (or Microsoft Windows), Linux has a single root. The root, designated as / is at the top instead of at the bottom of the hierarchy. Just below the root directory is several subdirectories. For example, the directory / home is a child of / root. The number and names of the subdirectories of the first level varies from one version of Linux to another. For example, some Linux distributions include a directory / root, while others do not. The root directory / (and subdirectories, are used both terms) is a child, the root directory.
The / home directory is important. E ‘divided into subdirectories, one for each user. We like to work with Damn Small Linux, a free version of Linux that runs on the Windows desktop and requires only 50 megabytes of disk space. Damn Small Linux automatically creates a user called dsl whose home directory is / home / dsl, a work area reserved mainly for this user. All versions of Linux divide the directory / home user directory according to this simple naming convention.
Linux provides several commands to process the directory. For example, the command mkdir creates a directory. The command rmdir removes a directory, but in the simplest case when empty. The cd command changes the working directory, the directory where you are. The pwd (print working directory) command displays (print) is not the working directory. Beginners should run this command frequently to reduce errors. For example, if the user of DSL, I think we are placed in / home / DSL, but are located in the / you can not save files with a single command. Why? Because they lack the necessary authorization, the subject of our next article.

Tags: , , , ,

Leave a Reply