473,769 Members | 6,305 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can any one explain me about Soft link n Hard Link in Linux

31 New Member
Hi

I want to about Soft link and Hard Link in Linux.

Thanks
Vasu
Mar 15 '07 #1
4 4058
drhowarddrfine
7,435 Recognized Expert Expert
A hard link is a file that points to the actual inode of a file. You can think of it like the actual name of the file in that file system. A soft link is like a Windows shortcut pointing to the same file. While you can delete a "shortcut", or soft link, without deleting the file, deleting a hard link will remove the inode and, thus, the file from the system.
Mar 15 '07 #2
vasu1308
31 New Member
Hi,

Thank you

Vasu

A hard link is a file that points to the actual inode of a file. You can think of it like the actual name of the file in that file system. A soft link is like a Windows shortcut pointing to the same file. While you can delete a "shortcut", or soft link, without deleting the file, deleting a hard link will remove the inode and, thus, the file from the system.
Mar 15 '07 #3
DevinC
1 New Member
Hm interesting... is there an appropriate term to identify the type of shortcut file.
1) One that use absolute path to point to the actual file
2) Another using relative path (i.e. drive letter will vary as both shortcuts and actual files are on the same removable media)?

Thanks,

Devin
Aug 3 '07 #4
drhowarddrfine
7,435 Recognized Expert Expert
Hm interesting... is there an appropriate term to identify the type of shortcut file.
1) One that use absolute path to point to the actual file
2) Another using relative path (i.e. drive letter will vary as both shortcuts and actual files are on the same removable media)?

Thanks,

Devin
No but you can tell by doing ls -l and you'll see it listed with a right arrow pointing at the file, such as: mylink -> thefile. That's a soft link.
Aug 4 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1713
by: Christian Seberino | last post by:
how do a post-install command like create a soft link? ..or where add command to setup.py?? I want to create a soft link automagically when user installs this program. Chris
2
7284
by: Markus | last post by:
Hello, I'm running on Mac OS X and need to create a soft link to a file. I tried both makealias() and link(). While makealias creates a Finder alias just fine my application that needs to read the reference file doesn't like this. link() produces 1) a hard link and b) gives me the following error: OSError: Operation not supported I guess what I'm looking for is a way to call the Unix ln command from
12
1255
by: pachanga | last post by:
I was thinking of learning C++ to really understand computer programming. A lot of my friends tell me that C++ is faster and good quality. My question is can C++ create Windows Applications? For Windows XP? or is C++ limited to open source applications, command prompt applications? Is it possible to create a real-time application for Microsoft Windows using C++? I can't seem to find the answer using keywords in my search engine. I am a bit...
0
938
by: Jim | last post by:
Hello, I'm trying to unzip archives that have soft links in them (that is, were created on unix with a -y option). I'm not finding that ZipFile will do that. That I can see, it creates the link file, and that file has the right contents, but it is not a soft link in the directory structure. (I've both tested it interactively and looked at the zipfile.py source, and didn't see the behaviour in either place.) If I have that wrong,...
10
1912
by: honey | last post by:
I have downloaded c api that have many h file and c file and one main file. I use turbo c compiler. So I put header files under C:\tc\include and I put c files under C:\tc\bin I also declare header file in main program. But I get the linker error message. what is the problem? Is it right to put c file in that folder. Does c compiler automatically link to c files?
12
1518
by: Bit byte | last post by:
I have an application written in C (actually PostgreSQL). The application appears to have been built using the Mingw set of tools (mingw compiler tools). I want to write an extension library library to be used by this application. Do I have to use the same compiler used to create the application - or is this irrelevant - i.e. can I use ANY compiler to write the extension library. The larger question I want to ask really (for the...
0
9587
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10045
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.