Project of AEE-SO to make a prototype terminal with the commands:
- ls - list elements of current directory
- pwd - Print the path to the current directory
- cd - Change directory
Also, the terminal has to be able to use pipeline commands like >, <, | and &.
In the first run execute the run.sh file
./run.sh
if the run.sh don't have permission, execute
sudo chmod +x run.sh
After the first run you can open the terminal executing
build/terminal
First change the value of "entry_dir" in the file .terminal to the home that you want use in your project, example:
entry_dir = /home/caelum-laron/
After, open terminal in the directory of project and type this sequence of commands:
mkdir build
cd build
cmake ..
make
cd ..
build/terminal
Compile the soma_arg.cpp and quadrado_narg.cpp in the tests/ folder.
Run the project.
Use the cd command to go to the repository path and run the commands you want.