Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

symbolic link linux

#to check if there is a link or not 
$ sudo ls -l file
#exmaple :-
##:$ sudo ls -l /usr/bin/python3.8
##lrwxrwxrwx 1 root root 16 Feb 17 21:01 /usr/bin/python3.8 -> /usr/bin/python3
# -> shows there is a link 
#---------------
#delink the symbolic link 
$ sudo rm file
##:$ sudo rm /usr/bin/python3.8
#no output 
#---------------
#set new link 
$ sudo -s file link
##$ sud -s /usr/bin/python3.8 /usr/bin/python3
#no ouput 

#to check again :
###:$ sudo ls -l /usr/bin/python3.8
##lrwxrwxrwx 1 root root 16 Feb 17 21:01 /usr/bin/python3.8 -> /usr/bin/python3
 
PREVIOUS NEXT
Tagged: #symbolic #link #linux
ADD COMMENT
Topic
Name
3+2 =