V
VernisOS
CLI Commands

File Operations

VernisOS provides file operations through the VernisFS custom filesystem. All files are stored in sectors and authenticated with SHA-256 checksums.

ls — List Files

Lists all files and directories in the current location. Shows file name, size, and SHA-256 hash.

text
> ls
Files:
  README.txt      1.2 KB   a3f2c8...
  config.sys      0.8 KB   b7d1e4...
  logs/           <DIR>    —
  modules/        <DIR>    —
  kernel.cfg      0.3 KB   91c4a7...

cat — Read File

Displays the contents of a text file. Verifies the file's SHA-256 integrity before display.

text
> cat README.txt
Verifying SHA-256 integrity... OK
---
VernisOS v0.1.0-dev
Bare-metal microkernel OS
Type 'help' for available commands.

VernisFS Structure

VernisFS is a sector-based filesystem where each file is stored in contiguous disk sectors with an authentication header:

text
Sector Layout:
  [Sector Header]    — Magic number, file metadata
  [SHA-256 Hash]     — 32-byte integrity checksum
  [File Data]        — Actual file contents
  [End Marker]       — Sector boundary marker

Max file size: 256 sectors (128 KB)
Max filename:   32 characters
Max files:      256 per directory