12-11-2008
There are 2 types of links; symbolic links, which refer to a symbolic path indicating the abstract location of another file, and hard links, which refer to the specific location of physical data. A Link count shows how many directory entries link to the file.
A file's link count is displayed in the second column of output from the ls -l . This number represents the total number of links that have been created to point to the data. Each time a new link is created, this value is increased by 1. When a link is removed, the value is decreased by 1. It keeps a count so when you do rm commands against a 'copy' of the file the link count gets decremented, when it reaches 0 the actual file is, finally, deleted.
Any number of hard links to physical data may be created. Links can be created by using the ln command
more info here on link counts-
http://teaching.idallen.com/cst8129/...nd_inodes.html
The Answer Guy 35: Listing "Just the Links": It's the only way, Luke
Last edited by techlinux; 12-11-2008 at 03:03 PM..
Reason: edit url
9 More Discussions You Might Find Interesting
1. News, Links, Events and Announcements
Linux Man Page Online Link
LINK: Linux Man Page
Man Page for ( Section ) - The UNIX and Linux Forums (0 Replies)
Discussion started by: killerserv
0 Replies
2. Solaris
Greetings
I want to confirm about HUGE and old files with linkcount 0 in proc file system.
what is their impact on size of root File system? (3 Replies)
Discussion started by: mr_os
3 Replies
3. UNIX for Dummies Questions & Answers
I created a file named as file and a its hard link named as hlink.
Problem is that when I delete the file , it gets deleted without notifying that hardlink exists.
But as far as I think we cannot delete the file unless we delete all the hard links pointing to it.
Is there anything worng... (1 Reply)
Discussion started by: hiten.r.chauhan
1 Replies
4. UNIX for Dummies Questions & Answers
Currently my data is organised in a volume which has a cache directory (where all the files are first created or transferred). After that there are suitable directories on the volume which in their subdirs, contain files hardlinked to files in the cache. This is done so that the same inode... (1 Reply)
Discussion started by: abcdino
1 Replies
5. Linux
Hi, firstly I am not so familiar with linux and i think i have done some damage to the red hat server. It seems that now in command line I am unable to use any basic command whatsoever (ls, move, cp, bash, etc).
I was trying to deploy an application and have changed the symbolic link (soft... (1 Reply)
Discussion started by: zaxx
1 Replies
6. UNIX for Dummies Questions & Answers
Can someone help create a symbolic link where I append my own string to the name of the link? Here's the code that I have so far:
find /home/folder1/*.txt -type f -exec ln -s {} \;
find /home/folder2/*.txt -type f -exec ln -s {} \;So that command works to create my symbolic link but I would... (1 Reply)
Discussion started by: MikeTheKID
1 Replies
7. Linux
I run a find command to search from root directory.
find / -inum 344334
The output gives the below warning:
find: WARNING: Hard link count is wrong for /proc/1. This may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to... (2 Replies)
Discussion started by: ravisingh
2 Replies
8. Red Hat
I wanted to know the concept of free -m command as there are different rows of Mem, -/+ buffers/cache & Swap in the output. As an example, it is showing 195 as free Mem in my server but 13850 in the free section of the -/+ buffers/cache row. The output needs in depth knowledge of the different... (7 Replies)
Discussion started by: RHCE
7 Replies
9. Solaris
Hi Experts,
I had encountered an issue where the zero link process was holding too much amount of data on a Solaris server. I was able to terminate the process after which the space of the file system was released.
40G /proc/8567/fd/2
Can you please let me know if there are any... (11 Replies)
Discussion started by: dhanu1985
11 Replies
LEARN ABOUT HPUX
list_link
list link(1m) list link(1m)
NAME
list link - Displays a list of all the soft links whose names match the link name that you specify
SYNOPSIS
cdscp list link link-name [with attribute-name = attribute-value]
ARGUMENTS
The full name of a specific soft link. The last simple name can contain wildcard characters. The name of a particular attribute. The
value of a particular attribute.
DESCRIPTION
The list link command displays a list of all the soft links whose names match the link name that you specify. The last simple name can
contain wildcard characters. You can use a with attribute-name = attribute-value clause to limit output only to soft links whose
attributes have values equal to the specified values. A space must precede and follow the = (equals sign). This command does not list the
name of the directory, object entry, or other soft link to which the soft link points.
Privilege Required
You must have read permission to the directory that stores the soft link. If you use a with attribute-name = attribute-value clause in
the command, you also need read or test permission to the selected soft links.
NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE.
EXAMPLE
The following command displays a list of all the soft links whose names begin with the letter l in the directory /.:/admin. cdscp> list
link /.:/admin/l*
LIST
SOFTLINK /.../abc.com/admin
AT 1991-10-15-15:54:38 lnk01 lnk02 lnk03 lnk04 lnk05 lnk06
RELATED INFORMATION
Commands: create link(1m), delete link(1m), remove link(1m), set link(1m), show link(1m)
list link(1m)