删除安装oracle 11g

时间:2017-05-31 09:01:55

标签: ubuntu awk oracle11g installation

我正在Ubuntu 14.04中安装Oracle 11g并且进展顺利。但是,我想删除之前从此命令sudo ln -s /usr/bin/awk /bin/awk创建的符号链接。我正在按照以下链接中的步骤操作:Oracle 11g installation steps in Ubuntu

您是否可以告诉我如何永久删除该链接以及通过该命令创建的文件/目录?

谢谢!

1 个答案:

答案 0 :(得分:2)

ls -lrt /usr/bin/awk
-rw-r--r-- 1 ps ps 0 May 31 06:47 /usr/bin/awk #main location 

cd /usr/local/bin                              #Alternate location

ln -s /usr/bin/awk awk                          #Softlink creation

ls -lrt                                        #Varifying softlink presence 
awk -> /usr/bin/awk                             #Present

cd /usr/local/bin                              #move to alternate location

unlink awk                                     #unlink the softlink created.

参考:

whatis unlink
unlink               (1)  - call the unlink function to remove the specified file
unlink               (1p)  - call the unlink function
unlink               (2)  - delete a name and possibly the file it refers to
unlink               (3p)  - remove a directory entry