There are two ways to link Linux, soft links and hard links ~ ~ ~ By default the ln command produces hard linksHard links : linked by an index node (an index node is a file that is saved in a disk partition regardless of the type assigned to it ), and multiple filenames point to the same index node, which is often referred to as a hard link. Generates a file imag
I. Overview of the LN commandIts 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.Second, the difference between hard links and soft linksHard link: Creates
Hard links with soft links 1.inode and blocks of knowledge 2. Hard links and soft links
To figure out the difference between the two, the Inode is a point of knowledge that must be understood.1.inode and Block 文件储存在硬盘上,硬盘的最小存储单位叫做“扇区”。 每个扇区能储存512字节。操作系统在读取硬盘的时候,不会一个个扇区的读取, 这样效率太低,
A hard link records the inode of the target, and the soft link records the path to the destination. Soft links are like shortcuts, and soft links are like backups. Soft links can do cross-partition links, and hard links because of the inode, can only be linked in this sectio
1. In principle:Hard link: A is a hard link to B (both A and b are filenames), the Inode node number in A's directory entry is the same as the Inode node number in the directory entry for B, that is, an inode node corresponds to two different file names, two file names point to the same file, A and B are completely equal to the file system. If one is deleted, it has no effect on the other one. Each additional file name increases the number of links on
systemsCreating a soft link[[email protected] oldboy]# ln-s oldboyfile oldboyfile_soft_link//oldboyfile means file source oldboyfile_soft_link represents a soft link file To view the Inode node number for the next file[Email protected] oldboy]# Ls-li650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5B/87/wKiom1UK4juhRtUgAAD2-RZAwXo839.jpg "title=" 2222222222.png "alt=" Wkiom1uk4juhrtugaad2-rzawxo839.jpg "/>Although soft links and hard
Ll-di/test directoryLs-i/test/a.txt a.txt inode numberTune2fs-l/dev/sdb1 View File system parameters (only if the file system is EXT2/3/4)Touch/sdb7{1..5}.txt set up 1.2.3.4.5.txt 5 files at a timeDU-SH/SDB7 view/SDB7 used space size4.cat/a.txt internal working mechanismThe operating system actually calls the filesystem to complete the cat/a.txt, which is done by the file system.----first read the root inode number, permissions, pointers----"point to the directory block, locate the file name A.
Guide
The link file under Linux is a bit like a shortcut to Windows, but it's not exactly the same. There are two types of linked files: One is a hard link, the other is a symbolic link (also called a soft link). Let me tell you the difference between them.
Hard LinksA hard link is a link that is made through an index node. In Linux, multiple files pointing to the same index node are allowed, and links like this are hard
Du-sh 1.txt du calculates the size of the file, and the directory takes the total size.Df-h viewing current partition mount informationLN-S/tmp 1.txt/boot/2.txt create 2.txt Soft link under/boot, point to 1.txt at/tmpSoft links can be targeted to files and directories. In the production process, it is best to use absolute path, not error prone.In addition, soft links can span partitions.Ln/tmp 1.txt/root/2.
"Static links and dynamic links"Static links: After the source program compiles, if you want to execute, first link to the target file, if executed after the link is completed, load the link well into the memoryDisadvantages: Dynamic Links : The target file is loaded into memory and then compiled into an executable fil
1. Linux link conceptLinux links are classified into two types: hard link and symbolic link ). By default, the ln command generates a hard link.
[Hard connection]Hard connection refers to the connection through the index node. In a Linux File System, a file stored in a disk partition is assigned with an index node number (inode index) No matter what type it is ). In Linux, multiple file names direct to the same index node. Generally, this type of conn
More depressing than ORA-24777: do not allow the use of unportable database links, ora-24777 linksAn error is reported when the synchronization function is on site. The content is as follows: java. SQL. BatchUpdateException:ORA-24777: do not allow use of portable database linksAt oracle.jdbc.driver.OraclePreparedStatement.exe cuteBatch (OraclePreparedStatement. java: 10317) at least cuteBatch (OracleStatementWrapper. java: 216) at least cuteBatch (Pre
An internal Web page to export three connections is advisable, at the same time this page needs to guide 2--3 links for the appropriate, internal links to the relevant page when the use of different Miao text, through the different text link to tell Google, Baidu about this page of different information, vital, links not only through navigation, columns to import
Linux soft connection and hard link
From http://blog.sina.com.cn/s/blog_520fb00d0100hqng.html
1. Usage: ln [Option] source_file dist_file-F: When the file is created, the same file name will be deleted.-I ask before deletion.Ln-s abc cde establishes a soft connection of ABCLn abc cde establishes a hard connection to ABC,2. Differences between soft links and hard links (common ):A hard link can be considered
1) By default without parameters, the LN command creates a hard link, and the ln command with the-s parameter creates a soft link.2) The hard link file is the same as the Inode node number of the source file, and the Inode node number of the soft link file is different from the source file.3) The LN command cannot create a hard link to a directory, but it can create soft links that are often used for soft links
See more and more new owners into the internet industry, I am happy for them at the same time also deeply for their prospects to enter the Internet worry, just I and a station for half a year to chat learned that he entered the internet has been six months, but no profit, I asked him to give me a look at the Web site, Finally I landed on his web site to visit a circle and found a very serious problem, some pages unexpectedly can not open, finally I use dead chain tool test its website, the above
1.Linux Link ConceptThere are two types of Linux links, one called hard links, and the other called Symbolic links (symbolic link). By default, the LN command produces a hard link.In a Linux system, the kernel allocates an Inode (index node) for each newly created file, each with a unique inode number. The file attributes are stored in the index node, and the ind
Now many webmasters are worried about one thing. That is the link check and its fake problems, has been plagued by a lot of webmaster, a lot of fake friendship links in the site can see links, ie can be resolved. But the search engine is unable to see this link. Thus their own link is selfless dedication. Below I specifically summed up a few common links cheat wa
Tags: Linux operationsHard links and soft linksThere are two types of Linux links:? Called Hard links,? The other is called Symbolic links (symbolic link).By default, the LN command creates a hard link, Ln-s creates a soft connection
"Hard Connect"A hard connection is a connection that is made through an index no
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.