What directory is linux ~/.

云罗郡主
Release: 2019-03-04 16:57:46
Original
6846 people have browsed it

linux ~/.What is the directory?

linux ~/ generally represents the current directory. But when you open the terminal, they are all under the username directory, so this is what is in the username directory. As for .fcitx, if you add a dot, it will be a hidden file. Press CTRL H to show hidden files.

What directory does ~ represent in Linux?

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

For example: My login user is chen

cd ~

~ represents /home/chen/

Of course, the premise is that there is a user directory. If If there is no /home/chen directory, the situation will be more complicated.

In short, cd ~ and then pwd, you will know.

/ refers to the root directory: the top-level directory of all directories

./ indicates the current directory

./ 一般需要和其他文件夹或者文件结合使用,指代当前目录下的东西
    cd . 没有太多意义
    cd ./文件夹   切换到当前目录的某个文件夹
Copy after login

.. indicates the superior directory

   cd ..         切换到上级目录   
     cd ../文件夹    切换到上级目录中的某个文件夹
Copy after login


The above is the detailed content of What directory is linux ~/.. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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 [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!