General Category > Linux Fixes

How to Use symlink


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 // /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


[0] Message Index

Go to full version