Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-19-2004, 04:47 AM   #1
LQ Newbie
Registered: Aug 2002
Posts: 23

Rep: Reputation: 15
permanant interactive mode

Hi all,

On SuSe linux, when I run $rm filename, it never ask for my confirmation, but it does on Redhat. I know I can run $rm -i filename if I want it asks for my confirmation, but just make sure if there is another way to make it ask me without using -i.

Old 04-19-2004, 05:21 AM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
In your ~/.bashrc you can add something like this:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
Also make sure your ~/.bashrc is sourced from your ~/.bash_profile so the aliases above will always be set:
if [ -e ~/.bashrc ]
    source ~/.bashrc
This is a very efficient way to set "shortcuts" and I use it extensively for ssh connections ("alias bleh='ssh -X'" and so on) and a host of other things.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
permanant aliases jsheffie Linux - Newbie 5 01-06-2005 03:39 PM
FC2 can not start alone (in non-interactive mode) unsem Fedora 2 11-09-2004 12:59 AM
getting rid of interactive mode in MDK 10 howto? Lleb_KCir Linux - Software 10 04-21-2004 02:58 PM
not able to get into interactive mode when linux is booting up? anekkan Linux - Newbie 1 09-06-2003 10:06 PM
SuSE 8.1 - Is there an interactive mode during load? gracecourt Linux - Newbie 3 12-24-2002 10:58 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:30 PM.

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