{"id":5581,"date":"2022-12-20T18:45:31","date_gmt":"2022-12-20T21:45:31","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/rename-man3p\/"},"modified":"2022-12-20T18:45:31","modified_gmt":"2022-12-20T21:45:31","slug":"rename-man3p","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/rename-man3p\/","title":{"rendered":"RENAME (man3p)"},"content":{"rendered":"<h1 align=\"center\">RENAME<\/h1>\n<p> <a href=\"#PROLOG\">PROLOG<\/a><br \/> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#RETURN VALUE\">RETURN VALUE<\/a><br \/> <a href=\"#ERRORS\">ERRORS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#APPLICATION USAGE\">APPLICATION USAGE<\/a><br \/> <a href=\"#RATIONALE\">RATIONALE<\/a><br \/> <a href=\"#FUTURE DIRECTIONS\">FUTURE DIRECTIONS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>PROLOG <a name=\"PROLOG\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This manual page is part of the POSIX Programmer\u2019s Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">rename, renameat \u2014 rename file<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">#include <stdio.h><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int rename(const char *<i>old<\/i>, const char *<i>new<\/i>);<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">#include <fcntl.h><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int renameat(int <i>oldfd<\/i>, const char *<i>old<\/i>, int <i>newfd<\/i>, <br \/> const char *<i>new<\/i>);<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">For <i>rename<\/i>(): The functionality described on this reference page is aligned with the ISO\u00a0C standard. Any conflict between the requirements described here and the ISO\u00a0C standard is unintentional. This volume of POSIX.1-2017 defers to the ISO\u00a0C standard.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>rename<\/i>() function shall change the name of a file. The <i>old<\/i> argument points to the pathname of the file to be renamed. The <i>new<\/i> argument points to the new pathname of the file. If the <i>new<\/i> argument does not resolve to an existing directory entry for a file of type directory and the <i>new<\/i> argument contains at least one non-<slash> character and ends with one or more trailing <slash> characters after all symbolic links have been processed, <i>rename<\/i>() shall fail.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If either the <i>old<\/i> or <i>new<\/i> argument names a symbolic link, <i>rename<\/i>() shall operate on the symbolic link itself, and shall not resolve the last component of the argument. If the <i>old<\/i> argument and the <i>new<\/i> argument resolve to either the same existing directory entry or different directory entries for the same existing file, <i>rename<\/i>() shall return successfully and perform no other action.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the <i>old<\/i> argument points to the pathname of a file that is not a directory, the <i>new<\/i> argument shall not point to the pathname of a directory. If the link named by the <i>new<\/i> argument exists, it shall be removed and <i>old<\/i> renamed to <i>new<\/i>. In this case, a link named <i>new<\/i> shall remain visible to other threads throughout the renaming operation and refer either to the file referred to by <i>new<\/i> or <i>old<\/i> before the operation began. Write access permission is required for both the directory containing <i>old<\/i> and the directory containing <i>new<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the <i>old<\/i> argument points to the pathname of a directory, the <i>new<\/i> argument shall not point to the pathname of a file that is not a directory. If the directory named by the <i>new<\/i> argument exists, it shall be removed and <i>old<\/i> renamed to <i>new<\/i>. In this case, a link named <i>new<\/i> shall exist throughout the renaming operation and shall refer either to the directory referred to by <i>new<\/i> or <i>old<\/i> before the operation began. If <i>new<\/i> names an existing directory, it shall be required to be an empty directory.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If either <i>pathname<\/i> argument refers to a path whose final component is either dot or dot-dot, <i>rename<\/i>() shall fail.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the <i>old<\/i> argument points to a pathname of a symbolic link, the symbolic link shall be renamed. If the <i>new<\/i> argument points to a pathname of a symbolic link, the symbolic link shall be removed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>old<\/i> pathname shall not name an ancestor directory of the <i>new<\/i> pathname. Write access permission is required for the directory containing <i>old<\/i> and the directory containing <i>new<\/i>. If the <i>old<\/i> argument points to the pathname of a directory, write access permission may be required for the directory named by <i>old<\/i>, and, if it exists, the directory named by <i>new<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the link named by the <i>new<\/i> argument exists and the file\u2019s link count becomes 0 when it is removed and no process has the file open, the space occupied by the file shall be freed and the file shall no longer be accessible. If one or more processes have the file open when the last link is removed, the link shall be removed before <i>rename<\/i>() returns, but the removal of the file contents shall be postponed until all references to the file are closed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Upon successful completion, <i>rename<\/i>() shall mark for update the last data modification and last file status change timestamps of the parent directory of each file.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the <i>rename<\/i>() function fails for any reason other than <b>[EIO]<\/b>, any file named by <i>new<\/i> shall be unaffected.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>renameat<\/i>() function shall be equivalent to the <i>rename<\/i>() function except in the case where either <i>old<\/i> or <i>new<\/i> specifies a relative path. If <i>old<\/i> is a relative path, the file to be renamed is located relative to the directory associated with the file descriptor <i>oldfd<\/i> instead of the current working directory. If <i>new<\/i> is a relative path, the same happens only relative to the directory associated with <i>newfd<\/i>. If the access mode of the open file description associated with the file descriptor is not O_SEARCH, the function shall check whether directory searches are permitted using the current permissions of the directory underlying the file descriptor. If the access mode is O_SEARCH, the function shall not perform the check.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <i>renameat<\/i>() is passed the special value AT_FDCWD in the <i>oldfd<\/i> or <i>newfd<\/i> parameter, the current working directory shall be used in the determination of the file for the respective <i>path<\/i> parameter.<\/p>\n<h2>RETURN VALUE <a name=\"RETURN VALUE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Upon successful completion, the <i>rename<\/i>() function shall return 0. Otherwise, it shall return \u22121, <i>errno<\/i> shall be set to indicate the error, and neither the file named by <i>old<\/i> nor the file named by <i>new<\/i> shall be changed or created.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Upon successful completion, the <i>renameat<\/i>() function shall return 0. Otherwise, it shall return \u22121 and set <i>errno<\/i> to indicate the error.<\/p>\n<h2>ERRORS <a name=\"ERRORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>rename<\/i>() and <i>renameat<\/i>() functions shall fail if:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EACCES<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>A component of either path prefix denies search permission; or one of the directories containing <i>old<\/i> or <i>new<\/i> denies write permissions; or, write permission is required and is denied for a directory pointed to by the <i>old<\/i> or <i>new<\/i> arguments.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EBUSY<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>The directory named by <i>old<\/i> or <i>new<\/i> is currently in use by the system or another process, and the implementation considers this an error.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\">[EEXIST]\u00a0or\u00a0[ENOTEMPTY]<\/p>\n<p style=\"margin-left:29%;\">The link named by <i>new<\/i> is a directory that is not an empty directory.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EINVAL<\/b><\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>The <i>old<\/i> pathname names an ancestor directory of the <i>new<\/i> pathname, or either pathname argument contains a final component that is dot or dot-dot.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EIO<\/b><\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>A physical I\/O error has occurred.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EISDIR<\/b><\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>The <i>new<\/i> argument points to a directory and the <i>old<\/i> argument points to a file that is not a directory.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>ELOOP<\/b><\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>A loop exists in symbolic links encountered during resolution of the <i>path<\/i> argument.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EMLINK<\/b><\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>The file named by <i>old<\/i> is a directory, and the link count of the parent directory of <i>new<\/i> would exceed {LINK_MAX}.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>ENAMETOOLONG<\/b><\/p>\n<p style=\"margin-left:29%;\">The length of a component of a pathname is longer than {NAME_MAX}.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"11%\">\n<p><b>ENOENT<\/b><\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"71%\">\n<p>The link named by <i>old<\/i> does not name an existing file, a component of the path prefix of <i>new<\/i> does not exist, or either <i>old<\/i> or <i>new<\/i> points to an empty string.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"11%\">\n<p><b>ENOSPC<\/b><\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"71%\">\n<p>The directory that would contain <i>new<\/i> cannot be extended.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"11%\">\n<p><b>ENOTDIR<\/b><\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"71%\">\n<p>A component of either path prefix names an existing file that is neither a directory nor a symbolic link to a directory; or the <i>old<\/i> argument names a directory and the <i>new<\/i> argument names a non-directory file; or the <i>old<\/i> argument contains at least one non-<slash> character and ends with one or more trailing <slash> characters and the last pathname component names an existing file that is neither a directory nor a symbolic link to a directory; or the <i>old<\/i> argument names an existing non-directory file and the <i>new<\/i> argument names a nonexistent file, contains at least one non-<slash> character, and ends with one or more trailing <slash> characters; or the <i>new<\/i> argument names an existing non-directory file, contains at least one non-<slash> character, and ends with one or more trailing <slash> characters.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>EPERM<\/b> or <b>EACCES<\/b><\/p>\n<p style=\"margin-left:29%;\">The S_ISVTX flag is set on the directory containing the file referred to by <i>old<\/i> and the process does not satisfy the criteria specified in the Base Definitions volume of POSIX.1-2017, <i>Section 4.3<\/i>, <i>Directory Protection<\/i> with respect to <i>old<\/i>; or <i>new<\/i> refers to an existing file, the S_ISVTX flag is set on the directory containing this file, and the process does not satisfy the criteria specified in the Base Definitions volume of POSIX.1-2017, <i>Section 4.3<\/i>, <i>Directory Protection<\/i> with respect to this file.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>EROFS<\/b><\/p>\n<\/td>\n<td width=\"11%\"><\/td>\n<td width=\"71%\">\n<p>The requested operation requires writing in a directory on a read-only file system.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>EXDEV<\/b><\/p>\n<\/td>\n<td width=\"11%\"><\/td>\n<td width=\"71%\">\n<p>The links named by <i>new<\/i> and <i>old<\/i> are on different file systems and the implementation does not support links between file systems.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">In addition, the <i>renameat<\/i>() function shall fail if:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\"><b>EACCES<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">The access mode of the open file description associated with <i>oldfd<\/i> or <i>newfd<\/i> is not O_SEARCH and the permissions of the directory underlying <i>oldfd<\/i> or <i>newfd<\/i>, respectively, do not permit directory searches.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EBADF<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>The <i>old<\/i> argument does not specify an absolute path and the <i>oldfd<\/i> argument is neither AT_FDCWD nor a valid file descriptor open for reading or searching, or the <i>new<\/i> argument does not specify an absolute path and the <i>newfd<\/i> argument is neither AT_FDCWD nor a valid file descriptor open for reading or searching.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>ENOTDIR<\/b><\/p>\n<p style=\"margin-left:22%;\">The <i>old<\/i> or <i>new<\/i> argument is not an absolute path and <i>oldfd<\/i> or <i>newfd<\/i>, respectively, is a file descriptor associated with a non-directory file.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>rename<\/i>() and <i>renameat<\/i>() functions may fail if:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>EBUSY<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>The file named by the <i>old<\/i> or <i>new<\/i> arguments is a named STREAM.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>ELOOP<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>More than {SYMLOOP_MAX} symbolic links were encountered during resolution of the <i>path<\/i> argument.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>ENAMETOOLONG<\/b><\/p>\n<p style=\"margin-left:22%;\">The length of a pathname exceeds {PATH_MAX}, or pathname resolution of a symbolic link produced an intermediate result with a length that exceeds {PATH_MAX}.<\/p>\n<p style=\"margin-left:11%;\"><b>ETXTBSY<\/b><\/p>\n<p style=\"margin-left:22%;\">The file named by <i>new<\/i> exists and is the last directory entry to a pure procedure (shared text) file that is being executed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>The following sections are informative.<\/i><\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i><b>Renaming a File<\/b><\/i> <br \/> The following example shows how to rename a file named <b>\/home\/cnd\/mod1<\/b> to <b>\/home\/cnd\/mod2<\/b>.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">#include <stdio.h><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">int status; <br \/> &#8230; <br \/> status = rename(&#8220;\/home\/cnd\/mod1&#8221;, &#8220;\/home\/cnd\/mod2&#8221;);<\/p>\n<h2>APPLICATION USAGE <a name=\"APPLICATION USAGE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Some implementations mark for update the last file status change timestamp of renamed files and some do not. Applications which make use of the last file status change timestamp may behave differently with respect to renamed files unless they are designed to allow for either behavior.<\/p>\n<h2>RATIONALE <a name=\"RATIONALE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This <i>rename<\/i>() function is equivalent for regular files to that defined by the ISO\u00a0C standard. Its inclusion here expands that definition to include actions on directories and specifies behavior when the <i>new<\/i> parameter names a file that already exists. That specification requires that the action of the function be atomic.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">One of the reasons for introducing this function was to have a means of renaming directories while permitting implementations to prohibit the use of <i>link<\/i>() and <i>unlink<\/i>() with directories, thus constraining links to directories to those made by <i>mkdir<\/i>().<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The specification that if <i>old<\/i> and <i>new<\/i> refer to the same file is intended to guarantee that:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">rename(&#8220;x&#8221;, &#8220;x&#8221;);<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">does not remove the file.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Renaming dot or dot-dot is prohibited in order to prevent cyclical file system paths.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">See also the descriptions of <b>[ENOTEMPTY]<\/b> and <b>[ENAMETOOLONG]<\/b> in <i>rmdir<\/i>() and <b>[EBUSY]<\/b> in <i>unlink<\/i>(). For a discussion of <b>[EXDEV]<\/b>, see <i>link<\/i>().<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The purpose of the <i>renameat<\/i>() function is to rename files in directories other than the current working directory without exposure to race conditions. Any part of the path of a file could be changed in parallel to a call to <i>rename<\/i>(), resulting in unspecified behavior. By opening file descriptors for the source and target directories and using the <i>renameat<\/i>() function it can be guaranteed that that renamed file is located correctly and the resulting file is in the desired directory.<\/p>\n<h2>FUTURE DIRECTIONS <a name=\"FUTURE DIRECTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">None.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>link<\/i>(), <i>rmdir<\/i>(), <i>symlink<\/i>(), <i>unlink<\/i>()<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The Base Definitions volume of POSIX.1-2017, <i>Section 4.3<\/i>, <i>Directory Protection<\/i>, <b><fcntl.h><\/b>, <b><stdio.h><\/b><\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology &#8212; Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http:\/\/www.opengroup.org\/unix\/online.html .<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https:\/\/www.kernel.org\/doc\/man-pages\/reporting_bugs.html .<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  rename, renameat \u2014 rename file <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3779,1],"tags":[1594,2467],"class_list":["post-5581","post","type-post","status-publish","format-standard","hentry","category-3pm-perl-llamadas-de-bibliotecas","category-sin-categoria","tag-man3p","tag-rename"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/5581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=5581"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/5581\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=5581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=5581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=5581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}