Move (rename) files.

Synopsis

mv [OPTION]... SOURCE... DEST

Description

Move or rename files and directories. If the destination is an existing directory, sources are moved into it. Runs in the just-bash WASM shell inside SLICC.

Options

-f, --force Do not prompt before overwriting.

-n, --no-clobber Do not overwrite an existing file.

-v, --verbose Explain what is being done.

--help Display help and exit.

Examples

$ mv old.txt new.txt

Rename a file.

$ mv file.txt /home/user/docs/

Move a file into a directory.

Notes

Operates on the SLICC virtual filesystem (LightningFS/IndexedDB).

See Also

cp, rm, mkdir