A bare-bones OpenComputers operating system that is fast and lightweight.
Current version: LiskelOS 2.2.1
Minified version: LiskelOS 2.2.1 Compact
Previous version: LiskelOS 1.8 (Deprecated)
(Optional libraries for LiskelOS here)
To install LiskelOS follow these steps:
mount
)cd
)init.lua
file in the drive using the text editor (edit init.lua
)[Middle Mouse Button]
or [Insert]
to paste[Ctrl-S]
to save and [Ctrl-W]
to exit the text editorNote: Some commands in OpenOS are not available in Liskel since they are implemented in OpenOS and thus are not in the core libraries. *
Based on OS 2.1 *
Print to console:
print("hello world!")
Getting a file handler
-- returns a file handler which can be used as a parameter for other commands
f.open("openfile.txt")
Reading a file:
-- read file contents to console
print(f.readfile(f.open("afile.txt")))
Writing to file:
f.write(f.open("newfile.txt"),"text to write out")
Run a lua file:
-- no need to put .lua on the end of the filename
f.run("luafile")
Print a table
-- prints the table named 'mytable'
print(mytable)
Print out system tables
-- alternatively this can be used to print out the functions in a table like 'component'
-- examples:
print(component) -- prints out functions provided by component
print(f) -- prints all functions provided by the built in file IO library
print(component.filesystem.address) -- prints out filesystem UUID
print(_G) -- prints out all functions and tables in global (2.1 only)
And much more! Just use the print feature above!