cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Welcome to Cisco Firewalls Community


123
Views
5
Helpful
2
Replies
Highlighted
Beginner

FTD 2110: Delete Files Through CLI

Could anyone advise on how to delete old update files on a 2110 FTD appliance through the CLI? I can browse to the /var/sf/updates directory but there isn't a delete command. I know I'm probably just missing something simple here.

 

I used the 'Expert' mode to get to the directory and can see the files using 'dir'.

1 ACCEPTED SOLUTION

Accepted Solutions
Beginner

Re: FTD 2110: Delete Files Through CLI

The "expert" mode opens up a Linux "sh" shell. In that case, common Linux commands work.

  1. You'll first want to list the contents of the directory using "ls -lh" --> this will show you the access rights and the file sizes.
  2. Then, you'll notice that the file owner is "root", so please use "sudo" before your deletion command
  3. Finally, execute "sudo rm [filename]" in order to delete a file. the default "admin" user should have superuser rights, so just enter your login password and the command should execute correctly.

Be very careful with what you delete, as this shell has system access to your filesystem..

 

Good luck!

 

2 REPLIES 2
Beginner

Re: FTD 2110: Delete Files Through CLI

The "expert" mode opens up a Linux "sh" shell. In that case, common Linux commands work.

  1. You'll first want to list the contents of the directory using "ls -lh" --> this will show you the access rights and the file sizes.
  2. Then, you'll notice that the file owner is "root", so please use "sudo" before your deletion command
  3. Finally, execute "sudo rm [filename]" in order to delete a file. the default "admin" user should have superuser rights, so just enter your login password and the command should execute correctly.

Be very careful with what you delete, as this shell has system access to your filesystem..

 

Good luck!

 

Beginner

Re: FTD 2110: Delete Files Through CLI

Thanks very much for the detailed response. I have now followed your instructions and have deleted the old update files. I'm a bit of a beginner with the CLI commands, so the help is much appreciated.

Thanks again!