[prev] 24 [next]

Unix/Linux File System (cont)

The file system is used to access various types of objects:
  • files, directories (folders), devices, processes, sockets, ...
Objects are referenced via a path  (.../x/y/z/...)

Paths can be

  • absolute  (full path from root)

    e.g. /usr/include/stdio.h,  /home/jas/cs1521/

  • relative  (path starts from CWD)

    e.g. ../../another/path/prog.c,  ./a.out,  a.out


Q: Why do we have to run a.out as ./a.out?