You are on page 1of 4

Agenda

● File system namespace, organization of files on your


computer
● Command line arguments or arguments to main()
● Basic concepts of I/O
● Operating system interface for handling files
● C library functions for file I/O
● Writing typical programs: cat, cp
● Data representation using computers, and in files
● Big endian, little endian
● Working with some typical files: CSV, PDF, etc.
File

● A file
● Stores our data as sequence of bytes
● Has a name, length (amount of data stored)
● Is stored on Hard disk
● Is stored at a particular “path” in the “namespace”
– E.g. /home/student/Desktop/programs/something.c
● Has other properties like: permissions, owner, group, etc.
First let us understand the file system
namespace
Linux Namespace
/usr/songs/xyz.mp3 ● Root is “/”
● Separator is also “/”
/

usr home

abhijit/
songs note.txt guest

myfile
xyz.mp3 abc.mp3 midspark.odp a.out

You might also like