[SunHELP] Strange "rm" Case

Devrim Yilmaz (Garanti Teknoloji) DevrimY at garanti.com.tr
Thu May 30 01:47:44 CDT 2002


Hi friends;
I met with a strange "rm" case. When i use rm command without relative path,
it ask me for each file or directory to delete., although i force them to
remove. But when i use with relative path including both rm commands under
/usr/bin/rm and /usr/xpg4/bin/rm, everthing is ok. Do you have any idea about
that? Have u ever met with that case?

Thx and regards..
dEVRim

-----------------------------------------------------------------------------
-----------------------
# uname -a
SunOS anakonda 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-5_10


# find / -name rm
/usr/bin/rm
/usr/xpg4/bin/rm

# which rm
/bin/rm

# pwd
/tmp/devrim
# ls -al
total 64
drwxr-xr-x   2 root     other        159 May 23 11:32 .
drwxrwxrwt   8 sys      sys          549 May 23 11:32 ..
-rw-r--r--   1 root     other        929 May 23 11:32 profiles.out
-rwxr--r--   1 root     other       1882 May 23 11:32 reporter2.pl
# rm -rf *
rm: remove profiles.out (yes/no)?

# /usr/bin/rm -rf *
# /usr/xpg4/bin/rm /tmp/devrim2/*



More information about the SunHELP mailing list