LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-03-2005, 01:26 PM   #1
GruiX
Member
 
Registered: Jan 2004
Location: Toulouse (France)
Distribution: Arch Linux
Posts: 46

Rep: Reputation: 15
rm -i


Hello

On other systems, i have seen that when want to remove a file, there is a confirmation needed as if i had used the "-i" option
I'd like to turn this option by default, because a few weeks ago, i lost all the content of a directory because i typed "rm *" instead of "rm *.bak" (i wanted to hit the numpad point but i slipped to the numpad Enter)
Thanx
 
Old 01-03-2005, 01:34 PM   #2
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
make an alias in your ~./bashrc file.

Code:
alias rm="rm -i"

Last edited by Linux~Powered; 01-03-2005 at 01:36 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration