As fas as I know, symbolic links can't be used for folders/directories. Its for files.
Please correct me If I am wrong and let me know further on it.
Symbolic links work just fine for folders. You can't hardlink a folder, but symlinks can link to anything. You can even make a symlink that goes nowhere if you really want. It's just a string, in the end.
Absolute paths are reccomended since it takes the destination path completely literally without considering the current working directory at all.
Hi All,
One small request. In UNIX/LINUX we can have our own aliases in .bashrc file. My doubt is when we add a new alias and if it is tried in already opened terminals it will not work, may be it is not going to recognise. Bit when we use the same alias in new terminal it will work. I... (1 Reply)
Folks;
I know this might sound stupid, but Can i alias a web link to another web link in a UNIX server?
Let say i have a web link named http://test.new.com/wiki
Can i alias that so when i click on it or i type it in the browser address it opens but the link in the browser say something like:... (1 Reply)
HI All,
I have a small question/clarification/doubt . Does anyone know how to provide alias in the mails that come from Unix servers.
Like i have a Unix server that generates status mails every hour for a scheduled job , it sends me mails with status with the ID in from field as... (3 Replies)
Here's my opportunity.... I want to turn off the * expansion, execute the shell script and have it see the arguement with the * and not all the filenames, and then set +f once the script is executed.
1) I have an alias set as follows:
alias scp='set -f; /opt/dir1/dir2/script.sh ; set +f'... (1 Reply)
Hi,
is it normal, that the IP alias (service IP) can't be seen with ifconfig -a , as eth0:1 for example
the IP is on the node, you can ping it, and open ports for that IP
look at this:
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback... (4 Replies)
hi to all members in this forums .. Nice to meet you...
i only have a questions about command utility of "dd":
for example i will type:
pico trial
this is my file.
and save it and type chmod a+x trial
can there be a way that instead of typing:
dd if=trial of=trial.copy conv=ucase... (3 Replies)
Being able to mark in an alias definition a point of minimal abbreviation, an old feature of VAX/VMS shell (DCL) would be really nice in modern *nix shells.
In DCL you used to be able to define an alias (in its own weird syntax) which would be something like this:
$ alias fuz*zyanimals="cat... (5 Replies)
Discussion started by: unscripted
5 Replies
LEARN ABOUT BSD
ln
LN(1) General Commands Manual LN(1)NAME
ln - make links
SYNOPSIS
ln [ -s ] sourcename [ targetname ]
ln [ -s ] sourcename1 sourcename2 [ sourcename3 ... ] targetdirectory
DESCRIPTION
A link is a directory entry referring to a file; the same file (together with its size, all its protection information, etc.) may have
several links to it. There are two kinds of links: hard links and symbolic links.
By default ln makes hard links. A hard link to a file is indistinguishable from the original directory entry; any changes to a file are
effective independent of the name used to reference the file. Hard links may not span file systems and may not refer to directories.
The -s option causes ln to create symbolic links. A symbolic link contains the name of the file to which it is linked. The referenced
file is used when an open(2) operation is performed on the link. A stat(2) on a symbolic link will return the linked-to file; an lstat(2)
must be done to obtain information about the link. The readlink(2) call may be used to read the contents of a symbolic link. Symbolic
links may span file systems and may refer to directories.
Given one or two arguments, ln creates a link to an existing file sourcename. If targetname is given, the link has that name; targetname
may also be a directory in which to place the link; otherwise it is placed in the current directory. If only the directory is specified,
the link will be made to the last component of sourcename.
Given more than two arguments, ln makes links in targetdirectory to all the named source files. The links made will have the same name as
the files being linked to.
SEE ALSO rm(1), cp(1), mv(1), link(2), readlink(2), stat(2), symlink(2)4th Berkeley Distribution April 10, 1986 LN(1)