简体   繁体   中英

Linux server with . and .. directories

Why does each folder directory in my linux server has . and .. directories with same files ? is it user error or by design ?

在此处输入图片说明

Example: I have folder bladelogic with list of these files along with . and .. directories which contains same files.

. refers to the current directory and .. refers to the parent directory. This is by design.

this is by design. . refers to the current directory and .. refers to the directory "above" the current one. Specifically, suppose you're in a directory /foo/bar/wizzle . If you do an ls in there you'll see . , which refers to /foo/bar/wizzle , and a .. which refers to /foo/bar . You can check this by running ls . (which will give you the same result as just ls ) and ls .. which will show you the contents fo

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM