General Category > Linux Fixes
How to Use symlink
(1/1)
branx86:
Say var is the link your trying to make in another directory use the line below.
Path to where you put var is the original directory(Source). "var"(Target) is the linked directory in the folder you want ,If the folder is already created it will put the sources path in the folder. You can delete the Target folder and it will create the Target folder name.
ln -s /path/to/where/you/put/var var
Link to a windows share: mount -t cifs //server/share /mnt/abc -o user=user,pass=password,dom=domain
exapmle: mount -t cifs //192.168.2.1/C /mnt/Windows-C -o user=name_of_windows_user_account, pass=Windows_password
unlink [symlink to remove]
rm [symlink name]
Use crontab to start script at starup after reboot https://linuxhint.com/a-beginners-guide-to-crontab-on-centos/
Navigation
[0] Message Index
Go to full version