DOCUMENTATION / V1.0.0 LTS
Filesystem Quick Start
A fast, practical guide to the OrbitOne OS filesystem and VFS experience.
Audience: users and operators navigating the shell and managing files, directories, permissions, and storage.
Current version: v0.2.1-enterprise
TL;DR
cd /
ls -la /
cd /tmp
touch note.txt
write note.txt "hello world"
chmod 0644 note.txt
chown 1000:1000 note.txt
ls -lh
stat note.txt
cat note.txt
rm note.txt
quotaWhat You Can Do
- Inspect filesystem metadata:
ls(with-l,-a,-la,-lh,--json),stat(detailed POSIX node inspection &--json),tree, andmount. - Navigate hierarchy:
pwd,cd [path|-](including$OLDPWDsupport viacd -), andwai("Where Am I"). - Dynamic File Management:
touch,write,append,edit(nano),cat,more,less,head,tail,wc,grep,find,cp(-r),mv,truncate,mkdir,rm,rm -r,rmdir. - Permissions, Umask and Ownership:
chmod <mode> <path>,chown <uid[:gid]> <path>,umask [mode], and Sticky Bit0o1777verification on/tmp. - Environment Variables & Scripting: Thread-safe
POSIX environment (
USER,HOME,PATH,PWD),$VAR/${VAR}dynamic expansion,$?exit codes, and batch script execution withexport,env,unset, andsource(aliassh). - Resource Protection & Persistence:
/tmpquota enforcement (32 KiB) withquota, and automatic NVRAM / Ramdisk snapshots onshutdown/reboot. - Physical & Mounted Storage: Ext2 driver
(
ext2), ATA storage (disk,fsdisk), partition management (fdisk). - Resilient VFS & File Repair: 5-pass Ext2
filesystem consistency checker and repair with
fsck, Write-Ahead Logging (WAL) transaction journal crash recovery on boot, and ChaCha20-Poly1305 encrypted block layer withcryptfs.
For exact syntax and lookup tables, see Command Reference and Pseudo-Files Reference.
Main Workflows
1. Discover the VFS Layout & Metadata
List files with full metadata (permissions, owner, group, size, modification date):
# Detailed root listing
ls -la /
# Detailed /tmp listing with human-readable sizes
ls -lh /tmp
# Full POSIX stat on a node
stat /etc/os-release
stat /tmpOutput example for ls -la /:
drwxr-xr-x root root 4096B 2026-09-09 10:00:00 ./
drwxr-xr-x root root 4096B 2026-09-09 10:00:00 ../
drwxr-xr-x root root 4096B 2026-09-09 10:00:00 bin/
drwxr-xr-x root root 4096B 2026-09-09 10:00:00 dev/
drwxr-xr-x root root 4096B 2026-09-09 10:00:00 etc/
drwxr-xr-x root root 4096B 2026-09-09 10:00:00 proc/
drwxr-xr-x root root 4096B 2026-09-09 10:00:00 sys/
drwxrwxrwt root root 4096B 2026-09-09 10:00:00 tmp/
2. Inspect System Telemetry & Pseudo-Files
cat /etc/os-release
cat /etc/hostname
cat /proc/meminfo
cat /proc/cpuinfo
cat /sys/power/mode
cat /sys/fs/quota/status3. File Creation, Modification & Permissions
cd /tmp
mkdir workspace
cd workspace
touch config.txt
write config.txt "user_setting=true"
append config.txt "\ncache_size=1024"
# Set permissions (rwxr-xr-x / rw-r--r--)
chmod 0644 config.txt
# Assign ownership to user 'orbit' (UID 1000, GID 1000)
chown 1000:1000 config.txt
# Check detailed metadata
stat config.txt
ls -l4. Interactive Editing with OrbitOne Nano-Lite
edit /tmp/workspace/config.txtKeyboard controls in Nano-Lite editor:
Arrow Keys/Home/End: Cursor navigationCtrl+S: Save file to VFSCtrl+X/Esc: Exit editor
5. Safe Cleanup
rm config.txt
cd ..
rmdir workspaceFor recursive cleanup of a temporary tree:
rm -r /tmp/workspace6. Quota Monitoring & DoS Guardrails
quota
quota --json
cat /sys/fs/quota/used
cat /sys/fs/quota/statusThe /tmp quota limit is 32 KiB.
Creating files or directories returns an error when the quota is
exhausted. Files, directories, and their content all count toward the
quota.
Quota is enforced at:
mkdir— directory overheadtouch— file overheadwrite— delta content bytes (only the difference is charged on rewrites)- Snapshot restore — quota-aware, prevents crafted snapshots from exhausting memory
7. /tmp Persistence Across Reboots
/tmp content is automatically snapshotted on
reboot and shutdown, saved to NVRAM (with
ramdisk fallback), and restored at the next boot. The snapshot uses
CRC32 integrity validation — corrupted snapshots are rejected and boot
continues with a clean /tmp.
# Create file
touch /tmp/session.txt
write /tmp/session.txt "persistent state across shutdown"
# Shutdown — snapshot is saved automatically to NVRAM
shutdown8. Storage Analysis, Binary Hex Inspection, Links & File Inspection
# Analyze disk usage recursively
du /tmp
du -h /etc
du -s /proc
du --json /tmp
# Inspect filesystem disk space and inode occupancy
df
df -h
df --json
# Canonical binary hex dump with ASCII sidebar
hexdump -C /etc/os-release
hd /tmp/session.txt
# Inspect multi-user storage quota report
repquota -a
# Identify file format and binary signatures
file /disk/app.elf
file /etc/os-release
# Create symbolic and hard links
ln -s /etc/os-release /tmp/os.txt
ln /tmp/session.txt /tmp/backup.txt
# Truncate or extend file size
truncate -s 64 /tmp/session.txt
# Periodically watch directory or quota changes
watch 2 "ls -la /tmp"9. Environment Variables & Batch Shell Scripting
OrbitOne features a thread-safe POSIX environment store and batch script execution engine directly integrated into the VFS.
# Inspect all active environment variables
env
# Define and export custom environment variables
export APP_NAME=orbit-daemon
export LOG_DIR=/tmp/logs
export DEBUG=1
# Variable expansion in interactive commands
echo "Welcome $USER to $OS on terminal $TERM!"
echo "Current directory is $PWD"
# Check exit status of previous command ($?)
status
echo "Last status exit code: $?"
# Process ID of the shell task ($$)
echo "Shell PID: $$"
# Create and execute a batch script in the VFS
write /tmp/bootstrap.sh "#!/bin/sh"
append /tmp/bootstrap.sh "# Automated OrbitOne setup script"
append /tmp/bootstrap.sh "mkdir /tmp/logs"
append /tmp/bootstrap.sh "write /tmp/logs/app.log \"Initialized on \$(date)\""
append /tmp/bootstrap.sh "echo Setup completed with exit code \$?"
# Execute script with source (or alias sh)
source /tmp/bootstrap.sh
sh /tmp/bootstrap.sh
# Unset environment variable
unset DEBUGFile and Directory Model
| Path | Type | Behavior | Default Mode | Owner |
|---|---|---|---|---|
/ |
dir | Root of the FHS-lite tree | 0755 (drwxr-xr-x) |
root:root |
/bin |
dir | Static userland binaries | 0755 (drwxr-xr-x) |
root:root |
/dev |
dir | Device filesystem (DevFS) | 0755 (drwxr-xr-x) |
root:root |
/etc |
dir | Static system configuration | 0755 (drwxr-xr-x) |
root:root |
/proc |
dir | Runtime kernel state (ProcFS) | 0755 (drwxr-xr-x) |
root:root |
/proc/net |
dir | Network transport & interface metrics | 0755 (drwxr-xr-x) |
root:root |
/sys |
dir | System configuration & sysfs | 0755 (drwxr-xr-x) |
root:root |
/tmp |
dir | Dynamic workspace (Multi-user quotas) | 1777 (drwxrwxrwt) |
root:root |
/etc/os-release |
file | OS identity specification | 0644 (-rw-r--r--) |
root:root |
/etc/hostname |
file | NVRAM-persisted system name | 0644 (-rw-r--r--) |
root:root |
/etc/resolv.conf |
file | DNS nameserver resolver configuration | 0644 (-rw-r--r--) |
root:root |
/proc/meminfo |
file | Dynamic heap memory metrics | 0444 (-r--r--r--) |
root:root |
/proc/cpuinfo |
file | Dynamic CPU feature flags | 0444 (-r--r--r--) |
root:root |
/proc/net/tcp |
file | Active TCP socket connection table | 0444 (-r--r--r--) |
root:root |
/proc/net/udp |
file | Active UDP socket table | 0444 (-r--r--r--) |
root:root |
/proc/net/dev |
file | Network interface rx/tx counters | 0444 (-r--r--r--) |
root:root |
/proc/quota |
file | Multi-user quota block & inode usage | 0444 (-r--r--r--) |
root:root |
/sys/power/mode |
file | Power mode (real or sim) |
0444 (-r--r--r--) |
root:root |