我希望从脚本中获得完整路径指示符,即使用户输入'./‘或'/~’
#!/bin/bash
echo "Enter the directory"
read DIRECTORY #how to store the full-path instead of something like ./
echo "$DIRECTORY"
我在文件系统ext和git 2.26.0中使用Ubuntu 18.04。我想将一个macOS框架添加到我的git存储库中,但失败了,并显示以下错误消息: $ git add -f /var/opt/project1/Foo.framework/Headers/Interior.h
fatal: pathspec '/var/opt/project1/Foo.framework/Headers/Interior.h' is beyond a symbolic link 项目的根目录位于/var/opt/project1下。这是ls返回的内容: Foo.framework $ l
我正在尝试(在Ubuntu15.05中)压缩一些与我以前版本的操作系统(Ubuntu14.10)相关的文件夹。如果我试图用“右键单击>压缩”压缩这些文件夹,则会产生以下错误:
📷
我已经尝试压缩其他工具,如tar,7z和zip,但没有结果。
当我试图对命令行执行同样的操作(以便生成任何错误消息)时,以下内容将被吸收:
$ zip -r install_files.zip ./install_files/*
zip warning: name not matched: ./install_files/adobe/Acrobat/9.0/Cert/curl-ca-bundle.crt
zip