CSCI1520 25spring Tutorial 2
CSCI1520 25spring Tutorial 2
Yuxuan Bian
[email protected]
Ho Sin-hang Engineering Building (SHB)
1026 17 Fri 9:30-11:30
1
Outline
1 Introduction to
CLI
3. Introduction of UTM
2
Part 1. Introduction to CLI
3
Introduction to CLI
4
Operating system (OS)
A system software
manages all of the other
application programs in a
computer
acts as an intermediary between
programs and the computer
hardware
applications interact with operating
system by application program
interface (API)
users interact with operating system
through user interface, such as CLI
or GUI
5
Graphical User Interface (GUI)
6
Command Line Interface (CLI)
7
Comparisons on GUI and CLI
GUI CLI
8
Part 2. Basic usage of system commands
9
Basic usage of system commands
1 Opening CLI
2 Concepts: path, commands and
3 arguments Basic commands usage
10
Opening CLI in Win
11
Opening CLI in Win
12
Opening CLI in Mac
13
Basic Usage of commands
MacOS/Linux. 14
Commands and arguments
15
Imagine a file explorer
The file explorer will tell you which folder you are
looking into.
And this folder is called current working
directory. The CLI prompt will also tell
this.
16
Change the current working directory
Win/Mac/Linux: cd
<path>
Change CWD to <path>
17
How are files and folders organized?
Just like a
TREE.
18
How to locate a file or directory: absolute path
19
How to locate a file or directory: related path
20
Change the current working directory
21
Compile a .cpp file
22
Compile a .cpp file
23
List the files and folders of the target directory
Windows: dir <path>
MacOS/Linux: ls <path>
If you don’t input the <path>, it will be defaulted
to CWD.
24
Display the contents of a text file
25
Copy files
26
Move files
27
Compare the contents of two files
28
Open the current folder in CLI with a pop-up window
Win: explorer <path>
Mac/Linux: open <path>
29
Delete files or folders
30
Provides information about system commands
31
Clear the CLI
Win: cls
Mac/Linux:
clear
32
Autocomplete
33
Wildcard character “ * ”
34
Wildcard character “ * ”
Matches any
string of
characters.
ab*.txt : all .txt
files whose name
starts with
“ab”
del command
to delete files
35
Part 3. Introduction of UTM
36
Installation
37
Installation
2. Open UTM
• Open the download file (UTM.dmg),
and move it to “Applications”
• Open the “UTM” app
38
Installation
39
Installation
40
Installation
41
Installation
6.
Choose
“Version” and
“Architecture”
.
Click
“Download”
42
Installation
6.
Waiting download.
After downloaded,
choose a destination
where you want to
save it.
43
Installation
7. Load the download “.iso” file in UTM.
• Click “Browse”
• Choose the downloaded “.iso” file
• Click “Continue”
2
1
3
44
Installation
7. Allocate the memory and CPU cores.
• Click “Continue”
45
Installation
8. Allocate the Storage.
• Click “Continue”
46
Installation
8. Set the Shared Directory (optional).
• Click “Continue”
47
Installation
9. Verify the Summary
• Click “Save”
48
Installation
10. Start the Virtual Machine
• Click the play button
49
Installation
10. Start the Virtual Machine
• Press any key to start the
windows
• Set the language,
location and keyboard,
then click “Next”
50
Installation
10. Start the Virtual Machine
• Choose “I don’t have a product key”, then click “Next”
51
Installation
10. Start the Virtual Machine
• Choose “Windows 11 Pro”,
then click “Next”
• Choose “Accept”, then click
“Next”
52
Installation
10. Start the Virtual Machine
• Choose “Drive 0”, then click
“Next’
• Wait installing
53
Installation
11. Setup Windows
• Set country
• Set keyboard
• Set account name & passward
54
Installation
11. Setup Windows
• Waiting
• Windows is opened
55
Installation
12. Proceed with UTM Setup
• Click “Next”
• Click “I Agree”
• Wait installing
1
2
56
Installation
12. Proceed with UTM Setup
• Click “Confirm” • Click “OK”
57
Installation
13. Restart the Virtual Machine
• After click “OK” in the last step, you may encounter your VM to be
unresponsive.
• If so, turn off your virtual machine
58
Installation
13. Restart the Virtual Machine
• power it on again after clearing
• Waiting re-start
59
Installation
14. Now, you can download and install Visual Studio on the Windows
Virtual Machine.
60
Thanks for your
attending.
Yuxuan Bian
[email protected]
Ho Sin-hang Engineering Building (SHB)
1026 17 Fri 9:30-11:30
61