Difference between revisions of "Shell/Renaming a File"

From Coder Merlin
(Created page with "== Renaming a File == We can rename a file with the '''mv''' (move) command. Let's try it: {{ConsoleLine|john-williams@codermerlin:~$ |echo "Hello" > hello.txt }} {{ConsoleLi...")
 
imported>Anton-krom
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
== Renaming a File ==
We can rename a file with the '''mv''' (move) command. Let's try it:
We can rename a file with the '''mv''' (move) command. Let's try it:


Line 6: Line 5:
{{ConsoleLine|john-williams@codermerlin:~$ |mv hello.txt goodbye.txt}}
{{ConsoleLine|john-williams@codermerlin:~$ |mv hello.txt goodbye.txt}}
{{ConsoleLine|john-williams@codermerlin:~$ |ls }}
{{ConsoleLine|john-williams@codermerlin:~$ |ls }}
{{MerlinMultipageExperienceNavBar}}

Latest revision as of 16:20, 12 December 2021

Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

We can rename a file with the mv (move) command. Let's try it:

john-williams@codermerlin:~$  echo "Hello" > hello.txt

john-williams@codermerlin:~$  ls

john-williams@codermerlin:~$  mv hello.txt goodbye.txt

john-williams@codermerlin:~$  ls