.aa/.bb
현재 사용자 루트 디렉터리의 홈 디렉터리에 중첩된 폴더를 만들고 싶습니다 . 그래서 나는 명령을 사용합니다 mkdir -p "~/.aa/.bb/"
. 그런데 예상대로 작동하지 않고 폴더가 생성되는데 ~
어떻게 들어가는지 모르겠습니다. 아래는 내 테스트입니다.
root@u2004:~# pwd
/root
root@u2004:~# ls -la
total 28
drwx------ 3 root root 4096 Aug 28 14:46 .
drwxr-xr-x 20 root root 4096 Aug 28 01:22 ..
-rw------- 1 root root 3285 Aug 28 21:56 .bash_history
-rw-r--r-- 1 root root 3106 Dec 5 2019 .bashrc
drwx------ 2 root root 4096 Aug 1 00:31 .cache
-rw-r--r-- 1 root root 161 Dec 5 2019 .profile
-rwxr-xr-x 1 root root 89 Aug 28 14:46 setproxy.sh
root@u2004:~# mkdir -p "~/.aa/.bb/"
root@u2004:~# ls -la
total 32
drwx------ 4 root root 4096 Aug 28 21:59 .
drwxr-xr-x 20 root root 4096 Aug 28 01:22 ..
drwxr-xr-x 3 root root 4096 Aug 28 21:59 '~' <--------------------
-rw------- 1 root root 3285 Aug 28 21:56 .bash_history
-rw-r--r-- 1 root root 3106 Dec 5 2019 .bashrc
drwx------ 2 root root 4096 Aug 1 00:31 .cache
-rw-r--r-- 1 root root 161 Dec 5 2019 .profile
-rwxr-xr-x 1 root root 89 Aug 28 14:46 setproxy.sh
root@u2004:~#
root@u2004:~# cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
root@u2004:~#
어떤 아이디어가 있나요?