Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Non riesco a rimuovere un file.... [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
V0iDLoOp
n00b
n00b


Joined: 23 Dec 2003
Posts: 38
Location: Rome, Italy

PostPosted: Fri Oct 21, 2005 7:14 pm    Post subject: Non riesco a rimuovere un file.... [risolto] Reply with quote

Provando uno script per errore ho creato un file denominato "-P", il problema è che non riesco a cancellarlo! :evil:
ho provato con tutte le mie conoscenze:
rm "-P"
rm \-P
rm *P
etc..


ma non lo elimina, sembra che lo consideri come un argomento di "rm"

Sicuramente il modo c'è, ma sono io che sono ignorante.
Grazie
_________________
bellas!


Last edited by V0iDLoOp on Sat Oct 22, 2005 9:15 am; edited 1 time in total
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Fri Oct 21, 2005 7:29 pm    Post subject: Re: Non riesco a rimuovere un file.... Reply with quote

Code:
rm -- -P

il "--" vuol dire "fine dei parametri. da qui in poi iniziano gli argomenti"

complimenti! sei finito in uno di quei vicoli ciechi che capitano ad un utente su mille... insomma... non è facile :wink:
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Fri Oct 21, 2005 7:30 pm    Post subject: Reply with quote

Provato con il quoting forte?

Code:
$ rm '-p'
Back to top
View user's profile Send private message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Fri Oct 21, 2005 8:46 pm    Post subject: Reply with quote

hai provato con
Code:

rm ./-P

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


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Fri Oct 21, 2005 8:56 pm    Post subject: Reply with quote

Credo che la soluzione giusta sia quella di k.gothmog.

Ah... occhio con ste cose.... una volta scripteggiando avevo creato per sbaglio una cartella che si chiamava "~", e di istinto ho fatto rm -R ~.... ovviamente mi sono sputtanato la home... :lol:
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Fri Oct 21, 2005 9:08 pm    Post subject: Reply with quote

silian87 wrote:
occhio con ste cose.... una volta scripteggiando avevo creato per sbaglio una cartella che si chiamava "~", e di istinto ho fatto rm -R ~.... ovviamente mi sono sputtanato la home... :lol:

appunto. come è successo a silian potrebbe trovarsi con una brutta sorpresa, quindi è meglio non tirare a indovinare, quando su danno consigli su queste cose :)
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Sat Oct 22, 2005 4:57 pm    Post subject: Reply with quote

silian87 wrote:

Ah... occhio con ste cose.... una volta scripteggiando avevo creato per sbaglio una cartella che si chiamava "~", e di istinto ho fatto rm -R ~.... ovviamente mi sono sputtanato la home... :lol:


Due utenti sul mille :lol:
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Sun Oct 30, 2005 8:45 am    Post subject: Reply with quote

Moved from Italian to Off Topic.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano 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