Quote:
|
Originally Posted by surjyap
is there any other command or technique available?
|
Yes.
This one just popped out of my head. Very unconventional tho'...
Use
rm
Look at the demo below.
Code:
sh-2.05b$ mkdir suryap
sh-2.05b$ ls -l
drwxr-xr-x 2 -------- g900 4096 Nov 5 01:58 suryap
sh-2.05b$ rm suryap/
rm: cannot remove `suryap': Is a directory
sh-2.05b$ rm -r suryap/
sh-2.05b$ ls -l suryap
ls: suryap: No such file or directory
Code:
sh-2.05b$ touch suryap
sh-2.05b$ ls -l
-rwxr-xr-x 2 -------- g900 4096 Nov 5 02:00 suryap
sh-2.05b$ rm suryap
sh-2.05b$ ls -l suryap
ls: suryap: No such file or directory
vino