Zolved community solution
| Zolved community solution |
|
How to display prompt before removing/overwriting files/folders on Ubuntu in Console mode
Just follow these simple steps to enable a prompt before overwriting/removing files or folders in Console mode on Ubuntu
-
Go to Applications > Accessories > Terminal to open a terminal window.

-
Enter the following command to make a copy of bash.bashrc file.
sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup

-
Edit bash.bashrc file by typing the following commad at the terminal.
gksudo gedit /etc/bash.bashrc

-
Append the following lines at the end of the file and Save the file.
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

-
Now, a prompt is shown everytime you try to remove or overwrite a file folder.
|
copyright © 2007, IPTouch, Inc.
| Type: | ArticleContent |
| Updated at: | 20 Jun 03:25 |
| Updated by: | Vinaya |
| Tags: | before removing console mode display prompt how display overwriting files prompt before removing overwriting ubuntu console zolved how |
| Keywords: | Zolved How, How display, display prompt, prompt before, before removing, removing overwriting, overwriting files, Ubuntu Console, Console mode, prompt, alert, message, warning, popup, confirm removal of file in ubuntu , display prompt before removing a file in ubuntu |
| Brand: |
Topic > How To Topic > Tips & Tricks Article Source > Authored in Zolved Brand > Ubuntu |
rss feeds | browse | terms of use | privacy policy | faq | site feedback | about ZOLVED™
copyright © 2007, IPTouch, Inc.
del.icio.us
stumble









