Lab - I


25 July 2019
In this lab, you will explore the Linux Operating System and refresh your memory from the IT Lab in the first year. Find out the following about Linux:
  1. What CPU and how much memory is there on your computer?
  2. What is the kernel version of Linux on your computer?
  3. Which Linux distribution is running on your computer?
  4. What is the top-level directory structure?
  5. What is the difference between /usr/bin and /bin directories?
  6. How many processes are there on the computer you are on? Type ps aux and pipe the output through wc -l to get the answer. If you don't know what you did, try asking Mother Google or read the man pages.
  7. How do you find the command line argument list of the various processes on your computer?
  8. Log on to the scis server by typing
    ssh -Y 10.5.0.63
    What does the command who output?
  9. On the scis server, type the command
    who /var/log/wtmp
    What do you think is the output?
  10. Type man who on your local computer to know about the who command. Now, can you make sense of the output?
  11. Why are executable programs named a.out by default on Linux?
  12. What is biff command in older UNIX/Linux systems? Why is the command named so? Hint: it involves a dog!
  13. Compile and run this program as it is.
    main() { printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}
    What does it output? How does it do that? Can you modify it to print any word of your choice?

    This is the famous program by Korn which won the IOCCC in 1987!

  14. What does the command uname output? Try out its different options.