View previous topic :: View next topic |
Author |
Message |
Massimo B. Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1411393680427a4354494d7.gif)
Joined: 09 Feb 2005 Posts: 1850 Location: PB, Germany
|
Posted: Thu May 05, 2005 1:25 pm Post subject: cp überschreiben bestätigen? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
_hephaistos_ Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/111921919843cb778389615.jpg)
Joined: 07 Apr 2004 Posts: 2694 Location: salzburg, austria
|
Posted: Thu May 05, 2005 1:34 pm Post subject: |
|
|
da hilft zB ein "alias"
>> man alias
hth,
ciao |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
smg Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1227089703419756a3aa42e.png)
Joined: 13 Aug 2004 Posts: 1402 Location: /home/stephan
|
Posted: Thu May 05, 2005 1:58 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
SinoTech Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Thu May 05, 2005 3:42 pm Post subject: |
|
|
Stephan - 'ash' wrote: |
cheers |
alias cp="cp -i"
Und das dann einfach in die ".bashrc" oder ähnlichem eintragen.
Mfg
Sino |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Massimo B. Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1411393680427a4354494d7.gif)
Joined: 09 Feb 2005 Posts: 1850 Location: PB, Germany
|
Posted: Thu May 05, 2005 4:15 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
_hephaistos_ Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/111921919843cb778389615.jpg)
Joined: 07 Apr 2004 Posts: 2694 Location: salzburg, austria
|
Posted: Thu May 05, 2005 4:21 pm Post subject: |
|
|
hallo,
es wurde schon alles gesagt!
echo "alias cp=\"cp -i\"" >> ~/.bashrc
source ~/.bashrc
hth,
ciao |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
smg Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1227089703419756a3aa42e.png)
Joined: 13 Aug 2004 Posts: 1402 Location: /home/stephan
|
Posted: Thu May 05, 2005 4:29 pm Post subject: |
|
|
SinoTech wrote: | Stephan - 'ash' wrote: |
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 |
|
![](templates/gentoo/images/spacer.gif) |
SinoTech Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Thu May 05, 2005 4:41 pm Post subject: |
|
|
Stephan - 'ash' wrote: | SinoTech wrote: | Stephan - 'ash' wrote: |
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 |
|
![](templates/gentoo/images/spacer.gif) |
Genone Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/21004157514287ab2b29021.jpg)
Joined: 14 Mar 2003 Posts: 9625 Location: beyond the rim
|
Posted: Fri May 06, 2005 1:51 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
hashier Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 05 Jun 2004 Posts: 80 Location: Germany/Braunschweig
|
Posted: Fri May 06, 2005 7:09 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Massimo B. Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1411393680427a4354494d7.gif)
Joined: 09 Feb 2005 Posts: 1850 Location: PB, Germany
|
Posted: Sat May 07, 2005 5:49 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|