{
    "content": [
        {
            "type": "text",
            "text": "# mv (info)\n\n## Sections\n\n- **File: coreutils.info,  Node: mv invocation,  Next: rm invocation,  Prev: install invocation,  Up: Basic operations** (1 subsections)\n- **Prior to version '4.0' of the fileutils, 'mv' could move only regular**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "mv",
        "section": "",
        "mode": "info",
        "summary": null,
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "File: coreutils.info,  Node: mv invocation,  Next: rm invocation,  Prev: install invocation,  Up: Basic operations",
                "lines": 1,
                "subsections": [
                    {
                        "name": "11.4 'mv': Move (rename) files",
                        "lines": 15
                    }
                ]
            },
            {
                "name": "Prior to version '4.0' of the fileutils, 'mv' could move only regular",
                "lines": 102,
                "subsections": []
            }
        ],
        "sections": {
            "File: coreutils.info,  Node: mv invocation,  Next: rm invocation,  Prev: install invocation,  Up: Basic operations": {
                "content": "",
                "subsections": [
                    {
                        "name": "11.4 'mv': Move (rename) files",
                        "content": "'mv' moves or renames files (or directories).  Synopses:\n\nmv [OPTION]... [-T] SOURCE DEST\nmv [OPTION]... SOURCE... DIRECTORY\nmv [OPTION]... -t DIRECTORY SOURCE...\n\n* If two file names are given, 'mv' moves the first file to the\nsecond.\n\n* If the '--target-directory' ('-t') option is given, or failing that\nif the last file is a directory and the '--no-target-directory'\n('-T') option is not given, 'mv' moves each SOURCE file to the\nspecified directory, using the SOURCEs' names.\n\n'mv' can move any type of file from one file system to another."
                    }
                ]
            },
            "Prior to version '4.0' of the fileutils, 'mv' could move only regular": {
                "content": "files between file systems.  For example, now 'mv' can move an entire\ndirectory hierarchy including special device files from one partition to\nanother.  It first uses some of the same code that's used by 'cp -a' to\ncopy the requested directories and files, then (assuming the copy\nsucceeded) it removes the originals.  If the copy fails, then the part\nthat was copied to the destination partition is removed.  If you were to\ncopy three directories from one partition to another and the copy of the\nfirst directory succeeded, but the second didn't, the first would be\nleft on the destination partition and the second and third would be left\non the original partition.\n\n'mv' always tries to copy extended attributes (xattr), which may\ninclude SELinux context, ACLs or Capabilities.  Upon failure all but\n'Operation not supported' warnings are output.\n\nIf a destination file exists but is normally unwritable, standard\ninput is a terminal, and the '-f' or '--force' option is not given, 'mv'\nprompts the user for whether to replace the file.  (You might own the\nfile, or have write permission on its directory.)  If the response is\nnot affirmative, the file is skipped.\n\nWarning: Avoid specifying a source name with a trailing slash, when\nit might be a symlink to a directory.  Otherwise, 'mv' may do something\nvery surprising, since its behavior depends on the underlying rename\nsystem call.  On a system with a modern Linux-based kernel, it fails\nwith 'errno=ENOTDIR'.  However, on other systems (at least FreeBSD 6.1\nand Solaris 10) it silently renames not the symlink but rather the\ndirectory referenced by the symlink.  *Note Trailing slashes::.\n\nNote: 'mv' will only replace empty directories in the destination.\nConflicting populated directories are skipped with a diagnostic.\n\nThe program accepts the following options.  Also see *note Common\noptions::.\n\n'-b'\n'--backup[=METHOD]'\n*Note Backup options::.  Make a backup of each file that would\notherwise be overwritten or removed.\n\n'-f'\n'--force'\nDo not prompt the user before removing a destination file.  If you\nspecify more than one of the '-i', '-f', '-n' options, only the\nfinal one takes effect.\n\n'-i'\n'--interactive'\nPrompt whether to overwrite each existing destination file,\nregardless of its permissions.  If the response is not affirmative,\nthe file is skipped.  If you specify more than one of the '-i',\n'-f', '-n' options, only the final one takes effect.\n\n'-n'\n'--no-clobber'\nDo not overwrite an existing file; silently do nothing instead.  If\nyou specify more than one of the '-i', '-f', '-n' options, only the\nfinal one takes effect.  This option is mutually exclusive with\n'-b' or '--backup' option.\n\n'-u'\n'--update'\nDo not move a non-directory that has an existing destination with\nthe same or newer modification timestamp.  If the move is across\nfile system boundaries, the comparison is to the source timestamp\ntruncated to the resolutions of the destination file system and of\nthe system calls used to update timestamps; this avoids duplicate\nwork if several 'mv -u' commands are executed with the same source\nand destination.  This option is ignored if the '-n' or\n'--no-clobber' option is also specified.\n\n'-v'\n'--verbose'\nPrint the name of each file before moving it.\n\n'--strip-trailing-slashes'\nRemove any trailing slashes from each SOURCE argument.  *Note\nTrailing slashes::.\n\n'-S SUFFIX'\n'--suffix=SUFFIX'\nAppend SUFFIX to each backup file made with '-b'.  *Note Backup\noptions::.\n\n'-t DIRECTORY'\n'--target-directory=DIRECTORY'\nSpecify the destination DIRECTORY.  *Note Target directory::.\n\n'-T'\n'--no-target-directory'\nDo not treat the last operand specially when it is a directory or a\nsymbolic link to a directory.  *Note Target directory::.\n\n'-Z'\n'--context'\nThis option functions similarly to the 'restorecon' command, by\nadjusting the SELinux security context according to the system\ndefault type for destination files and each created directory.\n\nAn exit status of zero indicates success, and a nonzero value\nindicates failure.\n",
                "subsections": []
            }
        }
    }
}