---
name: "lfc-rename"
section: "1"
platform: "linux"
package: "lfc"
version: "1.10.0-2+b3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/lfc-rename"
---

# lfc-rename(1)

rename a LFC file or directory in the name server

## NAME

lfc-rename - rename a LFC file or directory in the name server

## SYNOPSIS

**lfc-rename** *oldpath* *newpath*

## DESCRIPTION

**lfc-rename** renames a LFC file or directory in the name server.

This requires write permission in the parent directories.

If *oldpath* or *newpath* does not start with **/**, it is prefixed by the content of the **LFC\_HOME** environment variable.

## EXIT STATUS

This program returns 0 if the operation was successful or \>0 if the operation failed.

## SEE ALSO

**[Castor\_limits(4)](/Castor_limits/4.md)**, **[lfc\_rename(3)](/lfc_rename/3.md)**

## AUTHOR

**LCG Grid Deployment** Team
