- Download the zip file and extract it.
- On the terminal run make.
- Do ./a.out in the terminal and you will launch the terminal.
activities
- Run activities on your terminal to check which processes are in the background along with their pid and which state they are in (Stopped/Running)
bg
- Run bg of the background process which is stopped and it will start running it in the background again
fg
- Run fg of the background process which is either stopped or running to make it run in the foreground
iMan
- run iMan to get name, synopsis and description of the command you wish to see (extracts data from man.he.net)
neonate
- run neonate -n <time_val> to get the most recent pid's every time_val seconds until you press x to exit the raw mode.
pastevents
- Creates a file history.txt in which the 15 most recent commands get stored
- You can use pastevents purge to clear the history.txt and clear your pastevents
- You can use pastevents execute which will execute the th most recent command
peek
- peek command lists all the files and directories in the specified directories in lexicographic order.
- run peek
- flags -l : displays extra information (the total block size, the permissions of the file, file/directory name, owner name, file size, last edited) -a : displays hidden files -la , -al , -l -a , -a -l : displays extra information of all files(including hidden files) no flags : display files (no hidden files)
- path can be both relative or absolute
- Colours according to file type green - executables white - normal files blue - directories
ping
- run ping <signal_number>. Sends signal to the process with the given pid to change according to the signal number.
- Ctrl+C - kills the current running foreground process
- Ctrl+Z - puts the running foreground process into the background process into a stopped state.
- Ctrl+D - exits the terminal
pipe
- run <cmd 1>|<cmd 2>|... . It takes the output from command on left and passes it as standard input to the command on right.
proc
- run proclore to get information about the process with the given pid (pid,process status,process group,virtual memory,executable path of the process)
prompt
- returns the name of the directory you are currently in (absolute or relative)
redirect
- handles the input-output redirection
- < - Reads input from the filename following “<”.
- > - Outputs to the filename following “>”.
- >> - Similar to “>” but appends instead of overwriting if the file already exists.
seek
- run seek <target_directory> to search for the file/directory (depending on the flags) in the target directory.
- flags -d : Only look for directories (ignore files even if name matches) -e : If only one file (and no directories) is found, then print it’s output. If only one directory (and no files) is found, then change current working directory to it. -f : Only look for files (ignore directories even if name matches) no flags : Gives all files and directories with the name in the target directory.
- path can be both relative or absolute
warp
- run warp to go to the given directory. (can be absolute or relative).
Some commands which are not executed through this are executed through execvp like echo, sleep, clear etc.
- The max command size can be 4096 bytes.
- All the C files are getting integrated in makefile and each .c file has its .h file included in headers.h
- I have created a history file for pastevents which should not be touched once created.
- Seek function is also showing hidden files.
- To execute pastevents execute you need to first run pastevents.
- If you run pastevents execute ; it executes it once but doesnt get stored in the history.txt
- iMan works if there is author, return value, options or attribute in it and works till 100000 characters.