Home>Article>Operation and Maintenance> What device file is the sda of dev in Linux?

What device file is the sda of dev in Linux?

WBOY
WBOY Original
2022-07-13 15:46:56 10537browse

The sda of dev in Linux refers to the hard disk; dev is the abbreviation of device. The dev directory is a directory used to store hardware device information. The hardware can be accessed directly through this directory. "/dev/sda" refers to The entire hard disk generally has partitions in actual use, namely "/dev/sda1", "/dev/sda2" and so on.

What device file is the sda ​​of dev in Linux?

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

What is the device file of dev's sda in Linux

In Linux, the /dev directory is very important, and various devices are below. Here is a brief summary:

dev is the English abbreviation of device. The /dev directory contains all external devices used in Linux systems. But here is not the driver for the external device, which is different from the windows and dos operating systems. It is actually a port to access these external devices, but there is no entrance. They must be accessed via mount.

Linux follows the Unix style and recognizes all devices as one file.

/dev/sda refers to the entire hard disk. In actual use, there are usually partitions, such as /dev/sda1 and /dev/sda2. Some partitions have been mounted. Use the df command to see which directory each partition is mounted to, and then use ls to view the directory you want to check.

/dev: A directory under the Linux operating system, used to store hardware device information. The hardware can be directly accessed through the directory under it

Under Linux, / The dev directory is very important, various devices are under it. Here is a brief summary:

dev is the English abbreviation of device. The /dev directory is very important to all users. Because this directory contains all external devices used in Linux systems. But here is not the driver for the external device, which is different from the windows and dos operating systems. It is actually a port to access these external devices. We can access these external devices very conveniently, and there is no difference from accessing a file or a directory.

Extended information:

Operation commands for partition /dev/sda3:

1. Mount: mount /dev/sda1 /mnt/ asd. Only by mounting the partition to the file system can you view the contents of /mnt/asd.

2. View: ls -hl /mnt/asd

3. Uninstall: umount /dev/sda1

File system: Specify the file system to be uninstalled or its corresponding The device file name

(1), uninstall through the device name: umount -v /dev/sda1

(2), uninstall through the mount point: umount -v /mnt/mymount/

Recommended learning:Linux video tutorial

The above is the detailed content of What device file is the sda of dev 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