05-23-2008
to view links
Hi ,
You can check for a link by typing the following command,
ls -l | grep ^l
Now when you type in `ls -l` it will show you the long listing of all the file in the curent directory and the first column of it would tell you whether the file is linked or not..Column will have "l' prefixed to the permission then it is a likned file ..IF "d" is prefixed to it then it is a directory and if it is just a blank then its an ordinary file..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all!
I'd like to know the differences between hard links and soft links. I've already read the ln manpage, but i'm not quite sure of what i understood.
Does a hard link sort of copy the file to a new name, give it the same inode number and same rights?
What exactly should I do to do this:... (3 Replies)
Discussion started by: penguin-friend
3 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
Can any one please explain me what is the difference between hard link and soft link in UNIX.
Thanks in advance
Raja Chokalingam. (2 Replies)
Discussion started by: RAJACHOKALINGAM
2 Replies
3. UNIX for Advanced & Expert Users
Hi
I have a path link
/test/df/link1/actual/file1
here link1 is actually a softlink link1= a/b
i need to print the ACTUAL FULL path instead of a linked path
is there any direct command to print the actual path of any linked path
eg
showPhyscialPath /test/df/link1/actual/file1 and it... (4 Replies)
Discussion started by: reldb
4 Replies
4. UNIX for Dummies Questions & Answers
hello folks
how y'all doin
well i have some questions about symbolic link and hard link
hope some one answer me
i open terminal and join as root
and i wrote ln -s blah blah
then i wrote ls
i see red file called blah blah
but didn't understand what is this can some one explain and... (2 Replies)
Discussion started by: detective linux
2 Replies
5. UNIX for Dummies Questions & Answers
Hi Experts,
Please help me out to find out difference between a hard link and a soft link.
I am new in unix plz help me with some example commands ( for creating such links).
Regards
S.Kamakshi :) (2 Replies)
Discussion started by: kamakshi s
2 Replies
6. Shell Programming and Scripting
Hi, I'm new to C Shell programming. I'm trying to check if a sym link exists on remote server if not send email. I'm not having much luck. Can anyone help?
Here is what I have written but it doesn't work. It tells me that my variable was not defined. Here is part of the script, the second... (0 Replies)
Discussion started by: CDi
0 Replies
7. Programming
Hello All,
I've encountered a strange behaviour from g++ that doesn't make sense to me. Maybe you can shed some light on it:
I have a bunch of source files and want to compile them and link them with a static library liba.a located in /usr/local/lib64 into an executable
Approach 1 works... (0 Replies)
Discussion started by: magelord
0 Replies
8. UNIX for Dummies Questions & Answers
Hi everybody,
I read about treads realted to this issue but they did not resovle issue given below.
Please help me resolve issue given below
I have html file under /srv/www/htdocs/actual_folder
ls actual_folder/
test.html
and following link works... (0 Replies)
Discussion started by: newbielgn
0 Replies
9. Solaris
Hi All
I am facing an issue with our new solaris machine.
in /var/adm/messages
root@Prod-App1:/var/tmp#
root@Prod-App1:/var/tmp#
root@Prod-App1:/var/tmp# cat /var/adm//messages
Apr 20 03:10:01 Prod-App1 syslogd: line 25: WARNING: loghost could not be resolved
Apr 20 08:24:18 Prod-App1... (0 Replies)
Discussion started by: javeedkaleem
0 Replies
10. Solaris
Hi All
I am facing an issue with our new solaris machine.
in /var/adm/messages
Apr 22 16:43:05 Prod-App1 in.routed: interface net0 to 172.16.101.1 turned off
Apr 22 16:43:33 Prod-App1 mac: NOTICE: nxge0 link up, 1000 Mbps, full duplex
Apr 22 16:43:34 Prod-App1 mac: NOTICE: nxge0 link... (2 Replies)
Discussion started by: javeedkaleem
2 Replies
LEARN ABOUT ULTRIX
dcheck
dcheck(8) System Manager's Manual dcheck(8)
Name
dcheck - check directory consistency
Syntax
/etc/dcheck [ -i numbers ] [ filesystem ]
Description
The command is obsoleted for normal consistency checking by
The command reads the directories in a file system and compares the link-count in each i-node with the number of directory entries by which
it is referenced. If the file system is not specified, a set of default file systems is checked.
The -i flag is followed by a list of i-numbers; when one of those i-numbers turns up in a directory, the number, the i-number of the direc-
tory, and the name of the entry are reported.
The program is fastest if the raw version of the special file is used, since the i-list is read in large chunks.
Diagnostics
When a file turns up for which the link-count and the number of directory entries disagree, the relevant facts are reported. Allocated
files which have 0 link-count and no entries are also listed. The only dangerous situation occurs when there are more entries than links.
If entries are removed, so the link-count drops to 0, the remaining entries point to nothing. They should be removed. When there are more
links than entries, or there is an allocated file with neither links nor entries, some disk space may be lost but the situation will not
degenerate.
Restrictions
Since is inherently two-pass in nature, extraneous diagnostics may be produced if applied to active file systems.
Files
Default file systems vary with installation.
See Also
fs(5), clri(8), fsck(8), icheck(8), ncheck(8)
dcheck(8)