Shell/Deleting a File

From Coder Merlin

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



CoderMerlin™ proudly recommends:
HintIcon.png

Your purchase via these links helps keep  Coder Merlin™ 's orbuculum ablaze. As an Amazon Associate we earn from qualifying purchases. Thank you for your support!


Designed with pride in Silicon Valley, CA, USA