LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-19-2004, 05:47 AM   #1
stand
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.

Thanks,
Stand
 
Old 04-19-2004, 06:21 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
In your ~/.bashrc you can add something like this:
Code:
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:
Code:
if [ -e ~/.bashrc ]
then
    source ~/.bashrc
fi
This is a very efficient way to set "shortcuts" and I use it extensively for ssh connections ("alias bleh='ssh -X username@host.com'" and so on) and a host of other things.

Håkan
 
  


Reply


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 04:39 PM
FC2 can not start alone (in non-interactive mode) unsem Fedora 2 11-09-2004 01:59 AM
getting rid of interactive mode in MDK 10 howto? Lleb_KCir Linux - Software 10 04-21-2004 03:58 PM
not able to get into interactive mode when linux is booting up? anekkan Linux - Newbie 1 09-06-2003 11:06 PM
SuSE 8.1 - Is there an interactive mode during load? gracecourt Linux - Newbie 3 12-24-2002 11:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:54 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