On a Linux machine (VM, WSL 2 or lab PC):
strace -c ls /— which system calls doeslsuse most? How many in total?strace -e trace=openat,read,write,close cat /etc/hostname— follow the file: which call opens it, which reads it, which writes it to the screen? What file descriptor numbers do you see and why is output fd 1?- Write a tiny Java (or C/Python) program that writes 100,000 characters one at a time with an unbuffered stream, and another with a buffered one. Run both under
strace -c -fand compare the number ofwritecalls and the time. (Java:FileOutputStreamvsBufferedOutputStream.) cat /proc/interrupts— which devices have produced the most interrupts on each CPU? Run it twice 10 seconds apart and compute the rate for the timer and the network card.dmesg | head -30(may needsudo) orjournalctl -k -b | head -30— find evidence of the boot sequence: kernel version, memory detected, first drivers.
Report your key output lines and explain each in 1–2 sentences using this chapter's vocabulary (trap, system-call table, file descriptor, interrupt, driver, buffering).