Detailed explanation of ln commands in linux commands (creating soft links and hard links) and ln commands
Ln is another important command in linux. Its function is to create a synchronous link for a file in another location, which can be soft link or hard link. Soft links are similar to shortcuts for windows. The following are usage methods and examples.
Linux ln command details and usage, Linux ln command details
Linux ln command details and usage
Ln is a very important command in linux. Its function is to create a different link for a file in another location. The most common parameter of this command is-s, the specific usage is the target file of the
LN is a very important command in Linux, Its function is to create a synchronized link for a file in another location. When we need to use the same file in different directories, we don't need to put a file in every required directory, we just put the file in a fixed directory, and then The other directory uses the ln command to link it so that it does not have to use disk space repeatedly. 1. Command forma
When we need to use the same file in a different directory, we don't need to put a file that must be the same in every directory we need, we just put the file in a certain directory, and then use the LN command link in the other directory to make it available, without duplicating the disk space.
Grammar
ln[parameters [Source files or directories] [destination files or directories] where the parameters are
This is a very important command in linux. please be familiar with it. The function is to create a non-same link for a file in another location. The most common parameter of this command is-s. The specific usage is the target file of the ln-s source file.
This is a very important command in linux. please be familiar with it. Its function is to create a non-same link for a file in another location. The most common parameter of this command is-s. The sp
LN is another very important command in Linux, its function is to create a link for a file in another location, the most common parameter of this command is-s, which is the Ln–s source file destination file.When we need to use the same file in a different directory, we don't need to put a file that must be the same in every directory we need, we just put the file in a certain directory, and then use the
It programmer development must-all kinds of resources download list, the most complete IT resources in history, personal collection summary.
One, ln command parameters
LN is another very important command in Linux, its function is to create a link for a file in another location, the most common parameter of this command is-s, which is the Ln–s source file desti
Command: ln usage
Command name: ln
Permission: All Users
Usage: ln [options] source dist, where the option format is:
[-BdfinsvF] [-S backup-suffix] [-V {numbered, existing, simple}]
[-- Help] [-- version] [--]
Note: there is a so-called link in the Linux/Unix File System. we can regard it as the alias of the file, and the link can be divided into two types: hard
This original article belongs to "Linux greenhouse" blog, the blog address is http://roclinux.cn. The author of the article is rocrocket.In order to prevent the vicious reproduction of some websites, special in each article before adding this information, but also hope that readers understand. ===[Start of body]LN is a magical command that can create a shadow of a file or go to another place through a channel. :) In fact, all of these tricks are impl
Ln is LinuxA very important command. Its function is to create a synchronization link for a file in another location. The most common parameter of this command is-S. Its usage is as follows:
The target file-S of the Ln-S source file is symbolic.Example: ln-S/lib/LSB/usr/LJThat is, create an LJ file pointing to the/lib/LSB directory under the USR directory.
WhenWh
LN is another very important command in Linux, and its function is to create a synchronized link for a file in another location. When we need to use the same file in different directories, we do not need to put a file that must be the same in every required directory, we just have a fixed directory, Put the file on it, and then use the LN command to link it in the other directory, and it does not have to us
In the hint: many of the translation of Ubuntu is literal literal translation, there are many problems, so I suggest you refer to my explanation here. Of course, it was also some of the suspicion of the text, I hope.
Often operate on Linux, have a few fixed commands in different directories, or modify a few fixed files, this time, if you can operate them in a directory, it will be a very easy thing. Let's take a look at the link command Ln
Name
The
Ln is a very important command. Its function is to create a synchronization link for a file in another location. The most common parameter of this command is-s. its usage is ln-s nbsp; the target file nbsp;-s indicates symbolic. For example, ln nbsp;-s nbsp;/ln is a very important command. Its function is to create
Ln is another important command in linux. its function is to create a synchronous link for a file in another location, which can be soft link or hard link. Soft links are similar to shortcuts for windows. The following are usage methods and examples.
Ln is another important command in linux. its function is to create a synchronization link for a file in another location. when we need to use the same file in
LN is another very important command in Linux, and its function is to create a synchronized link for a file in another location, broken down into soft links and hard links. Soft links are equivalent to Windows shortcuts, and here are the ways to use and examplesLN is another very important command in Linux, Its function is to create a synchronized link for a file in another location. When we need to use the same file in different directories, we don't
For Example:
1. Create a connection to a file
[Root@a ~]# ln-s/home/kk/ss.sh ~ #如果不写目标地址, that is, in the current directory built link
[Root@a ~]# ls
Centos-base.repo.oldboy anaconda-ks.cfg install.log install.log.syslog ss.sh This command indicates that a link to the source file with the same name is created in the home directory to/home/kk/ss.sh Symbolic connection
[Root@a ~]# ln-s/home/kk/ss.sh ~/dd
[Ro
Ln is another very important command in Linux. Its function is to create a non-same link for a file in another location. The most common parameter of this command is-s, the specific usage is the target file of the Ln-S source file.
When we need to use the same file in different directories, we do not need to put a file that must be the same under each required directory. We only need to put it in a fixed di
Ln command
Purpose: link a file.
Syntax
1> link a file to a file
Ln [-f |-N] [-S] sourcefile [targetfile]
2> link one or more files to a directory
Ln [-f |-N] [-S] sourcefile... targetdirectory
Description
The ln command links the file specified in the sourcefile parameter to
Or link the file specified in the targetdir
Ln is a very important command. Its function is to create a synchronization link for a file in another location. The most common parameter of this command is-s. Its usage is as follows:
The target file-s of the ln-s source file is symbolic.
Example: ln-s/lib/lsb/usr/lj
That is, create an lj file pointing to the/lib/lsb directory under the usr directory.
When
LN is another very important command in Linux, its function is to create a file in another location with a non-link, the most common parameter of this command is-s, the specific use is: Ln–s source file Destination file.When we need to use the same file in different directories, we do not need to put a file in each required directory, we just put the file in a fixed directory, and then in the other director
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.