Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cp überschreiben bestätigen?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1850
Location: PB, Germany

PostPosted: Thu May 05, 2005 1:25 pm    Post subject: cp überschreiben bestätigen? Reply with quote

Hallo.

Standardmäßig fragt gentoo nicht, wenn cp überschreibt.
Wo wird das festgelegt?
Müßte doch eigentlich in /etc/profiles sein, ich finde aber nichts.

Gruß,
Paolo
Back to top
View user's profile Send private message
_hephaistos_
Advocate
Advocate


Joined: 07 Apr 2004
Posts: 2694
Location: salzburg, austria

PostPosted: Thu May 05, 2005 1:34 pm    Post subject: Reply with quote

da hilft zB ein "alias"
>> man alias

hth,
ciao
Back to top
View user's profile Send private message
smg
Veteran
Veteran


Joined: 13 Aug 2004
Posts: 1402
Location: /home/stephan

PostPosted: Thu May 05, 2005 1:58 pm    Post subject: Reply with quote

Code:
alias cp 'cp -i'


cheers
_________________
GnuPG-Key-ID: 0xF8C275D4
Fingerprint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4
Code:
perl -WTe '($")=$/;print qq(@{[reverse('0'..'100')]}$/BOOM!$/);'
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Thu May 05, 2005 3:42 pm    Post subject: Reply with quote

Stephan - 'ash' wrote:
Code:
alias cp 'cp -i'


cheers


alias cp="cp -i"

Und das dann einfach in die ".bashrc" oder ähnlichem eintragen.
Mfg

Sino
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1850
Location: PB, Germany

PostPosted: Thu May 05, 2005 4:15 pm    Post subject: Reply with quote

alias gibt nur 3 Zeilen für die Farbeinstellung von ls aus.
Jedoch fragt cp nicht beim Überschreiben. Es muß dafür doch irgendwo einen alias geben?

Paolo
Back to top
View user's profile Send private message
_hephaistos_
Advocate
Advocate


Joined: 07 Apr 2004
Posts: 2694
Location: salzburg, austria

PostPosted: Thu May 05, 2005 4:21 pm    Post subject: Reply with quote

hallo,

es wurde schon alles gesagt!

echo "alias cp=\"cp -i\"" >> ~/.bashrc
source ~/.bashrc

hth,
ciao
Back to top
View user's profile Send private message
smg
Veteran
Veteran


Joined: 13 Aug 2004
Posts: 1402
Location: /home/stephan

PostPosted: Thu May 05, 2005 4:29 pm    Post subject: Reply with quote

SinoTech wrote:
Stephan - 'ash' wrote:
Code:
alias cp 'cp -i'


cheers


alias cp="cp -i"

Und das dann einfach in die ".bashrc" oder ähnlichem eintragen.
Mfg

Sino


Danke. scheiss Tippfehler.

cheers.
_________________
GnuPG-Key-ID: 0xF8C275D4
Fingerprint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4
Code:
perl -WTe '($")=$/;print qq(@{[reverse('0'..'100')]}$/BOOM!$/);'
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Thu May 05, 2005 4:41 pm    Post subject: Reply with quote

Stephan - 'ash' wrote:
SinoTech wrote:
Stephan - 'ash' wrote:
Code:
alias cp 'cp -i'


cheers


alias cp="cp -i"

Und das dann einfach in die ".bashrc" oder ähnlichem eintragen.
Mfg

Sino


Danke. scheiss Tippfehler.

cheers.

Alk.-Level stimmt bei dir anscheinend noch nicht. Also nachladen *Proscht* :)

Mfg

Sino
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9625
Location: beyond the rim

PostPosted: Fri May 06, 2005 1:51 am    Post subject: Reply with quote

organ wrote:
Jedoch fragt cp nicht beim Überschreiben.

Was ja auch das Standardverhalten von cp ist.
Quote:
Es muß dafür doch irgendwo einen alias geben?

Nein. Du kannst aber einen erstellen um das Standardverhalten zu ändern (und das wurde ja schon zur genüge beschrieben).
Back to top
View user's profile Send private message
hashier
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2004
Posts: 80
Location: Germany/Braunschweig

PostPosted: Fri May 06, 2005 7:09 am    Post subject: Reply with quote

Nutzt du die bash?
Sonst bringt das
Code:
echo "alias cp=\"cp -i\"" >> ~/.bashrc

naemlich garnichts.

Aber wenn du die Bash deine Shell nennen darfst, dann geht es so.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1850
Location: PB, Germany

PostPosted: Sat May 07, 2005 5:49 pm    Post subject: Reply with quote

Genone wrote:
organ wrote:
Jedoch fragt cp nicht beim Überschreiben.
Was ja auch das Standardverhalten von cp ist.
Danke, genau das war mir vorher unklar - zu sehr Mandrake-verwöhnt. Geht nun in der Bash.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum