> For the complete documentation index, see [llms.txt](https://dev-notes.vinguyen.blog/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev-notes.vinguyen.blog/notes/deployment-and-operation/linux/rename-a-file-to-folder-name.md).

# Rename a file to folder name

```bash
cp .env /sample-env/$(pwd | xargs basename).env

```
