chaitu chaitu
asked on
can't i delte folder at one stretch through ssh?
when i delting folder then i am getting below meesage;after deleting sub folders i am able to delete main folder;i am doing through SSH.
"please make sure that the folder is empty before deleting it"
can't i delte folder at one stretch?
"please make sure that the folder is empty before deleting it"
can't i delte folder at one stretch?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
man rm
gives you the manual entry for the rm (remove command)
man man
gives you the manual entry for the man command. A manual entry exists for most linux command and is a valuable reference on any linux system.
( (()
(`-' _\
'' ''
gives you the manual entry for the rm (remove command)
man man
gives you the manual entry for the man command. A manual entry exists for most linux command and is a valuable reference on any linux system.
( (()
(`-' _\
'' ''
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
this command is enough
rm -rdf /root/org/apache/jsp
rm -rdf /root/org/apache/jsp
or
rm -Rf /root/org/apache/jsp
if you want to use 1 less letter:)
( (()
(`-' _\
'' ''
rm -Rf /root/org/apache/jsp
if you want to use 1 less letter:)
( (()
(`-' _\
'' ''
ASKER
in this directory /root/org/apache/jsp if i want to delete only class files then
rm -Rf /root/org/apache/jsp *.class
rm -Rf /root/org/apache/jsp *.class
rm /root/org/apache/jsp/*.cla ss
will delete only .class files and it will prompt you for each file to delete (Y/N)
to delete all of the *.class files without prompting:
rm -Rf /root/org/apache/jsp/*.cla ss
( (()
(`-' _\
'' ''
will delete only .class files and it will prompt you for each file to delete (Y/N)
to delete all of the *.class files without prompting:
rm -Rf /root/org/apache/jsp/*.cla
( (()
(`-' _\
'' ''
Ooops - recursive not required for this one, so to delete all of the *.class files without prompting:
rm -f /root/org/apache/jsp/*.cla ss
is sufficient:)
( (()
(`-' _\
'' ''
rm -f /root/org/apache/jsp/*.cla
is sufficient:)
( (()
(`-' _\
'' ''
ASKER