March 22, 2015

The smallest unit of information that can read from or written to the disk?

Try these linux commands to answer this:...

Try these linux commands to answer this:
$ echo "fox" > a.txt
$ echo "x" > b.txt
$ echo "" > c.txt
We have created three files a.txt, b.txt, c.txt
Display the length of the files in the column in front of the date:
$ ls -lG *.txt
-rw-r--r-- 1 dennis 4 Mar 23 20:24 a.txt
-rw-r--r-- 1 dennis 2 Mar 23 20:24 b.txt
-rw-r--r-- 1 dennis 1 Mar 23 20:24 c.txt
Each of the above files contains the string between the quotes in the previous echo commands plus a line feed character. The c.txt contains an empty string, with only the line feed. "Hexdump c.txt" will show the line feed as 0a hex. The lesson to be drawn from this is that one byte is the shortest unit that may be written.

Like  (0 likes)
Click Here!