alan:~/LIME_SRC/soapySDR$ mkdir mybuild
alan:~/LIME_SRC/soapySDR$ cd mybuild
alan:~/LIME_SRC/soapySDR/mybuild$ cp /LIME_SRC/soapySDR/name "CMakeLists.txt" /LIME_SRC/soapySDR/mybuild
cp: target '/LIME_SRC/soapySDR/mybuild' is not a directory
答案1
你必须使用
cp LIME_SRC/soapySDR/name "CMakeLists.txt" LIME_SRC/soapySDR/mybuild
或者
cp ~/LIME_SRC/soapySDR/name "CMakeLists.txt" ~/LIME_SRC/soapySDR/mybuild
代替
cp /LIME_SRC/soapySDR/name "CMakeLists.txt" /LIME_SRC/soapySDR/mybuild
因为你的曲目mybuild
位于/home/alan/LIME_SRC/soapySDR/mybuild
而不是/LIME_SRC/soapySDR/mybuild