Hi viewers, Nice to meet you all via this post !!! This is an implementation of Linux command line in java. You can use this project as a reference for creating console applications in java. It mimics cmd of Linux, supports following commands: mkdir ls pwd rm cd session clear exit The above commands doesn't actually act on an OS to manipulate drives. It is just a simulation. It keeps track of folders and navigation logically. It is not a big deal to hook OS functions with this application(Comment it, if you need. I will make it as separate post). Decide your data structure: First, we have to think of our data structure to logically maintain folders. It should keep track of hierarchy of folders because we are going to implement "CD" command. hence it needs bi-directional traversal. Directory is a class that represents the folders in the system. Here, the child folders are represented using an array list called "children"...
I am a software professional, love to live as a programmer. Here I will post miscellaneous but interesting works. You will face different kinds of languages and different kinds of problems with solutions in this blog. Let's get started ==> - Vignesh Baskaran