0% found this document useful (0 votes)
10 views5 pages

Hands-On Projects for Operating Systems I

The document outlines hands-on projects for Operating Systems I, specifically focusing on tasks related to virtual machine setup and Linux commands. It includes detailed steps for creating a swap partition, executing commands, and capturing screen images for various projects. Additionally, it references command usage for shutting down and rebooting the Linux system, along with a list of new commands learned in the chapter.

Uploaded by

9jafmz
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views5 pages

Hands-On Projects for Operating Systems I

The document outlines hands-on projects for Operating Systems I, specifically focusing on tasks related to virtual machine setup and Linux commands. It includes detailed steps for creating a swap partition, executing commands, and capturing screen images for various projects. Additionally, it references command usage for shutting down and rebooting the Linux system, along with a list of new commands learned in the chapter.

Uploaded by

9jafmz
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

CIT 352 Operating Systems I Chapter 2

Name: EMMANUEL OLUWAFEMI AJUWON


Complete all Hands-On Projects by executing every step in each project. Refer to the
notes at [Link] for any official changes to
instructions made since publication. For those steps listed below, follow the additional
instructions to complete your assignment.

Project 2-1
Step 1 – 2
 Skip (you have already done
these steps during VirtualBox
installation and the creation of a
VM to load Fedora)
Step 8a
 In order to improve the
performance of your virtual
machine, we will allocate a swap
partition.
 Create the swap partition:
o Click the + icon
o Point: swap
o Desired Capacity: 3.96G
o Click Add mount point
 When completed, your
installation screen should have
the changes shown in the
provided screenshot.
 Insert a screen capture of your Manual Partitioning page.

1
CIT 352 Operating Systems I Chapter 2

Step 12
 To detach your live media ISO image, select it in the Storage page and
click the disk icon on the far left of the dialog. Then select the Remove
Disk from Virtual Drive option. Click OK.

Project 2-2
Step 1
 Windows users: Press either Ctrl+Alt+F3 or Ctrl+Alt+Fn+F3
 Mac users: Press either Ctrl+Command+F3 or Ctrl+Command+Fn+F3
Step 7
 Insert the screen capture of the commands you have executed EXCEPT
for the exit command

Project 2-3
Step 1
 In some cases, your graphical terminal may initialize on tty2 instead of
tty1, so you will need to use Ctrl+Alt+F2 instead of Ctrl+Alt+F1.
Step 5
 At the end of this step, type dnf upgrade to update all packages on your
Fedora (this may take some time to complete)
Step 8
 Instead of using Terminal, click on Applications -> System Tools - >
Konsole and use the Konsole application.
Step 10
 Insert the screen capture

2
CIT 352 Operating Systems I Chapter 2

Project 2-4
Step 6
 Insert the screen capture

Step 10
 Insert the screen capture

3
CIT 352 Operating Systems I Chapter 2

Project 2-5

Step 2
 Describe the purpose of the ‘;’ metacharacter

The are special character that have special meaning to take advance of the system. They are to pe

Step 12
 What function do the back quotes perform?
It substitute a command.
 Insert the screen capture. Note: whoami should be wrapped in back
quotes ` ` both beginning and end. These are different from single
quotes.

Project 2-6
Step 6
 Insert the screen capture

4
CIT 352 Operating Systems I Chapter 2

Project 2-7
Step 2
 Which commands from Table 2-9 can also be used to power off your Linux
system immediately?
Shutdown -P now
 Which commands from Table 2-9 can also be used to reboot your Linux
system immediately?
Poweroff

Command Reference (List all new commands you have learned in this chapter)
Ls Date Cal Whoami Su Clear Echo Shutdown poweroff

Common questions

Powered by AI

The 'dnf upgrade' command is crucial for maintaining system security and performance in Fedora by updating all installed packages to their latest versions, including security patches and new features. This command should be used regularly to keep the system up-to-date, ideally immediately after installing Fedora or when new updates are available .

Inserting 'whoami' command within back quotes is important for command substitution, where the output, i.e., the current username, is dynamically captured and used within another command. For example, using `` `whoami` `` within an echo statement allows the script to output the current user, aiding in dynamic script configurations and debugging .

To safely detach a live media ISO image in a virtual environment, you should first access the Storage page, select the ISO image, click the disk icon on the far left, and choose 'Remove Disk from Virtual Drive.' Finally, click 'OK' to confirm the detachment, ensuring that the virtual machine no longer boots from the live media .

Using 'Konsole' over a standard terminal offers several advantages. It provides a richer graphical interface, supports multiple tabs, customizable appearance, and robust session management. These features enhance productivity by allowing users to multitask efficiently within a single window and make it easier to manage multiple concurrent jobs .

Users can switch between different text and graphical environments in Fedora using keyboard shortcuts that access different TTYs. For Windows users, 'Ctrl+Alt+F3' or 'Ctrl+Alt+Fn+F3' switches to a text console, while Mac users use 'Ctrl+Command+F3' or 'Ctrl+Command+Fn+F3.' To switch back to a graphical interface, users typically use 'Ctrl+Alt+F2' (or similar, depending on the configuration).

The commands that can be used to immediately power off a Linux system include 'shutdown' and 'poweroff', while 'reboot' can be used to reboot the system immediately. These commands ensure the system halts or restarts gracefully, closing open files and services .

Back quotes in shell scripts are used for command substitution, allowing the output of commands to be captured and used in expressions. For example, the command `echo "Current user: lwhoami"` executes `whoami`, capturing the current username and appending it to the echo statement .

The ';' metacharacter in shell scripting acts as a command separator, allowing multiple commands to be executed sequentially on the same line. Each command is executed independently, and ';' enables concise scripts by reducing the need for multiple lines. For instance, 'echo "First command"; echo "Second command"' executes both echo statements in order .

Screen capturing documents project progress by providing visual evidence of completed tasks, crucial for project verification and troubleshooting. Effective capturing involves ensuring all relevant information is displayed clearly, using consistent file naming for organization, and including only the necessary areas of the screen to avoid confusion .

Creating a swap partition improves a virtual machine's performance by providing additional virtual memory on disk, which the system can use when physical RAM is fully utilized. This helps prevent application crashes due to memory shortages and allows smoother multitasking. To create a swap partition in Fedora, you need to click the '+' icon, set the mount point to 'swap', specify the desired capacity as 3.96GB, and click 'Add mount point' .

You might also like