F5F Stay Refreshed Software Operating Systems Yes, you can use symbolic links depending on your needs. They help reference files or directories without copying them.

Yes, you can use symbolic links depending on your needs. They help reference files or directories without copying them.

Yes, you can use symbolic links depending on your needs. They help reference files or directories without copying them.

Pages (2): 1 2 Next
K
KatnissGaming
Junior Member
12
01-22-2016, 02:57 AM
#1
I explored information about symbolic links and their ability to form soft links to files. They function as shortcuts, similar to Windows shortcuts, but with some differences. In Linux, a directory acts like a file with a special flag, so my inquiry is: Is it feasible to make one directory equivalent to another using a symbolic link? For instance, if I have a folder at ~/images and want any image inside it to point to /mnt/server/images, I’d like this to work smoothly. I’m curious about the process beyond using the ln -s command. While mounting the server images folder to ~/images is an option, I’m interested in other methods for understanding this better. Any guidance would be greatly appreciated.
K
KatnissGaming
01-22-2016, 02:57 AM #1

I explored information about symbolic links and their ability to form soft links to files. They function as shortcuts, similar to Windows shortcuts, but with some differences. In Linux, a directory acts like a file with a special flag, so my inquiry is: Is it feasible to make one directory equivalent to another using a symbolic link? For instance, if I have a folder at ~/images and want any image inside it to point to /mnt/server/images, I’d like this to work smoothly. I’m curious about the process beyond using the ln -s command. While mounting the server images folder to ~/images is an option, I’m interested in other methods for understanding this better. Any guidance would be greatly appreciated.

K
kittymitty69
Member
190
01-22-2016, 04:13 AM
#2
RTFM Last login: Mon Aug 18 18:37:37 on console Bens-MacBook-Pro:~ ben$ man ln LN(1) BSD General Commands Manual LN(1) NAME link, ln -- make links SYNOPSIS ln [-Ffhinsv] source_file [target_file] ln [-Ffhinsv] source_file ... target_dir link source_file target_file DESCRIPTION The ln utility generates a new directory entry (linked file) with identical permissions to the original. It helps keep several copies of a file in one place without storing duplicates; instead, a link references the main copy. There are two kinds of links—hard links and symbolic links. The way a link connects to a file distinguishes hard from symbolic links.
K
kittymitty69
01-22-2016, 04:13 AM #2

RTFM Last login: Mon Aug 18 18:37:37 on console Bens-MacBook-Pro:~ ben$ man ln LN(1) BSD General Commands Manual LN(1) NAME link, ln -- make links SYNOPSIS ln [-Ffhinsv] source_file [target_file] ln [-Ffhinsv] source_file ... target_dir link source_file target_file DESCRIPTION The ln utility generates a new directory entry (linked file) with identical permissions to the original. It helps keep several copies of a file in one place without storing duplicates; instead, a link references the main copy. There are two kinds of links—hard links and symbolic links. The way a link connects to a file distinguishes hard from symbolic links.

S
snaari
Member
70
01-22-2016, 04:34 AM
#3
I reviewed the instructions. I was seeking more details. I grasp the file behavior, but I'm interested in directories and their link connections.
S
snaari
01-22-2016, 04:34 AM #3

I reviewed the instructions. I was seeking more details. I grasp the file behavior, but I'm interested in directories and their link connections.

E
elehal
Member
154
01-22-2016, 09:30 PM
#4
Navigated to the server's images directory and listed its contents.
E
elehal
01-22-2016, 09:30 PM #4

Navigated to the server's images directory and listed its contents.

I
imnotben
Member
67
01-22-2016, 10:13 PM
#5
Great approach. When things seem simple, it helps to research or discuss them beforehand. I’d prefer trying something first, but I think it’s smarter to check in ahead of time rather than risking a data loss if an issue arises.
I
imnotben
01-22-2016, 10:13 PM #5

Great approach. When things seem simple, it helps to research or discuss them beforehand. I’d prefer trying something first, but I think it’s smarter to check in ahead of time rather than risking a data loss if an issue arises.

H
65
01-24-2016, 09:36 PM
#6
It functioned? Usually it's best to avoid hard links for later use—they can pose risks.
H
hungry_hippo10
01-24-2016, 09:36 PM #6

It functioned? Usually it's best to avoid hard links for later use—they can pose risks.

P
Peppa_Craft
Junior Member
2
02-05-2016, 09:58 AM
#7
I need to run this command because the person doesn't have permission. The user@ server is trying to set up a symlink but it's failing due to access restrictions.
P
Peppa_Craft
02-05-2016, 09:58 AM #7

I need to run this command because the person doesn't have permission. The user@ server is trying to set up a symlink but it's failing due to access restrictions.

B
bluebell2204
Junior Member
14
02-05-2016, 05:09 PM
#8
Yes, the directory ~/images should exist.
B
bluebell2204
02-05-2016, 05:09 PM #8

Yes, the directory ~/images should exist.

J
JoaoPratas
Junior Member
3
02-05-2016, 09:00 PM
#9
The ~/images folder is available, but its access settings are unusual. I require sudo too, possibly due to Apache2 handling it.
J
JoaoPratas
02-05-2016, 09:00 PM #9

The ~/images folder is available, but its access settings are unusual. I require sudo too, possibly due to Apache2 handling it.

S
segu23
Junior Member
25
02-05-2016, 10:30 PM
#10
It seems like you're asking about adjusting permissions. Have you checked that yet?
S
segu23
02-05-2016, 10:30 PM #10

It seems like you're asking about adjusting permissions. Have you checked that yet?

Pages (2): 1 2 Next