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
quota

What You Can Do

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 /tmp

Output 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/status

3. 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 -l

4. Interactive Editing with OrbitOne Nano-Lite

edit /tmp/workspace/config.txt

Keyboard controls in Nano-Lite editor:

5. Safe Cleanup

rm config.txt
cd ..
rmdir workspace

For recursive cleanup of a temporary tree:

rm -r /tmp/workspace

6. Quota Monitoring & DoS Guardrails

quota
quota --json
cat /sys/fs/quota/used
cat /sys/fs/quota/status

The /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:

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
shutdown
# 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 DEBUG

File 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

See Also