Linux getting started Tutorial: Soft links and hard links
Summary
1. Differences between soft links and hard links:
We can intuitively feel it through an instance.
* Soft link:
(1) Here is the details of the/mnt/file:
Note that the inode Number of
One of the most important features of the Linux file system is his file link, which is a reference to the file that allows the file to be seen in many places in the file system. Links can be treated just like the original file, and when edited
When you do this, you should understand the principle of file deletion and the knowledge of symbolic links and hard links.Inode/block Differences and explanations1. In a Linux system, there are two kinds of connections, one is called hard link, the
When you do this, you should understand the principle of file deletion and the knowledge of symbolic links and hard links.Inode/block Differences and explanations1. In a Linux system, there are two kinds of connections, one is called hard link, the
1. Describe the boot process from the Linux system to the login interface.Answer:(1) Power boot, BIOS self-test(2) MBR boot(3) Grub boot Menu(4) Loading the kernel(5) Start the INIT process(6) Read Inittab files, execute scripts such as
Linux can use the LS–L command to determine the file type, as shown in the figure above. Can be judged by the 10 characters in the first column.-rw-r-r-indicates that the 1.txt file is a normal file, and that both 1.txt and myprog04 files are normal
1.Linux Link Concept
There are two kinds of Linux links, one is called hard link (Hard link), the other is called Symbolic link (symbolic link). The ln command produces a hard link by default.
The specific use is: Ln–s source file Destination file.
LN is another very important command in Linux, Its function is to establish a synchronized link for a file in another location. When we need to use the same file in a different directory, we don't need to put a file in every directory that needs to
Date Displays the current time and date Cal displays the current month of the Calendar DF View the number of free memory on the disk in the available PWD print current working directory CD switch directory LS list Folder contents absolute path:
Transferred from: http://hi.baidu.com/inclover/blog/item/0a7f6f97efddde6755fb96e5.html1, the Linux file attributes summary;The properties of a Linux file or directory include: the file or directory node, type, permission mode, number of links, the
The previous few days in the Linux system to install MongoDB, and then run the script to import data when the link library encountered the query is not the case, 1 shows. The problem was solved by creating a soft connection. Although, through the
Basic file Typesnormal files : The file contains information that is generated by the user, system, or application input, without any internal modification in the file system, as a purely byte stream.directory : Contains a list of file names and
Problems encountered with Linux system installation
Time zone issues
In the time to select the time zone, the following is the use of the UTC clock This do not choose, after the tick time is actually calculated at GMT, we
I have read a lot of information about inode and soft links in recent days. I was surprised to find that there was a conflict between the information. Some even have conflicts with themselves. Now I feel that I have initially understood these three
*inode*When we need to open a file, often enter the command to open the file plus file name, the operating system will go to the hard disk to find the corresponding file, it should be known that the Unix/linux system does not use the file name to
There are two types of links, one called hard links (Hard link) and the other is called Symbolic links (symbolic link, also known as soft links). By default, the LN command produces a hard link.
(a) Hard link
1. The syntax to produce hard links
# ln
[Ln establishing a connection file] I mentioned the concept of two connection files. now I should introduce this part. There are two types of connection files: hardlink and symboliclink ). HardLinks: As mentioned above, when the system wants to read
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 directory, put the file, and then use the ln command link in other
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
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.