Home>Article>Operation and Maintenance> How to express the current directory in linux

How to express the current directory in linux

WBOY
WBOY Original
2022-05-17 15:07:06 17498browse

In Linux, the current directory is represented by a decimal point "."; the directory structure of the Linux system is similar to an inverted tree structure, which starts from the root directory ("/") and extends downward. It can also be used ".." represents the upper-level directory, and "./" represents the lower-level directory.

How to express the current directory in linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to represent the current directory in Linux

In every directory in Linux, there are the following two special directories

  • "." represents the current directory Directory

  • “..” represents the upper-level directory

Directory composition structure in Linux system

• Directory composition in Linux system The class is like an inverted tree structure, which starts from a directory named root ("/") and extends downward

• It is different from other operating systems. For example, Windows, in Windows, there are as many roots as there are partitions, and these roots are parallel, while in Linux, no matter how many partitions there are, there is one root

• In Linux system The corresponding folder type character in is "d"

The current path is /tmp/1/2/3/4, then cd ../../../.. will reach the /tmp file Folder

Directory access permissions

A directory is a special kind of file

The read, write, and execute permissions on a directory are different from ordinary files

• Read : Users can read files in the directory, which determines whether they can type ls

in this folder. Write: Used alone, it has no effect. It can be used with read and execute permissions to add and delete files in the directory

• Execution: Users can enter the directory and call the information in the directory. All users must have execution permissions to cd into this folder.

Recommended learning:Linux video tutorial

The above is the detailed content of How to express the current directory in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn