02-21-2007
Even though it's probably what the original poster wanted, it's definitely worth stressing here that there is no easy way to find hard links (unless you write a script to find all files on each filesystem, and "uniq" the inode numbers of all files found - which will be slow and intensive).
find /blah -type l will only find symbolic links.
Cheers
ZB
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have created symbolic links to several frequently used commands, for example:
"lt" is a link to "ls -ltrgo|tail". What can I do to make these links available system-wide, or at least in the directories my coworkers are in most of the time? I have copied the link to several directories, and... (6 Replies)
Discussion started by: jpprial
6 Replies
2. UNIX for Dummies Questions & Answers
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies
3. AIX
Hi,
Just wondered what command you would use to list all the files on Aix by filesize?
I've tried a few but none of which seem to do the trick!
Currently running du -m -a . | sort -rn | more as root
Thanks,
Matt. (1 Reply)
Discussion started by: elmesy
1 Replies
4. Shell Programming and Scripting
I tried looking up combinations of the keywords "infinite loop links" in google before causing a recurring post here... but alas, I couldn't find much.
Cause: I've created an infinite loop, in a way, of directories.
Problem:
I'm not sure if this will crash a backup program (trying to... (1 Reply)
Discussion started by: jzacsh
1 Replies
5. Solaris
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
6. AIX
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
7. Homework & Coursework Questions
1. Edit a script named update.sh that generates status.html in your web directory: ~/public_html/.
I need to write specific commands to show each specific item
2. The generated webpage should include information related to:
UNIX : kernel version of ed-lab server
USER : number of users on the... (13 Replies)
Discussion started by: devinj
13 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
Could you please help to resolve my following issues:
Problem Description:
Suppose my user name is "MI90".
i.e. $USER = MI90
when i run below command, i get all the processes running on the system containing name MQ.
ps -ef | grep MQ
But sometimes it lists... (8 Replies)
Discussion started by: KDMishra
8 Replies
LEARN ABOUT MOJAVE
curlopt_dns_servers
CURLOPT_DNS_SERVERS(3) curl_easy_setopt options CURLOPT_DNS_SERVERS(3)
NAME
CURLOPT_DNS_SERVERS - set preferred DNS servers
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DNS_SERVERS, char *servers);
DESCRIPTION
Pass a char * that is the list of DNS servers to be used instead of the system default. The format of the dns servers option is:
host[:port][,host[:port]]...
For example:
192.168.1.100,192.168.1.101,3.4.5.6
The application does not have to keep the string around after setting this option.
DEFAULT
NULL - use system default
PROTOCOLS
All
EXAMPLE
TODO
AVAILABILITY
This option requires that libcurl was built with a resolver backend that supports this operation. The c-ares backend is the only such one.
Added in 7.24.0
RETURN VALUE
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, CURLE_NOT_BUILT_IN if support was disabled at compile-time,
CURLE_BAD_FUNCTION_ARGUMENT when given an invalid server list, or CURLE_OUT_OF_MEMORY if there was insufficient heap space.
SEE ALSO
CURLOPT_DNS_LOCAL_IP4(3), CURLOPT_DNS_CACHE_TIMEOUT(3),
libcurl 7.54.0 December 21, 2016 CURLOPT_DNS_SERVERS(3)