Sponsored Content
Full Discussion: links
Top Forums UNIX for Dummies Questions & Answers links Post 302087329 by Dhruva on Thursday 31st of August 2006 04:09:00 AM
Old 08-31-2006
hard link
Code:
ls -li /usr/bin/at
8041 -r-sr-xr-x  4 root  wheel  19540 Apr 21  2001 /usr/bin/at*

Now we will use inode number to find other links since hard links have same inode number.
Code:
find / -inum 8041 -print

For soft link enter
Code:
find /dir_path -type l

this will give you soft links in directory.
or
Code:
find /dir_path -type l -ls|awk '{ print $10,$12}'

will give soft links and associated filename

Last edited by Dhruva; 08-31-2006 at 05:38 AM..
 

5 More Discussions You Might Find Interesting

1. HP-UX

HP-UX Links

Manufacturer Links Homepage: Hewlett Packard Enterprise (HPE) (the www.hp.com is for the consumer market) Documentation: HPE QuickSpecs Support: https://support.hpe.com Community: https://community.hpe.com FreeWare The HP-UX Porting and Archive Centre (UK) FTP Servers... (0 Replies)
Discussion started by: Perderabo
0 Replies

2. UNIX for Advanced & Expert Users

About links

why directory has two links as default. what's the purpose? (1 Reply)
Discussion started by: nagalenoj
1 Replies

3. Solaris

Hard Links and Soft or Sym links

When loooking at files in a directory using ls, how can I tell if I have a hard link or soft link? (11 Replies)
Discussion started by: Harleyrci
11 Replies

4. AIX

List all the soft links and hard links

Hi I'm logged in as root in an aix box Which command will list all the soft links and hard links present in the server ? (2 Replies)
Discussion started by: newtoaixos
2 Replies

5. Post Here to Contact Site Administrators and Moderators

Using this site with links

Hi, I would like to use links to view that site and post messages but sometimes I have problem which rely on that it is impossible to log in here from links level. That is, I give my login and password but when I request to that being proceed there appears a site on which there is written... (2 Replies)
Discussion started by: DavidMax
2 Replies
CROSSPOST(8)						      System Manager's Manual						      CROSSPOST(8)

NAME
crosspost - create the links for cross posted articles SYNOPSIS
crosspost [ -D dir ] [ -s ] [ file... ] DESCRIPTION
Crosspost reads group and article number data from files or standard input if none are specified. (A single dash in the file list means to read standard input.) It uses this information to create the hard, or symbolic, links for cross posted articles. Crosspost is designed to be used by InterNetNews to create the links as the articles come in. Normally innd creates the links but by having crosspost create the links innd spends less time waiting for disk IO. In this mode one would start innd(8) using the ``-L'' flag. Crosspost expects input in the form: group.name/123 group2.name/456 group3.name/789 with one line per article. Any dots in the input are translated into "/" to translate the news group into a pathname. The first field is assumed to be the name of an existing copy of the article. Crosspost will attempt to link all the subsequent entries to the first using hard links if possible or symbolic links if that fails. By default, crosspost processes its input as an INN channel feed written as a ``WR'' entry in the newsfeeds(5) file, for example: crosspost:*:Tc,Ap,WR:/usr/lib/news/bin/crosspost To process the history file and re-create all the links for all articles use: awk <history -F' ' '(NF > 2){print $3}' | crosspost (where the -F is followed by a tab character.) The ``-D'' flag can be used to specify where the article spool is stored. The default directory is /var/spool/news. By default crosspost will fsync(2) each article after updating the links. The ``-s'' flag can be used to prevent this. HISTORY
Written by Jerry Aguirre <jerry@ATC.Olivetti.Com>. SEE ALSO
newsfeeds(5), innd(8). CROSSPOST(8)
All times are GMT -4. The time now is 11:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy