14.1.3 Block Device
14.1.3.1 Block Device Characteristics
The block device inputs and outputs data in unit of block when processing data in the device, and increases the processing performance by placing a intermediate buffer.
14.1.3 Block Device
14.1.3.1 Block Device Characteristics
The block device inputs and outputs data in unit of block when processing data in the device, and increases the processing performance by placing a intermediate buffer.
14.1.2 Character Device
14.1.2.1 Charateristics
The character device is the simplest of all Linux devices, and it inputs and outputs data in character unit when processing data in the device, and there is no intermediate buffer.
14.1 Device Overview
14.1.1 Device Type and “/dev” Directory
In the devices used in Linux, there are character device such as keyboards, block device such as disk, and network device such as Ethernet.
Chapter 14 Understanding Device
Chapter’s Main Topics
This charpter describes the various device available on Linux systems and the “/dev” file that contains information about these devices, and describes the characteristics of USB device.
It includes descriptions on the following topics:
■ Device type and “/dev” directory
■ Character device
■ Block device
■ Network device
■ Usb device
13.2.2 Changing Permissions on File
13.2.2.1 Changing Permission with “chmod” Command
To change processing permissions on a file, use the “chmod” command. This command specifies user scope, operation type, and permission type.
13.2 Changing Permission on File
13.2.1 Changing Owner User and Owner Group of File
13.2.1.1 “chown” Command – Change Owner User of File
To change the owner user of a file, use the “chown” command. You can change the owner user information, and if necessary, change the owner group for the file at the same time.
13.1.4 Permission System on File
The following is a subdivision of the permission information among the above information.
r
w
x
r
–
x
r
–
x
read
write
execute
read
write
execute
read
write
execute
owner user permission
owner group permission
other permission
The meaning of the permission granted to each user is as follows:
13.1.3 Framework for Owner User and Owner Group of File
In Linux, users are grouped and managed according to certain criteria to grant or deny privileges to specific user account or user group of. When classifying the types of users who can be granted authority to files, there are three types as follows:
13.1.2 Confirming Permission Information on Window Screen
To confirm the details of a specific file on window screen, click right mouse buttpn on the desired file or directory, and then a pop-up screen will appear as shown in the figure below. Click the [Properties] menu there.
13.1 Understanding Scheme of File Permissions
13.1.1 Confirming Permission Information on File
If you confirm file information on Linux system, you can determine permissions for that file.
Below is the contents of a directory called “testdata” that you have seen with the [File Manager] program on the window screen. You can see that the directory contains a file and another directory.