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

A brief discussion on the execution details of Mysql multi-table join query

First, build the case demonstration table for thi...

Vue shopping cart case study

Table of contents 1. Shopping cart example 2. Cod...

Vue front-end development auxiliary function state management detailed example

Table of contents mapState mapGetters mapMutation...

MySQL incremental backup and breakpoint recovery script example

Introduction Incremental backup means that after ...

TypeScript namespace merging explained

Table of contents Merge namespaces with the same ...

Embed player in web page embed element autostart false invalid

Recently, I encountered the need to embed a player...

How to Fix File System Errors in Linux Using ‘fsck’

Preface The file system is responsible for organi...

Comprehensive summary of Vue3.0's various listening methods

Table of contents Listener 1.watchEffect 2.watch ...

Analysis and Solution of ERROR:2002 Reported When MySQL Starts

Preface This article mainly introduces the analys...

Six important selectors in CSS (remember them in three seconds)

From: https://blog.csdn.net/qq_44761243/article/d...

How to handle long data when displaying it in html

When displaying long data in HTML, you can cut off...

CSS implements five common 2D transformations

2D transformations in CSS allow us to perform som...

Some tips for writing high-performance HTML applications

How can you improve web page performance? Most de...

The difference between z-index: 0 and z-index: auto in CSS

I've been learning about stacking contexts re...