In Unix-based operating systems (including Linux distributions and macOS), the shell serves as an intermediary between users and the kernel. Commands typed at the keyboard are parsed by the shell and forwarded to the kernel for execution. 1 Unix Shell Variants Modern Unix systems typically include m...
Sleep A simple utility to pause execution for a specified number of seconds. #include "kernel/types.h" #include "user/user.h" int main(int argument_count, char *argument_values[]) { if (argument_count < 2) { fprintf(2, "Usage: sleep <seconds>\n"); exit(1); } in...
Directory Navigation and File System Enspection ls: Enumerates contents within a target folder. pwd: Outputs the absolute path of the current shell environment. cd <path>: Transitions the shell to a specified directory. cd ..: Moves up one level in the hierarchy. cd -: Reverts to the previousl...