Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does linux return to the previous directory

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you linux how to return to the next level of the directory, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

Linux returns a higher level of directory method: 1, enter the "cd / superior directory name" command in the terminal, press the "enter key"; 2, enter cd in the terminal and the superior directory instead of "..", the command format is "cd.", press the "enter key".

The operating environment of this tutorial: centos7 system, thinkpad T480 computer.

Linux is generally operated with commands. What should I do if I want to return to a higher-level directory? Let's take a look at the detailed tutorial.

Method 1:

For example, click on the terminal. Then enter [pwd] to display the current path.

Then the parent directory is the home under the root, so return to the parent directory and type [cd / home] without slashes.

[pwd] again, and you can see that you have returned to the home directory.

Method 2:

Or simply, enter: cd and parent directory instead of [..].

Then press the enter key to return to the upper floor.

The above is all the contents of the article "how to linux return to the previous catalog". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report