Intro to Linux Homework

Homework

Homework 1

  • We have started to look at Linux which is an Operating System, just like Windows we you have used a lot already.
  • You also have Operating Systems on smartphones too, like Android and iOS.
  • Your task is to compare the User Interface (UI) of Windows and the UI of a smartphone that you have used.
  • Look at the list of UI components below and then write a sentence on what we use on smartphones instead of them and why.
    1. Start Menu
    2. Desktop screen
    3. Programs
    4. Login screen
    5. Taskbar

Homework 2

  • Research the following and answer each question with a paragraph using complete sentences (not copy and pasted from the Internet) and no spelling mistakes.
    1. Linux is a free and open source OS. What does it mean by open source?
    2. What is a kernel?
    3. What is Linux? What does it do?
    4. If Linux is free and open source software, how do programmers working on such software make money?

Homework 3

The following file system is commonly seen in a Linux environment. When you log on, normally your home directory will be /home/yourLoginID. Tom Green logged on using his login ID 02TG11.

linux.png

Answer the following questions:

  1. What is the full path to the English directory?
  2. What command does Tom need to find out where the current directory is in the file system?
  3. Tom wants to create another directory for his subject Maths under his own home directory. What command does he need?
  4. Tom has a file named “MathsExercise.txt” under his home directory. What command allows him to move this file into the new Maths directory he just created?
  5. Under his home directory, Tom used “cd Maths” to navigate to the Maths directory. After he has done some work, he needs to move back to his home directory. What is the shortest command Tom can use?
  6. Once Tom moved to his home directory, he used the command “touch myCSHomeWork.txt” to create a new file. He then used “emacs myCSHomeWork.txt” to edit the file. After he has done editing, he needs to save and close emacs. What emacs key combinations (in order) should he use?
  7. Tom later wants to find out if his myCSHomeWork.txt contains the word “algebra”. Without opening this file, how does Tom find it out?