Difference between revisions of "Shell/Deleting a File"

From Coder Merlin
(Created page with "== Deleting a File == We can delete a file with the '''rm''' (remove) command. Let's try it: {{ConsoleLine|john-williams@codermerlin:~$ |echo "Hello" > hello.txt }} {{Console...")
 
Line 6: Line 6:
{{ConsoleLine|john-williams@codermerlin:~$ |rm hello.txt }}
{{ConsoleLine|john-williams@codermerlin:~$ |rm hello.txt }}
{{ConsoleLine|john-williams@codermerlin:~$ |ls }}
{{ConsoleLine|john-williams@codermerlin:~$ |ls }}
{{MerlinMultipageExperienceNavBar}}

Revision as of 10:32, 23 November 2021

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

Deleting a File[edit]

We can delete a file with the rm (remove) command. Let's try it:

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

john-williams@codermerlin:~$  ls

john-williams@codermerlin:~$  rm hello.txt

john-williams@codermerlin:~$  ls