|
|||
|
Quote:
cd /path/to/backup/folder/ The command below will delete the file named 'backup-file'. rm backup-file
__________________
JaguarPC |
|
||||
|
Quote:
Code:
# man rm The command-line (CLI) switch "-r" should only be used if needing to "recursively" remove a directory and all of the contents within that directory. As a safety precaution, I recommend to not use this option unless absolutely required for removing an entire directory structure and its contents. The CLI switch "-v"may be used to enable verbose output that will explain what is being done, such as indicating when a file is removed. I recommend using this option so that there will be a more visual record of what actions are performed, excellent for copying-and-pasting. The CLI switch "-f" may be used if needing to force the removal without prompting and ignoring nonexistent files. The CLI switch "-i" may be used if needing to interactively confirm the removal of each file by answering a prompt for yes or no; this may be a desired option to use if there is any uncertainty involved in what is needing to be removed. The following example could be used to forcefully remove a file named "backupfile.tar.gz" that is located in the same directory that you're currently in (where "backupfile.tar.gz" should be replaced with the actual file name involved): Code:
# rm -fv backupfile.tar.gz Code:
# rm -iv /path/to/backupfile.tar.gz
__________________
For hands-on assistance please reference our new support options page: Where should I go for support? -- cPanel Don, Technical Analyst - Support Options - Additional Support Options - Mailing Lists |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| which files & folders to backup, in order to backup system files? | SoftDux | cPanel and WHM Data Protection | 0 | 12-02-2008 02:04 PM |
| Can I delete these files? | erinspice | cPanel and WHM Discussions | 1 | 03-11-2008 12:40 PM |
| Delete Putty Private Key | sparek-3 | cPanel and WHM Discussions | 0 | 02-05-2008 11:24 AM |
| Download Files Using SSH & Putty | Supafly | cPanel and WHM Discussions | 10 | 03-18-2006 07:36 AM |
| Backup restore error on Putty ? | Mike1984 | cPanel and WHM Discussions | 0 | 09-19-2003 08:23 AM |