You may need to drag the file into the Terminal window instead of typing out its name.
As with all Terminal commands that work with existing paths, you need to provide the correct path. Jul 11, AM. In addition to the error in your destination path, there's also the question of whether the file you're moving is actually in the current working directory. That typically defaults to your home folder, so if the file in question isn't there, you'll need to provide a full path to it, or use the cd command to change the working directory. For example, if you downloaded this file to your desktop, you'd use:.
Note that you can insert the path to a file, if you aren't sure what it is, by simply dropping the file on the Terminal window. Thanks - I'd intended mentioning the drag the file into the terminal window trick. It is one of the many nice things about the terminal. For future reference - try using the "man" command.
Most of the key Unix commands are located and described with a built-in manual called "man". Just type "man" and whatever command you need to find the syntax for.
permissions - linux mv command not working on server, works on local machine - Server Fault
For example, try "man mkdir", "man ls-a" or "man cat". Jul 11, AM in response to boblavergne In response to boblavergne. I believe that's where the "usage" text Albert posted came from. Aside from that, though, the man pages don't tell you everything about how to use a command, and are often quite poorly written and difficult to understand. It isn't; the man text doesn't contain 'usage' in that context, but the error message sometimes created by mv does.
Jul 11, PM in response to albert In response to albert Jul 11, PM. I don't know though is there a way to check other than Finder??
What’s Wrong With mv?
It only takes a minute to sign up. I have this in my script. But is returning an error. If I execute the command in the console works fine.
I want move some files what starts in T from one folder to another. You seem to be using the variable PATH in your script. This happens to be the variable that the shell uses to look up executables. This means that if you change it to something else which is not a : -delimited list of paths, or to a path that does not contain the executables that the script uses, the shell may no longer find things like mv or other standard utilities.
It is preferable to use lowercase letters in shell script variables for this reason it's a matter of taste 1 , or to at least be aware that there are variable that the shell uses for various things, and that you should avoid modifying these unless, of course, you'd like to alter the shell's behaviour. Incidentally, the cd on the line above does work.
Why bother with the command line?
It's because it's a special utility built into to shell itself. As a side note, make a habit of double-quoting your variables. All UNIX systems. Windows 7.
Windows Server R2. Windows 8. Windows Server Windows The -d and -s options are only available on Windows. Commands: cp , ln , pending , rm.