Home>Article>Operation and Maintenance> What folder starts with l in linux

What folder starts with l in linux

WBOY
WBOY Original
2022-05-31 16:42:53 5315browse

In Linux, folders starting with l represent link files, where "l" is the abbreviation of "link", which means link; link files can be divided into soft links and hard links. You can use the ln command to create a link file, the syntax is "ln [option] source file target file".

What folder starts with l in linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

linux link file

"l" is the link file, and l means link.

Equivalent to windows shortcut;

Extension:

  • "b" is a block device, and the hard disk is an example;

  • "c" is a character device file, including mouse and keyboard;

  • "d" is a directory file, equivalent to a Windows folder.

Connected files: (link) Files starting with "l"

What folder starts with l in linux

You can see that the attributes of these files are Starting with "l" means they are linked files.

Linux has two types of connection files: symbolic links (soft links) and hard links. Symbolic links are similar to shortcuts under Windows. Hard links generate new file names through inode connections in the file system rather than creating new files.

ln command is used to create a connection file:

ln [选项] 源文件 目标文件

Options: -s creates a symbolic link (soft link)

-f forces the creation of a connection file, if the target exists, then Delete the target file first, and then create the connection file.

Recommended learning:Linux video tutorial

The above is the detailed content of What folder starts with l in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn