mv
for filesystem> mv {flags} (source) (destination)
--verbose, -v
: make mv to be verbose, showing files been moved.--force, -f
: overwrite the destination.--interactive, -i
: ask user to confirm action--update, -u
: move only when the SOURCE file is newer than the destination file(with -f) or when the destination file is missingsource
: the location to move files/directories fromdestination
: the location to move files/directories toinput | output |
---|---|
nothing | nothing |
Rename a file
>mvbefore.txtafter.txt
Move a file into a directory
>mvtest.txtmy/subdirectory
Move many files into a directory
>mv*.txtmy/subdirectory
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/mv.html