Operating Systems / Chapter 4: Programs / Python

Python

So far, we've seen various shell commands, such as the write, cat, cd, and do_http commands. These commands are built-in to the LWOS. In addition, we can create our own programs and LWOS will happily execute them.

Commands are fundamentally a set of computer intructions. So it is not surprising that we can supply our own instructions. We do this by writing a bunch of instructions and saving them in a file in the file system. Then we ask the shell to read and execute these instructions.

We now finally have a better option than injecting instructions directly into the instruction memory. But instead of writing assembly instructions, let's write and execute Python programs. Python programs are easier to follow and can do the same task with less text than an assembly program.

Previous Lesson Next Lesson

Comments

Please log in to add comments