Skip to content

Operating Systems Course Project: Creating A Shell Interface Using Java

Notifications You must be signed in to change notification settings

RajendraBhagroo/OS_Java_Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 

Repository files navigation

OS_Java_Shell

Operating Systems Course Project: Creating A Shell Interface Using Java



Part 1


  • Implement Shell With No Commands
  • Use ProcessBuilder Class To Create External Processes

Part 2


  • Implement [cd] Command -> Change Directory

    [cd] Command MUST Include...

      [cd]
      -> Change To Home Directory
    
      [cd ~]
      -> Change To Home Directory
    
      [cd .]
      -> Stay At Current Directory
    
      [cd ..]
      -> Ascend One Directory
    
      [cd ../../..]
      -> Ascend Multiple (nth) Directories
    
      [cd /]
      -> Change To Root Directory 
    
  • ArrayList Data Structure Used To Decompose And Pass Commands To ProcessBuilder


Part 3


  • Implement History Feature

    History Feature Located In Program As "History Utilities"

      [history]
      -> Displays Commmand History In Numerical Order
    
      [!!]
      -> Runs Previous Command
    
      [!i]
      -> Runs ith Command In History (Ex. !3 Runs 3rd Command)
    

Extra Commands Added For Fun

  • [ls] -> List All Files And Directories Within Current Directory
  • [cp] -> Copy One File To Another. If File Recipient Does Not Exist, Creates File
  • [cat] -> Reads File To Console
  • [cd] -> "cd" Is A Requirement, However I Added The Ability To Change Into Any Valid Directory

About

Operating Systems Course Project: Creating A Shell Interface Using Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages