The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
22 views

why does directory contain 2 hard links

When I create a new directory it contain 2 hard links and when I go inside to the new directory it contain two directories (. and ..) . has hard link count 2 and .. has hard link count 3, but I learn ...
0
votes
1answer
38 views

Why does the size of a file and its other hard link appear doubled? [closed]

When I create the hard link for a file (eg- fun(2KB)), it shows the file with the same size (fun-hard). These two files are pointing to same inode so their combined properties should display only 2KB. ...
0
votes
0answers
13 views

How can I check for symlinks and hardlinks before a mv?

I need to attempt a large folder replacement on a legacy system. I would like to mv the orginal folder to a new location, replace it with another, but revert back on the original if the replacement ...
1
vote
1answer
608 views

ln works on command line but not in script

I try this: for file in `ls -1 ../files/file_??_??.dat` ; do echo "$file" ; ln "$file" ; done And for every file it gives this error: ln: failed to create hard link ‘./file_01_am.dat’ => ...
1
vote
1answer
55 views

Hardlink count inconsistent with matching files

On searching for files that have hardlinks on my Portable HDD using the following command: $ find . ! -type d -links +1 -ls | sort -n I get an output of the following form (there are hundreds of ...
35
votes
5answers
3k views

Are hard links equivalent to Windows shortcuts?

Wikipedia defines a hard link as: a directory entry that associates a name with a file on a file system. (A directory is itself a special kind of file that contains a list of such entries.) The ...
0
votes
0answers
20 views

Stating the hard link count for file after each of the following commands?

Assume you have a file called file1 that has a hard link count of 1. State the hard link count for file1 after each of the following commands. Also give a brief explanation of why the hard link count ...
1
vote
1answer
53 views

Linking images from higher directory from multisite environment [closed]

Linking Structure for higher file locations This is a linking question for image linking. I have apache2 setup for named-based virtual hosts with the base root set as /var/www/ . The layout is as ...
5
votes
2answers
259 views

Colorize hardlinks in ls output?

How can I colorize hardlinks myself? Turns out on an old Ubuntu 10.04 I have, this happens by default (same .bashrc and .profile in use), whereas on the newer Ubuntu 12.04 it doesn't. This is the ...
1
vote
1answer
182 views

D-Link DWL-G122 NetWork

I'm starting downloading ubuntu now, and I have a doubt, my computer needs a USB stick with wireless network to achieve .. And anyone know where I can download the drivers for this model? Or does ...
1
vote
0answers
204 views

Help With Hard links And Symlinks Moving Directory And Files

I have a symlink /var linking to /tmpfs/var.1 /var -> /tmpfs/var.1 I start a script called cache_tmpfs from /etc/rc.local on startup. This script will copy /var.backup/* contents to ...
3
votes
2answers
470 views

What are some typical uses of hard links?

Everyone who was used to Windows can imagine what symlinks are and how they're used. On the other hand, the hard link concept is foreign to Windows (am I correct?). I would like to know what are the ...