-1

I am using termux in my android but I get the following error when I want to copy some data from sdcard to $HOME IN TERMUX the following error shows up:
missing destination file operand after '/sdcard/ngrok/ngrok'
here are commands:

   $ cp /sdcard/ngrok/ngrok
   cp: missing destination file operand after '/sdcard/ngrok/ngrok'   
   try 'cp --help' for more information.

closed as off-topic by Romeo Ninov, G-Man, JigglyNaga, Isaac, Kusalananda Nov 13 '18 at 22:59

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Requests for learning materials (tutorials, how-tos etc.) are off topic. The only exception is questions about where to find official documentation (e.g. POSIX specifications). See the Help Center and our Community Meta for more information." – Romeo Ninov, Isaac
If this question can be reworded to fit the rules in the help center, please edit the question.

1

You said that you want to copy file from sdcard to $HOME, but your cp command doesn't have destination. Format of copy command is cp source destination. So right command is

cp sdcard/ngrok/ngrok $HOME

Make sure that sdcard/ngrok/ngrok is a file. If it is a directory then use -r option i.e.

cp -r sdcard/ngrok/ngrok $HOME

Also try cp --help for more information about cp command.

  • Thanks but it's not working friend – Ronny Nov 13 '18 at 10:15
  • 1
    @Ronny What is the error? – Prvt_Yadv Nov 13 '18 at 10:16
  • @Ronny may be it is not file, if it directory then use -r option. See update. – Prvt_Yadv Nov 13 '18 at 16:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.