0 votes
in Linux by
How to rename a file in Linux?

1 Answer

0 votes
by
How to rename a file in Linux?

There is no specific command to rename a file in Linux. But you use the copy or move command to rename the file.

Using the Move command

$ mv <oldname> <newname>

Using the Copy command

$ cp <oldname> <newname>

And then delete the old file.

$ rm <oldname>

Related questions

+1 vote
asked Feb 20, 2021 in Linux by SakshiSharma
0 votes
asked Nov 15, 2021 in Ruby by Robin
...