sharing same inode but not linked


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting sharing same inode but not linked
# 1  
Old 08-03-2007
sharing same inode but not linked

how does below 2 file have same inode but not be linked?

I did file command as well on file1 and file2 and it says ascii text

Is this possible?



1207 -rw-rw-rw- 77 424 root 47622 Jul 1 12:40 file1
1207 -rw-rw-rw- 77 424 root 47622 Jul 1 12:40 file2
# 2  
Old 08-03-2007
Quote:
Originally Posted by hankooknara
how does below 2 file have same inode but not be linked?

I did file command as well on file1 and file2 and it says ascii text

Is this possible?

1207 -rw-rw-rw- 77 424 root 47622 Jul 1 12:40 file1
1207 -rw-rw-rw- 77 424 root 47622 Jul 1 12:40 file2

That is called hard linking. Read the man page for ln for more information.

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Help with linked list.

#include<stdio.h> #include<stdlib.h> struct LinkedList { int val; struct LinkedList *next; }node; /*Creating a structure variable*/ typedef struct LinkedList Node; Node *start = NULL; int create(int i) { Node *temp = NULL; if (start == NULL) ... (5 Replies)
Discussion started by: prinsh
5 Replies

2. UNIX for Dummies Questions & Answers

Linked Servers

Hi, We have 2 UNIX Servers, say test1 and test2. Here, if I create a file or folder/delete a file or folder in the 1st server, it gets reflected automatically in the 2nd server. I don't think any links are established between these 2 servers. Both these have 2 different hostnames. How... (1 Reply)
Discussion started by: Dev_Dev
1 Replies

3. Programming

Help with linked list in C

i have this code typedef struct client_list { char *client_name; struct client_list * next; int client_socket_fd; } client; client *current, *head; head = NULL; char *h="test"; add_client(current, h, head, &client_socket_fd); ... (24 Replies)
Discussion started by: omega666
24 Replies

4. AIX

FS inode 58%

Hi Guys, I have this filesystem got big with inode: /dev/hd4 3670016 183664 95% 63705 58% /var I don't know why the system doesn't give alerts on this FS although it's 95% and why the inode is 58%. Any comments will be highly appreciated. Thanks, itik (1 Reply)
Discussion started by: itik
1 Replies

5. UNIX for Dummies Questions & Answers

wrongly linked my new file ..

Hi All, I was trying to point /unix-> new unix kernel ( unix_64_A ).. but instead by mistakenly i did the other way ..my new unix ( unix_64_A -> /unix ) ?? .. unfortunately i have only one copy of unix_64_A ..is there any way to solve this problem ..please help me asap . Thanks Vamshi. (4 Replies)
Discussion started by: siddaonline
4 Replies

6. Solaris

about inode

how can i see inode table information of a perticler inode.anybody knows pls tell me. Than.Q (3 Replies)
Discussion started by: nag.mi2000
3 Replies

7. Shell Programming and Scripting

INode

hi i am nitin... jus a new kid on the block... my query is... does the concept of region invovle sharin of inodes wen the sticky it is set... eg... if two process share two text regions... wat actually happens thank u (1 Reply)
Discussion started by: nitinsharma_ssn
1 Replies

8. UNIX for Dummies Questions & Answers

is there any way to see what and who is linked to file?

Hello like the topic says... thanks (2 Replies)
Discussion started by: umen
2 Replies

9. IP Networking

sharing of IP address for load sharing avoiding virtual server & redirection machine

I have RedHat 9.0 installed on three of my servers (PIII - 233MHz) and want that they share a common IP address so that any request made reaches each of the servers. Can anyone suggest how should I setup my LAN. I'm new to networking in Linux so please elaborate and would be thankful for a timely... (2 Replies)
Discussion started by: Rakesh Ranjan
2 Replies

10. UNIX for Advanced & Expert Users

dynamically linked file

Hi friends, i have a dynamically linked file on my solaris system.this is script that runs regularly. How can i read the contents of that ? when i tried to say "vi filename " then it says executable and nothing is seen. Please help. thanks in advance Veera (5 Replies)
Discussion started by: sveera
5 Replies
Login or Register to Ask a Question