Shawn McKinney wrote: > mv apache-tomcat-8.0.30 /usr/local/tomcat8 > > Not sure why on a Mac (in Bash) the mv command appends distro name to the > path and not in Linux.
BSD (Mac) vs. GNU (Linux) seem to differ in behavior when the second parameter is a directory that already exists: BSD mv: NAME mv -- move files SYNOPSIS mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory DESCRIPTION In its first form, the mv utility renames the file named by the source operand to the destination path named by the target operand. This form is assumed when the last operand does not name an already existing directory. In its second form, mv moves each file named by a source operand to a destination file in the existing directory named by the directory operand. The des tination path for each operand is the pathname produced by the concatenation of the last operand, a slash, and the final pathname component of the named file. GNU mv: `mv' moves or renames files (or directories). Synopses: mv [OPTION]... [-T] SOURCE DEST mv [OPTION]... SOURCE... DIRECTORY mv [OPTION]... -t DIRECTORY SOURCE... * If two file names are given, `mv' moves the first file to the second. * If the `--target-directory' (`-t') option is given, or failing that if the last file is a directory and the `--no-target-directory' (`-T') option is not given, `mv' moves each SOURCE file to the specified directory, using the SOURCEs' names.