Professional Documents
Culture Documents
In Lab 1 Slide
In Lab 1 Slide
In Lab 1 Slide
Introduction to
Linux Programming
TA - Nhu Huynh
Contact information
For information or any inquires, please contact via
Opt1: Install Linux with VirtualBox. Opt2: Install WSL on Window: lightweight, fast
(May take you 30 mins or even hours) startup but lacking full Linux desktop experience.
Terminal &
Command Line
To launch Linux terminal:
- Ctrl + Alt + T
- Click Ativities->Type “Terminal”
Update/Install
Your very first command!
//Your student ID
To open a file in Nano, type nano filename in the terminal.
Use arrow keys to navigate through the text.
To start typing or editing, simply begin typing.
Press Ctrl + O to save the file.
Press Ctrl + X to exit Nano.
If prompted to save changes, press Y for yes or N for no.
To search for a word, press Ctrl + W, type the word, and press Enter.
Press Ctrl + G for help and see other available commands.
Nano displays common actions at the bottom for easy reference.
Welcome to our first lab!
Exercise 1 - 9:30 AM
Submit <StudentID>.zip:
Screenshots
<StudentID>-history.txt
Linux Kernel & Shell
Linux system = Kernel + GNU system utilities & Shell is the interface helping user
libraries + other management scripts + installation communicate with the kernel.
scripts.
Bash
BASH is a default command line shell interpreter on many Linux OS.
A bash script file is a text file with extension .sh
To find where the bash interpreter locates, we type:
$ which bash
To declare the interpreter, we put “#!/bin/bash” in the first line of the script
file.
Read more in the “Lab_1_HK232”, submit your file <calc.sh> for exercise 3.6.
Welcome to our first lab!
A Makefile consists of a
set of rules, includes:
targets: prerequisites
command
command
Makefile
Read more in the Lab file.
Submit your file
<Makefile>, <calc> for
exercise 5.3.