0
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
2
  • 5
    You're working in ~/LIME_SRC/soapySDR but copying to /LIME_SRC/soapySDR/....
    – muru
    Jun 11, 2018 at 9:20
  • ~/LIME_SRC does not equal /LIME_SRC. What are you trying to achieve? Please elaborate.
    – Melebius
    Jun 11, 2018 at 9:28

1 Answer 1

5

you must use

cp LIME_SRC/soapySDR/name "CMakeLists.txt" LIME_SRC/soapySDR/mybuild

or

cp ~/LIME_SRC/soapySDR/name "CMakeLists.txt" ~/LIME_SRC/soapySDR/mybuild

instead of

cp /LIME_SRC/soapySDR/name "CMakeLists.txt" /LIME_SRC/soapySDR/mybuild

because your repertory mybuild is located in /home/alan/LIME_SRC/soapySDR/mybuild and not in /LIME_SRC/soapySDR/mybuild

2
  • 2
    I think you should explicitly mention that ~ stands for the home directory, i.e. /home/alan probably...
    – Byte Commander
    Jun 11, 2018 at 9:25
  • i deduct it with the information of his question, we see the user name
    – damadam
    Jun 11, 2018 at 9:29

Not the answer you're looking for? Browse other questions tagged .