Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux. What catalog do you mean?

Shulou Source: shulou.com Published: 2022-06-02 00:27:22 10月05日 Update

Editor, I'd like to share linux with you. What kind of catalogue do you refer to? I hope you will gain a lot after reading this article. Let's discuss it together.

Linux. What catalogue is it?

Linux ~ / generally represents the current directory. But when opening the terminal, it is all under the user name directory, so this is what is in the user name directory. Fcitx, on the other hand, adds a dot to hide files. Press CTRL+H to show hidden files.

What directory does ~ represent in linux?

~ represents the code home directory, that is, the user directory of the currently logged in user.

For example: my login user is chen

Cd ~

~ stands for / home/chen/

Of course, the premise is that there is a user directory, and there will be more cases if there is no / home/chen directory.

Anyway, if you cd and then pwd, you will know.

/ refers to the root directory: the directory at the top of all directories

. / represents the current directory

. / generally needs to be used in conjunction with other folders or files to refer to things in the current directory cd. It doesn't make much sense to cd. / folder switch to a folder in the current directory

.. Represents the parent directory

Cd.. Switch to the parent directory cd.. / folder to a folder in the parent directory. After reading this article, I believe you are interested in linux ~ /. Refers to what catalog has a certain understanding, want to know more related knowledge, welcome to follow the industry information channel, thank you for reading!

Tags: Directory file user folder superior that is switch thing situation user name article login that is code representative premise finished meaning time is in Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux NVidia Shulou Technology Microsoft Huawei