• 2. A session in the shell

    In this unit we will go through a longer terminal session to understand the logic of the language. We start by exploring the system environment and then move on to screen handling. The commands we issue in this unit are very simple and limited to getting information from the system - all "read-only". You also learn to how to record a terminal session. See the script 2.2 Handout: A shell session for details. Then you have to upload the results on to 2.3 Assignment: A shell session.

    Commands you will learn: cal ; clear ; date ; echo ; exit ; hostname ; ncal ; reset ; stty size ; top ; uname ; uptime

    • 2.1 Recording: A shell session URL
      Not available unless: The activity 2.2 Handout: A shell session is marked complete
    • 2.2 Handout: A shell session Page

      We interact with a Unix machine by issuing commands to its shell. Learn the basic structure of those commands by practicing, date, cal, ncal, uptime, top, hostname, uname, echo, echo $SHELL and echo $USER. And also get used to how the shell behaves with type-ahead and get to know some control commands (Ctrl+C, Ctrl+D,..).

      Not available unless: The activity 1.5 Test: Intro, Log in is marked complete
    • 2.3 Assignment: A shell session

      When capturing a screen-cast the typical GUI user makes films, generating big video files which are sometimes not even sharp. The shell user captures his terminal in the terminal itself, for example in ttyrec. The resulting files are thousand times smaller and always sharp!

      Not available unless: The activity 2.2 Handout: A shell session is marked complete
    • 2.4 Test: A shell session Quiz

      Check what you've learned above by taking this MC test.

      Not available unless: The activity 2.3 Assignment: A shell session is marked complete
    • 2.5 Assignment (optional). Some fun commands Forum

      In the course we learn only the essential shell commands. But Unix is built in such a way that others can add commands on their own. The mainstream Linux distributors collect such additional tools on their merit, package them and add in to their repositories. So, in the case of Debian/Ubuntu it is a matter of # apt install PACKAGE to install such a package.

      We have installed the collection below in the lab machine - some serious and other less serious. Read about them,, test them and post your findings in this forum. Note that you can start only one discussion. Chose a tool nobody has taken. If you like to add something about a tool somebody else has taken, then reply in the other thread.

      atop | axel | btop | cmatrix | csysdig | curl | ffmpeg | figlet | htop | iftop | iotop | jp2a | lynx | fastfetch | linuxlogo | nmap | ntop | perf | powertop | ranger | sensors | speedtest-cli | s-tui | stress | tcpdump | tcptraceroute | tldr | traceroute | w3m | wget

      Not available unless: The activity 2.4 Test: A shell session is marked complete