Fading Coder

One Final Commit for the Last Sprint

Understanding Shell Types and Environment Configuration in Unix-like Systems

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...

Implementing Unix Utilities in Xv6: Sleep, Ping-Pong, Primes, Find, and Xargs

Implementing Unix Utilities in Xv6: Sleep, Ping-Pong, Primes, Find, and Xargs
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...

Core Linux Terminal Utilities and Usage Patterns

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...