[Bug 863920] Re: ln copy instead of link

C de-Avillez hggdh2 at ubuntu.com
Sat Oct 1 19:11:17 UTC 2011


Thank you for opening this bug and helping make Ubuntu better.

This is not a bug, but the expected behaviour. 'ln a b' will create ' b'
as a *hard* link to 'a'. If you want a *soft* link, you should use the
'-s' (or the long-name equivalent, '--symbolic'). Please see either 'man
ln' for a short explanation of the 'ln' command, or 'info ln' for the
full documentation.

>From the beginning of 'info ln':

"`ln' makes links between files.  By default, it makes hard links; with
the `-s' option, it makes symbolic (or "soft") links."

Closing INVALID (not a bug).

** Changed in: coreutils (Ubuntu)
   Importance: Undecided => Low

** Changed in: coreutils (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/863920

Title:
  ln copy instead of link

Status in “coreutils” package in Ubuntu:
  Invalid

Bug description:
  When i use ln command, it copies target instead of linking to it.

  cd /usr/bin
  sudo rm wish
  sudo ln wish8.5 wish

  creates an "executable" and not a "link to executable".

  Also tried, in home
  ln ~/Tests/test.sh
  It creates a copy of the file in the current folder, not a link to.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: coreutils 8.5-1ubuntu6
  ProcVersionSignature: Ubuntu 2.6.38-11.50-generic 2.6.38.8
  Uname: Linux 2.6.38-11-generic i686
  NonfreeKernelModules: nvidia
  Architecture: i386
  CheckboxSubmission: addfd9e1f8a85231021fb91288f47aaf
  CheckboxSystem: edda5d4f616ca792bf437989cb597002
  Date: Sat Oct  1 11:10:52 2011
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007.1)
  ProcEnviron:
   LANGUAGE=fr_FR:en
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  SourcePackage: coreutils
  UpgradeStatus: Upgraded to natty on 2011-04-29 (155 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/863920/+subscriptions




More information about the foundations-bugs mailing list