473,394 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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

Hi

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

Thanks
Vasu
Mar 15 '07 #1
4 4040
drhowarddrfine
7,435 Expert 4TB
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
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
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 Expert 4TB
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
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
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...
12
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...
0
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...
10
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...
12
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...

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.