Image links and image links
Image link:
The source code is as follows:
Syntax
Value">Attribute Value
Value
Description
_ Blank
Open the linked document in a new window.
_ Self
Default value. Open the linked document in the same framework.
_ Parent
Open the linked document in the parent framework set.
_ Top
Open the li
the I node of the 123 file.Write data to 123 file Hello Word[[email protected] test]# Cat 123Hello Word[email protected] test]# cat 123LNHello WordFound soft link file content is also Hello Word[Email protected] test]# Rm-f 123[[email protected] test]# Cat 123cat:123: No file or directory[email protected] test]# cat 123LNCAT:123LN: No file or directory[Email protected] test]#Deleting the original file found the soft connection file does not exist either.Summarize1 Change source file The content
Soft linksSoft Connect: Ln-s source File Destination fileExample: ln-s/etc/issue/tmp/issue.soft creating a soft linkLn/etc/issue/tmp/issue.hard Creating a hard linkSoft Connection Features1, lrwxrwxrwxSoft connection file permissions are rwxrwxrwx2, file size-just symbolic link3,/tmp/issue.soft->/etc/issue arrow pointing to source fileHard-Link Features1, copy cp-p + sync update2, can be identified by the I node3, cannot span partitions4, cannot be used for directoryLinux Common commands------So
Hard Links:Create: LN [original file] [target file]1, have the same I node and block blocks, can be seen as a file2, can be identified by the I node3. Cannot be used across partitions4. Cannot be used for directorySoft Links:Created: ln-s [Original file absolute path] [target file]1. Windows-like shortcuts2, the soft link has its own I node and block blocks, but the data block only saved the original file name and I node number, and no actual file data3, lrwxrwxrwx l Soft link Soft link file per
Hard Link features :Because a hard link is a file with the same inode number with only a different file name, there are several characteristics of hard links:1. The file has the same inode and DataBlock2. Only files that already exist can be created3. You cannot create a hard link on a cross-file system, only in the same file system4. You cannot create a directory, only the file can be created5. Deleting a hard-link file does not affect other files th
1. Hard Links: File aliasesWith the previous Linux ext2 file system, we know that in the block of the directory file, the file name and the corresponding inode are stored in the directory.Multiple filenames can be mapped to the same inode,Create a new file name to link to an inode number, which is a hard link.As you can see, a hard link simply creates a new file name and associates it with an existing one. At this point, the block in the directory has
BIOS
Run the MBR boot loader
The boot loader reads the kernel
Operating system starts running
Individual application launches
Linux uses an indexed file system, with each partition containing a file system. A file occupies a inode,inode that contains most of the file's attributes and points to a block of data that contains actual data. In a Linux system,The inode number is the unique identifier of the file, and the content that you want to get from the file must pass the In
Soft link FileThe so-called soft link is the storage path. The longer the path, the larger the file. Soft links can save space and eliminate the duplication.How do i make a soft link?Ln-s source file Soft link fileNot only can soft link file, also can soft link directory.Use the path as far as possible, the following red description does not exist, because the relative path is used. After using the absolute path, there is no problem.Examples of actual
Detailed explanation of soft links and hard linksGuideIn Linux, the linked files are similar to Windows shortcuts, but they are not exactly the same. There are two types of linked files: hard link and symbolic link ). Let me tell you the difference between them.
Hard LinkA hard link is a link through an index node. In Linux, multiple files are allowed to direct to the same index node, and such links are ha
Static LinkingIf you find the reference in the obj file during ld, the binary code of this reference will be added to your program in libary.The static link program is a truly complete and runable program. You only need the OS kernel to call this code when running the program.In static links, the most important thing is to add the binary program in libary to the program that calls the library function.
Dynamic LinkingDuring dynamic link, if the code w
front of main.The link process is controlled by a link script (linker scripts), which determines what address to assign to each segment, how to align, which segment is before, which segment to merge into the same segment,In addition, the link script inserts some symbols into the resulting file, such as _bss_start, _edata, _end, and so on.If the link script is not specified with the-t option when using LD, the default link script for LD is used, and the default link script can be viewed with the
I have never had a deep understanding of Linux soft links and hard links. a friend asked me this question last night, which suddenly aroused my interest. This morning, I looked at laruence's book and found it on stackoverflow. now I feel that my understanding is in place. at least... I have a deep understanding of Linux soft links and hard
Link Category:Hard Link: basic NoSoft link Soft Link: symbolic link (symbolic), similar to a shortcut under windows * * * * One, hard links[Email protected] swap]# ll-d/swap/Drwxr-xr-x 2 root root 4096 10:40/swap/Number of hard links: Indicates that there are several files in the system that point to the I nodeFrom the number of hard links, you can see how many s
Hard links and soft links for Linuxhttp://www.ibm.com/developerworks/cn/linux/l-cn-hardandsymb-links/If an inode number corresponds to more than one file name, the files are called hard links. The soft link itself is a special file with the file content pointing to another file name path (the recommended absolute path)
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字节。操作系统在读取硬盘的时候,不会一个个扇区的读取, 这样效率太低,
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.
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.