Prompt format: username@system-name:directory recent-foreground-process:time $
Only tabs and spaces are considered whitespace characters.
- When given multiple arguments to hop, it sequentially moves to those directories until an erroneous path is given.
- A file is considered hidden if and only if its name starts with
. reveal -lwill also print the destination of symbolic links, like bash'sls -l.- This code works for an arbitrary number of directory entries (as it uses dynamic memory allocation).
- Using the
-argument as a directory will raise anInvalid patherror if no previous working directory exists.
- Erroneous commands are also logged.
- The command corresponding to the index in
log execute <index>also gets logged while runninglog exeute. log execute nexecutes thenth most recent command.logdisplays logged commands, newest at the bottom.- The
exitcommand is logged.
- PIDs range from 1 to 9999999.
- On running an erroneous system command in the background, it will first show the error then say that the erroneous process exited abnormally, as it should.
- A process is considered a background process if its controlling terminal is 0. Although this is not always the case, it is a reasonable assumption.
- To obtain all the information about some processes, like executable paths, it is required to run the shell in
sudo, otherwise it will raise aPermission deniederror. - The
Virtual Memoryfield shows the number of bytes of memory that the process is using.
- Executables won't be searched for, with the
-eflag.
- Dynamic aliasing is supported.
- Aliases should be set in the format
alias xx = yy. Note that spacing matters. Everything must be space-separated.xxmust be a single word,yycan be multiple. - Typing
aliaswill show a list of all aliases made so far. .myshrcworks like a typical run-commands file for any shell, it will run all the commands present in it on startup.
- Will work as expected for valid commands, but for commands involving
<,>and>>, they must be separated by spaces.
- Running processes are printed in ascending order of their PIDs.
- None.
- None.
- None.
- None.