Week 1 Lab Introduction To Linux
Week 1 Lab Introduction To Linux
Week 1 Lab Introduction To Linux
Faculty of Computing
International Islamic University Islamabad
Week # 1
Lab Manual
Spring 2024
Table of Contents
Sr # Topic
1 Introduction to Linux
2 Linux Distributions
3 Introduction to Ubuntu desktop
4 Installation guide of VM Ware and Ubuntu
5 GUI of Ubuntu
6 Introduction to Command Line Interpreter
7 Basic commands of BASH
8 Exercise
Founder:
The Linux kernel was created by Finnish-American software engineer Linus
Torvalds in 1991 while he was a student at the University of Helsinki.
Torvalds initially developed Linux as a hobby project, inspired by his
interest in Unix-like operating systems.
Over time, with contributions from thousands of developers worldwide,
Linux evolved into a robust and feature-rich operating system.
History:
Linux's history traces back to the Unix operating system, which was
developed by AT&T Bell Laboratories in the late 1960s and early 1970s.
Unix became widely adopted in academic and commercial environments due
to its portability, multitasking capabilities, and powerful utilities.
In 1983, Richard Stallman launched the GNU Project, an initiative to create
a free and open-source Unix-like operating system.
GNU Project developed many essential components of a Unix-like system,
such as compilers, libraries, and utilities.
In 1991, Linus Torvalds released the first version of the Linux kernel, which
he combined with GNU software to create a complete operating system.
Linux Distributions
Linux distributions, often referred to as "distros," are complete operating
system packages built around the Linux kernel.
While the Linux kernel provides the core functionality of the operating
system, distributions include additional software packages, configuration
tools, and package management systems to create a usable and customizable
environment for users.
Distribution Description
Derived from the sources of Red Hat Enterprise Linux (RHEL), CentOS was
CentOS (now known for its stability, long-term support, and popularity in server
Download the ISO of Ubuntu 18.04 LTS from the link https://old-
releases.ubuntu.com/releases/18.04.2/ubuntu-18.04-desktop-amd64.iso
After downloading the ISO file save it on your folder of your hard disk.
1 - You can see the downloaded file of the installer in the screenshot below.
2 - Now, right click on the file above and choose "Run as Administrator" to launch
the installer window. You will see the welcome page as shown in the image below.
4 - The next screen will ask you to accept the license agreement for this software.
Click on the check box given for accepting the license terms then select "Next".
6 - The next screen will ask you to enable the product updates for this software. If
you choose this option, the software will be updated automatically by the system if
any updated version of the software is released in the future. You can opt out, to
manually apply the update by deselecting this option as shown below.
8 - The last screen of the configuration asks you to click "Install" to start the
installation. If you have already chosen all options correctly, go ahead and hit the
"Install" button to start the installation.
9 - Once you click "Install", installation will be started and the progress bar will be
displayed.
12 - This installation will require a system restart. Select "yes" if you want to
reboot immediately or click "No" if you’d prefer to restart later.
13 - You can see the VMware Workstation shortcut on your desktop or start menu.
Double click on any of these shortcuts to launch the software. Below is the first
look at the software post installation. Here you can create your virtual machine
where you can install any operating systems and compatible applications on the
After you have downloaded the ISO of UBUNTU and you have installed the
VMWARE, now it’s the time to install UBUNTU on VMWARE. Follow the
below steps.
Finish Setup: Review the summary of your virtual machine settings and click
"Finish" to create the virtual machine.
Remote Access:
System Administration:
Many system administration tasks are more easily and efficiently performed
from the command line.
Resource Efficiency:
The CLI provides access to advanced features and capabilities that may not
be available or easily accessible through graphical interfaces.
Users can interact directly with the underlying operating system and
applications, allowing for greater control and customization.
Using the CLI can be a valuable learning experience for users who want to
develop a deeper understanding of how the operating system works and how
commands and utilities interact with system components.
Right click the desktop and choose open in Terminal or use the shortcut Ctrl-Alt-T
Here are example snippets for each of the commands you mentioned, along with a
brief description of what each command does:
cd (change directory):
Command: cd [directory]
Example: cd /home/user/Documents
Description: Changes the current working directory to
/home/user/Documents.
cp (copy):
ls (list):
Command: pwd
Example: pwd
Description: Prints the current working directory, which is the directory that
the user is currently in.
mv (move):
rm (remove):
Exercise:
Please solve the following lab exercise questions and submit them.
File Management:
How would you copy a file named file1.txt from the current directory to a
directory named backup within the same directory?
Describe the difference between the cp and mv commands.
What command would you use to delete a file named old_file.txt from the
current directory?
Directory Management:
How do you create a new directory named new_dir within the current
directory?