activities
: Displays processes spawned by the shell which are eitherrunning
orstopped
.
USAGE: activities
bg
: Continues thestopped
process in thebackground
.
USAGE: bg <pid>
fg
: Continues thestopped
process in theforeground
.
USAGE: fg <pid>
iMan
: Displays theman
page of the command
USAGE: iMan <command_name>
neonate
: Prints thePID
of the recently created system process everyn
seconds and stops printing when the user presses thex
key.
USAGE: neonate -n <time_in_seconds>
pastevents
: Prints the last 15unique
commands executed in the shell. Theexecute
flag along with the indexi
executes the command ati
. Thepurge
flag clears the pastevents.
USAGE: 1. pastevents
2. pastevents execute <index>
3. pastevents purge
peek
: Prints all the files and directories in the specified directories in lexicographic order. The-l
flag lists the files with all the details. The-a
flag lists all the files in the directory. Both the flags can be used simultaneously. Flags like- , ~ , .. , .
are also supported.
USAGE: peek <flags> <path/name>
ping
: It is used to send signals to processes.
USAGE: ping <PID> <signal_number>
proclore
: It is used to obtain information regarding a process. If noPID
is given, then it prints the information of the shell.
USAGE: proclore <PID>
seek
: It looks for a file/directory in the specified target directory (or current if no directory is specified). It returns a list of relative paths (from target directory) of all matching files/directories. The-f
flag returns onlyfiles
. The-d
returns onlydirectories
. The-e
flag prints the content if target is a file and goes to the target directory if target is a directory. Both-f
and-d
cannot be used together.
USAGE: seek <flags> <search> <target_directory>
warp
: It changes the directory that the shell is currently in. It works with the usual flags such as- , ~ , .. , .
. If no argument is given then it goes to thehomeDirectory
of the shell.
USAGE: warp <path>
I/O redirection
: I/O redirection can also be done using> , < , >>
and|
.
- The user is expected to run the shell in
root
mode (sudo ./a.out) to give access toproclore
. - The user is expected to not delete the
.prev*dir*
,history.txt
andproc
files while and after running the shell. - The user is expected to give at max
30 commands
to the shell at the same time and command length should not exceed4096 bytes
. CTRL+C
also kills the background process.CTRL+C
will print newline if no process is running.neonate
will terminate only afterx
is pressed and there might be a delay of1 second
.- The user is expected to not give more than
100
background processes at the same time. vim
might cause issues with the shell. So testing is preferred ongedit
andemacs
.- The shell does not support text enclosed within double quotes(
"
). That means, a command likeecho "Lorem Ipsum"
will be printed as"Lorem Ipsum"
and not asLorem Ipsum
. Hence, commands likesed
will not work. - User should run the shell on Ubuntu/Kali/any other Linux Distro.
- Redirection using user defined functions might not work/might print invalid characters.
- User is advised to give the path to the target directory while using
warp
.
On a side-note, Sea-Shell
does not sell seashells
on the seashore :(.