Detailed explanation of the difference between "/" and "~" in Linux

Detailed explanation of the difference between "/" and "~" in Linux

"/" is the root directory, and "~" is the home directory. Linux storage is mounted in a tree-like manner, and the source is "/", which is the root directory. Each user has a "home" directory, which is the user's personal directory. For example, the root user's "home" directory is /root, and the ordinary user a's home directory is /home/a. You can see


After the user is created, we can see it in the /home directory, which is the user's "home" directory created by the system by default.

/home/a is the home directory after switching to user a"~"


The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • How to install the Linux version of Baota Panel in a directory other than /www
  • Options of /etc/passwd file in Linux
  • Linux/Unix command lines about time and timestamps
  • How to install/add mod_rewrite module in Apache under Linux
  • The difference between the Linux program installation directory /opt and the /usr/local directory
  • A brief discussion on the difference between Linux scripts sh and ./
  • How to install/configure Tomcat in Linux environment

<<:  Install Percona Server+MySQL on CentOS 7

>>:  Implementation of interactive data between QT and javascript

Recommend

Detailed explanation of the basic usage of the img image tag in HTML/XHTML

The image tag is used to display an image in a we...

MySQL database monitoring software lepus usage problems and solutions

When using lepus3.7 to monitor the MySQL database...

Vue3+TypeScript encapsulates axios and implements request calls

No way, no way, it turns out that there are peopl...

How to configure the same domain name for the front and back ends of nginx

This article mainly introduces the method of conf...

Tutorial on migrating mysql from phpstudy to Linux

Project Purpose Migrate the data in MySQL 5.5.53 ...

How to create dynamic QML objects in JavaScript

1. Dynamically create objects There are two ways ...

Detailed example of MySQL joint table update data

1.MySQL UPDATE JOIN syntax In MySQL, you can use ...

JavaScript source code for Elimination

JavaScript to achieve the source code download ad...

Tic-Tac-toe game implemented in pure CSS3

Operation effect: html <div class="tic-ta...

Summary of discussion on nginx cookie validity period

Every visit will generate Cookie in the browser, ...

How to create components in React

Table of contents Preface Component Introduction ...