2

How to move content of one directory into another directory? I want to move content from /Downloads/kafka_2.11-1.0.1 into directory /usr/local/bin/kafka

I tried to move it using solutions found on the web but it doesnt work.

$ mv /Downloads/kafka_2.11-1.0.1/* /usr/local/bin/kafka

produces error:

mv: cannot stat ‘/Downloads/kafka_2.11-1.0.1/*’: No such file or directory
mat2
  • 21

2 Answers2

2

Please try

sudo mv ~/Downloads/kafka_2.11-1.0.1/* /usr/local/bin/kafka

assuming you have your Downloads folder in your home directory. Anyway you need to run it with sudo to move it to /usr/local/bin/.

sinecode
  • 205
  • 1
  • 9
-1

You use it incorrectly. Try mv kafva newdirectory. Or you did specify directory path incorrectly, so it cannot find /Downloads/tra-ta-ta/*

Update: Are you really have Downloads in root directory? Either path is incorrect or you dont have enough permissions, use sudo mv ...

LeonidMew
  • 2,802