Quote:
Originally Posted by aravindv
Hi All,
This might sound a dumb question however i am not able to delete one particular file I use
cat /etc/*release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.2 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.2"
PRETTY_NAME=RHEL
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.2:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.2
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.2"
Red Hat Enterprise Linux Server release 7.2 (Maipo)
Red Hat Enterprise Linux Server release 7.2 (Maipo)
One of my friend by mistake moving a file to directory he moved it as a file and now the files is created with quotes as this 'restore directory' I tried rm -rf 'restore directory' that does not work and the file still exists.
|
Read the "Question Guidelines" link in my posting signature; basic research should be done first before posting. Since you've got a file with special characters in it, you have two choices: either escape them with a backslash (such as "rm \'restore directory\'), or use a wildcard ("rm *restore*"). The latter option should be done carefully, because it will delete ANYTHING with restore in the name.
There are MANY easily found articles about this online; and since you're using RHEL 7, you're **PAYING** for it, right??? Have you looked in their knowledgebase, or contacted them for assistance?