用realpath
即可。
searchstar@searchstar-PC:/tmp/test$ ls
chroot test2.sh test3.sh test4.sh test5.sh test.sh
searchstar@searchstar-PC:/tmp/test$ realpath test3.sh
/tmp/test/test3.sh
用realpath
即可。
searchstar@searchstar-PC:/tmp/test$ ls
chroot test2.sh test3.sh test4.sh test5.sh test.sh
searchstar@searchstar-PC:/tmp/test$ realpath test3.sh
/tmp/test/test3.sh
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo