stty -f dev://ccpty0 scrollback
[system] Welcome, alice.

[system] sek 0.1.0

New here?  cat HELLO_WORLD for a tour of the system.

[system] sek 0.1.0
device: ccpty0
user: alice
shell: /bin/sh

[assistant] cat HELLO_WORLD

[user] sek is a small UNIX-like shell environment.

What you type is run as a command.

[assistant] whoami

[user] alice

[assistant] pwd

[user] /home/alice

[assistant] cat /etc/hosts

[user] cat: /etc/hosts: not found

[assistant] ls /etc

[user] fstab
group
motd
passwd
profile
shadow

[assistant] echo "hello

[user] > 
[assistant] "

[user] hello

[user] 

[user] alice@sek:~$ 
[assistant] who

[user] sh: who: not found

[user] alice@sek:~$ 
[assistant] man ls

[user] NAME
    ls — list directory contents.

DESCRIPTION
    Lists entries in the specified directory, sorted
    alphabetically.  Defaults to the current directory.

OPTIONS
    usage: ls [-h] [-l] [path]

      path
            Directory to list. (default: .)
      -l
            Long format. (default: False)


EXAMPLE
    List current directory::

        ls

    List a specific path::

        ls /bin

EXIT STATUS
    0
        Success.
    1
        Directory not found.

[user] alice@sek:~$ 
[assistant] ls -l

[user] HELLO_WORLD

[user] alice@sek:~$ 
[assistant] cat HELLO_WORLD

[user] Welcome to sek!

sek is a virtual *NIX micro-kernel.

You are viewing this file from within a POSIX-adjacent shell.

What you type is run as a command.

The prompt shows your user, host, and current directory and is configureable via
PS1.

Common commands:

  ls          list files in the current directory
  cat FILE    print a file's contents
  cd PATH     change directory
  pwd         show current directory
  echo TEXT   print text
  man CMD     read the manual for a command

Tools you might reach for:

  printf             formatted output
  grep               search text
  head, tail         show the start or end of a file
  touch, rm, mkdir   create and remove files and directories

That's the floor.  Everything else is discoverable by running
commands and reading errors.

HINT: should you hit a standalone '>' prompt, there is an unclosed quotation
      lingering somewhere.

HINT: You can discover more commands by exploring the directories listed under
      the PATH environment variable.

[user] alice@sek:~$ 
[assistant] echo Welcome to sek!
man ls
ls -l
cd /dev
pwd
cat HELLO_WORLD | head
man cat
printf "Hello, world!\n"
exit

[user] Welcome to sek!

[user] NAME
    ls — list directory contents.

DESCRIPTION
    Lists entries in the specified directory, sorted
    alphabetically.  Defaults to the current directory.

OPTIONS
    usage: ls [-h] [-l] [path]

      path
            Directory to list. (default: .)
      -l
            Long format. (default: False)


EXAMPLE
    List current directory::

        ls

    List a specific path::

        ls /bin

EXIT STATUS
    0
        Success.
    1
        Directory not found.

[user] HELLO_WORLD

[user] cd: /dev: not a directory

[user] /home/alice

[user] Welcome to sek!

sek is a virtual *NIX micro-kernel.

You are viewing this file from within a POSIX-adjacent shell.

What you type is run as a command.

The prompt shows your user, host, and current directory and is configureable via
PS1.

[user] NAME
    cat — concatenate and print files.

DESCRIPTION
    With no arguments, copies stdin to stdout.

OPTIONS
    usage: cat [-h] [files ...]

      files
            Files to print.


EXAMPLE
    Print a file::

        cat /etc/passwd

    Read from stdin::

        cat

EXIT STATUS
    0
        Success.
    1
        One or more files not found.

[user] Hello, world!

root@sek:~# 