Skip to content

Latest commit

 

History

History
58 lines (47 loc) · 722 Bytes

README.md

File metadata and controls

58 lines (47 loc) · 722 Bytes

Java-Shell

System Requirements

Java (1.7 or later)

Using the program

Compiling

To compile the code, run build the JShell in IntelliJ

Starting the Program

click run in IntelliJ.

Or in terminal, go to build/classes/java/main and run

$ java driver/JShell

Commands

List of commands available

  • !
  • cat
  • cd
  • cp
  • echo
  • exit
  • find
  • get
  • history
  • load
  • ls
  • man
  • mkdir
  • mv
  • popd
  • pushd
  • pwd

Example using the commands

To read the documentation of a specific command

$ man [command]
#example:
$ man ls

To write to a file using echo:

$ echo "hello world" > file1

To append to a existing file: To write to a file using echo:

$ echo "good bye" >> file1