I have the following situation:
[ORACLE]/u01/app/grid/12.1.0.2/network> ll
total 20
lrwxrwxrwx. 1 root root 36 May 11 2016 admin -> /u01/app/grid/12.1.0.2/network/admin
[ORACLE]/u01/app/grid/12.1.0.2/network> cd /u01/app/grid/12.1.0.2/network/admin
-bash: cd: /u01/app/grid/12.1.0.2/network/admin: Too many levels of symbolic links
I am not sure who or why the symbolic link was created, but I would like to remove it without removing the contents of the admin folder. Is it just rm admin or is there a different command?
Best Answer
It is just
rm admin
, assuming there is no alias forrm
defined. You could do/bin/rm -i admin
, if you are nervous - the-i
option will explicitly askrm: remove symbolic link 'admin'?
.Just make sure you don't use Tab which might get you a
/
after admin, (although you would still need-rf
to make that cause problems)