I have a VPS. I want to delete some specific folder inside. /var/BACKUP 01
I want to delete all files in BACKUP 01
How can I do it with SSH access? I'm using linux,please type a command here.
|
feedback
|
This question came from our site for system administrators and desktop support professionals.
|
To delete a file in Linux, you use the 'rm' command. You need to be careful as you have a space in that directory name - Ideally, you should name your directories and files with no spaces in the names. It's not mandatory to do this, but it makes life easier, and is less prone to accidentally deleting something. If there are spaces in the filename, it's best to use quotes around the name. rm -fr "/var/BACKUP 01/" If you want to see what files this will delete before you run it you could use this command ls "/var/BACKUP 01/" | |||||||||||||||
feedback
|
|
If you are logged in to your VPS then
should do the trick. You need to put quotes around the path because of the space in the | |||
|
feedback
|
|
I found a great article while googling, i recommend it. | |||||
feedback
|