(一)在根目录下查看是否有 .bash_profile 文件
- 进入根目录:cd ~
- 查看隐藏文件:ls -la
bogon :: ~ » cd ~
bogon :: ~ » ls -la
total 504
drwxr-xr-x+ 74 hello staff 2368 1 20 14:49 .
drwxr-xr-x 6 root admin 192 7 26 09:39 ..
drwxr-xr-x 3 hello staff 96 5 25 2019 .3T
-rw-r--r-- 1 hello staff 360 5 2 2017
-rwxrwxrwx@ 1 hello admin 923 1 20 11:42 .bash_profile
-rw-r--r--@ 1 hello staff 576 1 25 2021 .bash_profile.pysave