09. Using files
Filesystem
fields of ls -l (skip rwxrwxrwx part for now)
- hardlinks = multiple file names (witihn one filesystem)
using ln and rm, counting links by ls -l
- no «primal name», all names is equal
- symlinks — special file objects
- the size o symlink object — what is it?
Other objects, e. g. device nodes (see ls -l /dev/) character and block
C FILE *
write a simple program that fopens one file fscanfs integers from it and fprintfs to another.
do not forget fclose
try to kill/end the process before fclose(), investigate output file
Use fwrite to write integers
Investigate the output file with hexdump -C output_file
H/W
- Copy both programs (fprintf and fwrite versions) to sugon server