Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

create symbolic link linux

$ ln -s file1 link1
#Example: ln -s /var/file_i_want_to_link /etc/symbolic_link_name
Comment

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
Comment

unix symbolic link

ln -s source_file myfile
Comment

PREVIOUS NEXT
Code Example
Shell :: create file in linux using cat 
Shell :: react native typescript template 
Shell :: learn typeorm 
Shell :: windows server 2016 install chrome 
Shell :: linux zip file 
Shell :: remove directory linux 
Shell :: untar all files in a directory 
Shell :: tree command levels 
Shell :: how to install zsh using brew 
Shell :: remove icon from desktop ubuntu 
Shell :: awk field separator 
Shell :: vscode update terminal limit 
Shell :: raspberry pi wifi headless 
Shell :: stash changes before checkout from the branch 
Shell :: delete branch gitlab 
Shell :: git logline 
Shell :: pull from upstream git 
Shell :: start docker image 
Shell :: Meaning of the GitHub message: push declined due to email privacy restrictions 
Shell :: push branch to main github 
Shell :: cat first line 
Shell :: zip folder ssh 
Shell :: linux zip folder without parent folder 
Shell :: launch sublime from terminal 
Shell :: dockerfile copy folder to container 
Shell :: display hidden files in linux 
Shell :: how to install android sdk tools in ubuntu using command line 
Shell :: git list files only upto 1-levels 
Shell :: how to paste the lines in the buffer into the text after the current line in vi 
Shell :: install h5py ubuntu 20.04 pip 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =