Skip to content

kaliRegenold/dash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

dash

This program was a two part project for SD Mines' Operating Systems class, taught by Dr. Karlsson. Overall, the program acts like a terminal which gives information about the OS. The first part gives a few new commands while the second part mimics the standard bash terminal (also contains first part commands).

Side Note

Most Linux systems already have a command called dash (Debian Almquist shell). So, as an unfortunate side effect, this dash program must either be ran as ./dash or be renamed.

dash1

dash1 comes with dash.cpp and Makefile. To run:

$ make
$ ./dash

Usage

dash> systat

systat dumps information from /proc/version, /proc/uptime, /proc/meminfo, and part of /proc/cpuinfo.

dash> pid <command_name>

pid will find the PID associated with the given command name. Nothing is given if it does not find the command.

dash> cmdnm <pid>

cmdnm will find the command name associated with the given PID number. 'Invalid PID' error given if the PID is not found.

TODO

  • Commit dash2
  • Add a non-looping feature to dash1 when command line paramters are given
  • Redo comments?
  • Usage statement in program!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published