Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete a file in terminal? [closed]

Sorry I am a newbie in Terminal.

When creating a PHP file in the terminal on Ubuntu using the following code:

sudo nano /var/www/filename.php

I successfully create a PHP file. However I have no idea how to delete it. Any suggestions?

like image 666
user2707299 Avatar asked Dec 02 '22 17:12

user2707299


1 Answers

Use:

sudo rm /var/www/filename.php

rm stands for "remove files or directories".

like image 122
fedorqui 'SO stop harming' Avatar answered Dec 04 '22 06:12

fedorqui 'SO stop harming'