This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Everything is a file | |
1. Name some 'files' in a standard unix filesystem that aren't very file-like. | |
- Processes - startup process (init.d), deamon processes | |
- scripts/commands - SSH/Ifconfig - files that are available in the PATH, that execute code | |
2. Identify some places where we use file descriptors for non-file content as part of the development process (hint: sockets are a good example here). | |
- Sockets - FIFO stream of bytes between endpoints. not file content, but can be seen as a file | |
- Pipes - Again FIFO stream - Does not exist as a file, no process can open it. Instead processes share them and the calling method inherits the file descriptors |