Skip to content

Latest commit

 

History

History
109 lines (77 loc) · 3.89 KB

File metadata and controls

109 lines (77 loc) · 3.89 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

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
  • statvfs - get file system statistics

File Ownership:

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
  • time - Print execution time of an application
  • 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

/dev: - All devices, automatically added by the devfs

/etc - Config files

/home: - Can be a mount point for an optional second file system

  • /user home of the user account

/root - home of the root user (to be present even if /home is not mounted)

/sys - sysfs

/tmp - space for temporary files. Has the sticky bit set to only allow file owner to delete created temp files.

/tests:

  • Shell scripts for automated testing

Up: README

build_instructions | overview_directories | kernel | user space