/home/ise
是我的基于shell的文件夹。UNIX路径 - 什么,。,〜,..前缀是什么意思?
这些行之间有什么不同?
感谢。
/home/ise
./home/ise
~/home/ise
../home/ise
/home/ise
是我的基于shell的文件夹。UNIX路径 - 什么,。,〜,..前缀是什么意思?
这些行之间有什么不同?
感谢。
/home/ise
./home/ise
~/home/ise
../home/ise
/home/ise # absolute path (often "/" is the root of your hard drive)
./home/ise # relative to current directory
~/home/ise # relative to the current users home directory
../home/ise # relative to the current directory's parent folder
/家/ ISE - 指定从磁盘路径
./home/ise - 与上述相同,所述.
指示当前目录
〜/家/ ISE - ~
指示来自主目录
../home/ise - ..
指定父目录
你试过了吗? – 123
这绝不是一个特定于bash的问题 - 除'〜'以外,它们不使用任何shell构造,并且通常是关于UNIX的问题。 '〜'不是特定于bash的 - 所有POSIX shell都支持它。 (实际上,你的主目录也不是shell本地值 - 它是你操作系统帐户设置的一部分,即使你的操作系统根本没有使用本地UNIX shell,它仍然存在并且有意义。 –