Friday, October 15
Shadow

Tag: od

Linux Files Basics

Linux Files Basics

Linux
Everything in Linux is a file. A file is a sequence of bytes. A byte is 8 bits long. The Linux system does not impose any structure or meaning on a file. It fully depends on the program that interprets the file. To learn more about files, let's create one. I created a file name sample.txt using vi editors. The file contains two lines. To see the file on the terminal, use the cat command followed by the file name. Sample.txt is a file with 73 bytes. 73 bytes means there are 73 characters in the file including spaces and periods. To check the size of the Linux files with the permissions and owner, use the ls -l command followed by the file name. The command od (octal dump) provides you a visible representation of all the bytes of a file. If you append an option i.e. ...
error

Enjoy this blog? Please spread the word :)