Linux Commands Examples

A great documentation place for Linux commands


call the link function to create a link to a file


link FILE1 FILE2

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


link A

retrieve and extract links (Linux/Windows)

In a bash shell you can use grep. grep "/gp/product/" source.txt >extracted.txt


Linux: Contents of "global" folder synced to other folders automatically

I may be wrong but I think that this is not possible due nature of folders. But you can try couple of alternatives.

  • You can write custom script that will create symlinks in plugins when you create file in global_plugins
  • You can make symlink to global_plugins in both plugins directories
  • You can make symlinks by hand

directory in /proc/sys/net/ipv4/config have no hard links?

The directories in /proc do not really exist. It is a virtual filesystem with information which is generated on the fly. Hardlinks have no place in them (and would not save any space if you could use them).


Linux group permission not applying correctly with hard link

I found the answer here.

I needed to log out and log back in again in order for the new group to take effect.


How to share (via network) linux linked content?

Since your smb:// url didn't work over the network I'm going to assume that Samba isn't configured and running on the machine that is serving out files. If it is, then you might need to try the IP address instead of the NetBIOS name.

Otherwise, you first need to make sure that the computer that will be serving the files is running Samba (since you're accessing it via the 'smb' protocol). You can look at this documentation for a very basic how-to on setting that up.

If you're running selinux on the computer you plan to server files from, you might want to look at this blog post regarding the setting up of proper permissions in selinux for Samba to work.



Call the link function to create a link named FILE2 to an existing FILE1.


display this help and exit


output version information and exit


Copyright © 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

reporting bugs

Report link bugs to bug-coreutils[:at:]gnu[:dot:]org
GNU coreutils home page: <>
General help using GNU software: <>
Report link translation bugs to <>

see also


The full documentation for link is maintained as a Texinfo manual. If the info and link programs are properly installed at your site, the command

info coreutils 'link invocation'

should give you access to the complete manual.


Written by Michael Stone.

How can this site be more helpful to YOU ?

give  feedback