Question: Create files in unix of zero blocks.
Answer: The size of file in UNIX is measured in 'blocks'
1 Block= 512 bytes or 1024 bytes , it depends on administrator to set this limit.
bash -3.2$ touch abc pqr xyz
'bash' is the shell in unix.
The above command will create three files 'abc' , 'pqr' and 'xyz' in unix of zero blocks.
See the below figure for this. The arrow is showing the size of files. In place of zero it can be any number like 2, 25, etc. Hope this makes it clear.
Answer: The size of file in UNIX is measured in 'blocks'
1 Block= 512 bytes or 1024 bytes , it depends on administrator to set this limit.
bash -3.2$ touch abc pqr xyz
'bash' is the shell in unix.
The above command will create three files 'abc' , 'pqr' and 'xyz' in unix of zero blocks.
See the below figure for this. The arrow is showing the size of files. In place of zero it can be any number like 2, 25, etc. Hope this makes it clear.

No comments:
Post a Comment