From 654aeff211daf1950ac65e56279a4f900dd32984 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 17 Feb 2025 18:14:43 +0200 Subject: [PATCH] General.txt added --- General.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 General.txt diff --git a/General.txt b/General.txt new file mode 100644 index 0000000..f552bb9 --- /dev/null +++ b/General.txt @@ -0,0 +1,24 @@ +-> /proc/devices: + It contains the character and block devices + with their major number. + +-> Why character devices are called character devices? + Because the read/write operation done is in size of + byte. + +-> Why block devices are called block devices? + Because the read/write operation done is in size of + block. + +-> To read bytes of a devices + use: + hexdump /dev/ + + to see only few bytes + Use: + hexdump /dev/ | head + +-> To create a new device file + Use: + mknod + \ No newline at end of file