Implementation of Shell for xv6 OS.
sudo apt update && \
sudo apt -y install build-essential gdb \
coreutils util-linux sysstat procps wget tar \
qemu
wget https://www.cse.iitb.ac.in/~mythili/os/labs/xv6-public.tgz && \
tar -xf xv6-public.tgz && \
cd xv6-public && \
make
cd xv6-public
make qemu-nox
Once xv6 is setup, replace files from src
directory to xv6-public
.
mv src/* xv6-public/
-
xv6 printf function:
-
To read from file: