05-11-2005
Link files....
How do you identify the type of a link in the output of the ls -l command?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can anyone say some ideas about using/creating link files (for ex., lrwxrwxrwx 1 bin bin 7 Jan 10 2001 bin -> usr/bin) in a shell script. (2 Replies)
Discussion started by: yuvasyntel
2 Replies
2. UNIX for Dummies Questions & Answers
Does any one now if you can change permissions on a linked file with out completely removing it and then relinking it? (2 Replies)
Discussion started by: moviestud80
2 Replies
3. Shell Programming and Scripting
if I have 1000 files, named file1, file2, ... ,file1000. for each one, I want to append a line, for example "this is the end of file#".
then, I want to link them all together.
how can I do that by using a simple script? (1 Reply)
Discussion started by: fredao
1 Replies
4. Solaris
Hi all
Ive been given the task to write a script that tests that certain link files work, i.e. the physical directory the link points too, is actually there.
Now, before I go down the route of ls -l | awk ...... or using test or find, is there a far more simpler command that I can use ?
... (2 Replies)
Discussion started by: sbk1972
2 Replies
5. UNIX for Advanced & Expert Users
How to remove the files along with its link files either hardlink or softlink? (1 Reply)
Discussion started by: Ramesh_srk
1 Replies
6. Shell Programming and Scripting
How to find the link files. i have main file, now i want to find all the files linked to it. (4 Replies)
Discussion started by: aju_kup
4 Replies
7. Shell Programming and Scripting
Hi All,
I am in a tricky situation where I have to move my files to a different mount point and create a link in place of the file which will point to the moved location.
to explain you in details:-
say I have two mount points
/dir/mount1/
/dir/mount2/
I have my application... (5 Replies)
Discussion started by: rpraharaj84
5 Replies
8. Solaris
How do I nullify a zero link file.
Please help me (0 Replies)
Discussion started by: bluenavi
0 Replies
9. UNIX for Dummies Questions & Answers
how do i nullify zero link files under /proc
please help me (4 Replies)
Discussion started by: bluenavi
4 Replies
10. 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
NAMEI(1) User Commands NAMEI(1)
NAME
namei - follow a pathname until a terminal point is found
SYNOPSIS
namei [options] pathname...
DESCRIPTION
namei interprets its arguments as pathnames to any type of Unix file (symlinks, files, directories, and so forth). namei then follows each
pathname until an endpoint is found (a file, a directory, a device node, etc). If it finds a symbolic link, it shows the link, and starts
following it, indenting the output to show the context.
This program is useful for finding "too many levels of symbolic links" problems.
For each line of output, namei uses the following characters to identify the file type found:
f: = the pathname currently being resolved
d = directory
l = symbolic link (both the link and its contents are output)
s = socket
b = block device
c = character device
p = FIFO (named pipe)
- = regular file
? = an error of some kind
namei prints an informative message when the maximum number of symbolic links this system can have has been exceeded.
OPTIONS
-l, --long
Use the long listing format (same as -m -o -v).
-m, --modes
Show the mode bits of each file type in the style of ls(1), for example 'rwxr-xr-x'.
-n, --nosymlinks
Don't follow symlinks.
-o, --owners
Show owner and group name of each file.
-v, --vertical
Vertically align the modes and owners.
-x, --mountpoints
Show mountpoint directories with a 'D' rather than a 'd'.
-V, --version
Display version information and exit.
-h, --help
Display help text and exit.
AUTHOR
The original namei program was written by Roger Southwick <rogers@amadeus.wr.tek.com>.
The program was rewritten by Karel Zak <kzak@redhat.com>.
BUGS
To be discovered.
SEE ALSO
ls(1), stat(1), symlink(7)
AVAILABILITY
The namei command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/.
util-linux June 2011 NAMEI(1)