Hi everyone,
Is there any option for rm to remove a directory with no prompts?Actually I know about rm -r but by this option I have to answer lots of questions...
Cheers,
Hi everyone,
Is there any option for rm to remove a directory with no prompts?Actually I know about rm -r but by this option I have to answer lots of questions...
Cheers,
rm -rf i think?
that either does it, or deletes recursively. i cant remember. Google it. Be very careful if it is the latter
man rm
-r is recursive (including the directories)
-f force (don't ask)
-i interactive (ask before deleting)
Chances are, somewhere in the profile, whether in your shell or in /etc/profile is an alias that changes rm to rm -i.
...
...
Yes I use rm -rf for deleting folders and sub folders recursively without prompt.
rm -f filename
-f don't prompt for confirmation
Hope this will solve your query
rm -f filename
-f dont prompt for confirmation
Hope this will solve your query
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.