Skip to content

Latest commit

 

History

History
89 lines (62 loc) · 2.87 KB

userspace.md

File metadata and controls

89 lines (62 loc) · 2.87 KB

Userspace

Init in Userspace

The kernel starts the init program as the first process (for details see init_userspace). This normally starts a shell (sh) for users to start any application.

Applications

System Applications

/usr/bin/init - the first process

User Applications

Stored in /usr/bin or /usr/local/bin.

Process Management:

File Management:

  • cp - copy a file
  • ln - create hard links to files
  • ls - list directory content
  • mkdir - make new directories
  • mknod - make device files for character or block devices
  • rm - remove files
  • rmdir - remove directories
  • stat - get file status

Misc:

  • cat - concatenate input files and print them
  • xxd - hex dump
  • echo - echo parameters back
  • grep - find a string in a file
  • wc - count words and characters in a text file
  • date - Prints date and time
  • sleep - Pauses execution for N seconds
  • dhrystone - A benchmark

System:

Games:

  • fortune - classic UNIX fortune cookie
  • wumpus - UNIX 7 version of Hunt the Wumpus

Tests:

Linux support

Some user space apps compile also on Linux. See build_instructions for details.

File System

/etc

  • Config files

/dev:

/home:

/tests:

  • Shell scripts for automated testing

Up: README

build_instructions | overview_directories | kernel | user space