05-09-2002
a-
ls -iR |sort > inum_of_files.txt
more inum_of_files.txt
b- for a specific file, take the i-node number with ls -i and then:
find / -inum <i-node_number> -ls
(example for AIX)
Good luck. Hugo.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi, i am in a directory, have 2 files as below
then do a ls -l gives the below
lrwxrwxrwx 1 root system 23 Mar 08 2001 filea -> /adir/filea
lrwxrwxrwx 1 root system 23 Mar 08 2001 filea -> /adir/fileb
now, when i do a cd /adir, the system said, adir not... (5 Replies)
Discussion started by: yls177
5 Replies
2. Programming
Hi,
I am writing a unix system utility that is supposed to scan through a directory, collecting
information about the files and subdirectories. That part is going well.
The tricky part is that some files in the directory are hard links or symbolic links. I am supposed to IGNORE these links.... (4 Replies)
Discussion started by: Yifan_Guo
4 Replies
3. Shell Programming and Scripting
I am digging for certain types of files in the current directory and all its sub-directories and archiving them with the following code:
#! /usr/bin/ksh
Archive=`date +%Y_%m_%d_%T`
find . -type f \( -name \*\.ksh -o -name \*\.sql -o -name \*\.ini \) -print|xargs tar -cf... (4 Replies)
Discussion started by: manthasirisha
4 Replies
4. UNIX for Dummies Questions & Answers
Hey,
How can one ZIP the target of a soft/symbolic link in unix (if dodag@ is a symbolic link for the path car/reno/*.*, how can I zip car/reno/*.*, with using only dodag as my reference)?
Thxnk you. (1 Reply)
Discussion started by: galz
1 Replies
5. UNIX for Dummies Questions & Answers
From what I understand a symbolic link is alot like a shortcut where it points to another file. if the original file is deleted the symbolic link is rendered useless but a symbolic link can be deleted without any problem.
A hard link is like a copy of the file itself but pointing to the same... (3 Replies)
Discussion started by: cue
3 Replies
6. Windows & DOS: Issues & Discussions
I use sugarsync to sync my vimrc across computers. I keep the _vimrc file in a syncing folder and in my home folder, I have a symbolic link ~\_vimrc pointing to ~\Synced Docs\_vimrc. On my mac I have a .vimrc symbolic link pointing at the _vimrc file. On the pc side, every time I open the _vimrc... (3 Replies)
Discussion started by: dp88
3 Replies
7. 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
8. 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
9. UNIX for Dummies Questions & Answers
Hai,
give me a simple example for soft and hard links.
this will work for soft link ?? ln -s (2 Replies)
Discussion started by: Ramesh M
2 Replies
10. Shell Programming and Scripting
Hi team, i am writing a purge script to delete softlinks and hardlinks on linux system which are 3/10/30 days old. To test the script i need to create links with old timestamp, i am able to cange timestamp for files but not for links.
i tried touch -h option but this option is not available on... (1 Reply)
Discussion started by: Satyak
1 Replies
LEARN ABOUT LINUX
pvm_joingroup
JOINGROUP(3PVM) PVM Version 3.4 JOINGROUP(3PVM)
NAME
pvm_joingroup - Enrolls the calling process in a named group.
SYNOPSIS
C int inum = pvm_joingroup( char *group )
Fortran call pvmfjoingroup( group, inum )
PARAMETERS
group Character string group name of an existing group.
inum Integer instance number returned by the routine. Instance numbers start at 0 and count up. Values less than zero indicate an
error.
DESCRIPTION
The routine pvm_joingroup enrolls the calling task in the group named group and returns the instance number inum of this task in this
group. If there is an error inum will be negative.
Instance numbers start at 0 and count up. When using groups a (group, inum) pair uniquely identifies a PVM process. This is consistent
with the PVM 2.4 naming schemes. If a task leaves a group by calling pvm_lvgroup and later rejoins the same group, the task is not guaran-
teed to get the same instance number. PVM attempts to reuse old instance numbers, so when a task joins a group it will get the lowest
available instance number. A task can be a member of multiple groups simultaneously.
EXAMPLES
C:
inum = pvm_joingroup( "worker" );
Fortran:
CALL PVMFJOINGROUP( 'group2', INUM )
ERRORS
These error conditions can be returned by pvm_joingroup
PvmSysErr
pvmd was not started or has crashed.
PvmBadParam
giving a NULL group name.
PvmDupGroup
trying to join a group you are already in.
SEE ALSO
pvm_lvgroup(3PVM)
30 August, 1993 JOINGROUP(3PVM)