Linux mv command

If you would like to move a file from one location to another on your Linux Dedicated Server or VPS system you can use the Linux mv command. It is a very handy command that most of the sysadmins use daily.

Move a file from one location to another using Linux mv command

mv /path/to/file /new/path/to/file

Move several files into a directory

mv -t directory fileToMove1 fileToMove2

Renaming a file with mv

Moving a file in the same directory with a different name will simply rename it

mv oldFileName newFileName
  • 0 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Související články

Linux tar Command

The Linux tar command is used to compress and extract files to and from an archive. In this...

Linux file command

The file command is used to check a file’s type and contents in Linux environment. It is most...

Linux export command

When you’re managing your shell’s variables and you wish to save them to your environment you can...

Linux su command

The su command is most commonly used to switch to another user. You will then be able to run...

Linux wc command

If you’re interested in finding the word count or lines of a file in your Linux environment you...

Powered by WHMCompleteSolution