Re: delete file remind
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Hi all:
>
> Could anyone tell me how to config the system so that
> when I delete a file it will remind me first?
>
> Currently, when I type "rm *.java"
> then it just remove all the file.
> but I want the shell ask the users to reconfirm the action.
>
> Thanks a lot!
> Tuan Anh
You don't need to reconfigure your system, you just type
rm -i *
- -i enters 'interactive mode' see man rm
helios@Kafka:~/bleh$ touch a
helios@Kafka:~/bleh$ touch b
helios@Kafka:~/bleh$ touch c
helios@Kafka:~/bleh$ rm -i *
rm: remove regular empty file `a' ? y
rm: remove regular empty file `b' ? n
rm: remove regular empty file `c' ? y
helios@Kafka:~/bleh$ ls
b
- --
Homepage: http://www.de-brauwer.be
BSD is for Unix lover
Linux is for windows haters,
I run Linux
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+oOqLpSQix3Sc+ZgRAt39AKCsH1XIO9mt2KixH2M0CElrSlnqcACfTG0L
o07TsXpG4XtzibsrrPEXar0=
=r2Lj
-----END PGP SIGNATURE-----
Reply to: