Unix File System and Command Line

Unix presents every disk, every home directory, and every data file as one tree rooted at /, and gives you a text interface for moving through it. Learn where you are (pwd), what is there (ls), and how to get elsewhere (cd), and the rest — absolute versus relative paths, . and .., ~ — stops being syntax to memorize and becomes a map you can read.

The second idea is composition. Unix tools are small programs that each do one thing and speak in text streams, so redirection (>, >>) and pipes (|) can reconnect their input and output into a workflow no single command provides. Around that sit the practical concerns: permissions, which decide who may read, write, or execute a file; running your own Python scripts from the shell with arguments; and the care the command line demands, since rm has no undo.

Figure: Ken Thompson and Dennis Ritchie at a PDP-11, the machine on which Unix was developed

Listen

Why Modern AI Still Runs on Unix

Presentation

Read

Hands-on

Notebooks in 06-Unix-Command-Line

Homework