IoT & Raspberry pi (Linux 1) 12. Oct


Download 0.54 Mb.
Sana01.11.2023
Hajmi0.54 Mb.
#1737886
Bog'liq
4. linux 1

IoT & Raspberry PI (Linux 1)

12. Oct. 2022

Dr. Seungjik Lee

TATU

Words

OS

Linux

Windows

MAC

IP Address

MAC Address

Words

Clients

Web server

Network

Hardware

Software

Firmware

Linux 1

- Windows and Linux

- Where do you use Linux?

- Window is mainly used for clients.

- Linux is mainly used for Servers.

- Window is mainly used GUI Environments.

- Linux is mainly used in command mode

Kinds of Linux

Linux Terms

- Difference between Super User and User

- Directory

- File

- Parent directory and child directory

- Command (command [-Option] parameter …)

- Path

- Permission

Top-level directory

Linux command 1

First, let's get practiced with Linux by entering the following command.

- hostname

- whoami

- date

- cal

- cal 2021

- cal sep 2021

* Prints the November 2060 calendar, what day is the 28th?

Linux command 2

1) ls: View File List

(Option)

-a : Print all files (including hidden files)

-l : Print detailed information about each file, such as owner, permission, and update date.

-t : output in the order of the most recently created files

-R : print all subdirectories

Linux Command 3

2) pwd : Current directory location

3) cd : change directory

cd .

cd ..

cd /home

4) mkdir: create directory

mkdir Test

Linux command 4

5) mkdir: create directory

mkdir Test

6) rmdir : delete directory

rmdir Test

(*Important)

Always be careful when deleting a directory

Linux Command 5

7) touch : create empty file

touch aaa

8) cat : show the contents of the file

cat aaa

9) cat > : Saves the input received with the keyboard, and saves it with Ctrl-D.

cat > aaa.py

Linux Command 6

10) cp : copy a file

cp aaa bbb

11) rm : delete files

rm aaa

12) mv: move and rename files

mv aaa ccc : rename aaa to ccc

Linux command 7

13) man : output help

- man ls

- man man

- man date

- man cal

14) clear : Clear the screen

Exercise 1

Create a directory called Linux, and create files called test1.py and test2.py in that directory.

The contents are as follows.

Contents of test1 : I am a student in TATU.

Contents of test2 : Uzbekistan is the best country.

Make another one(file) with the same content.

Linux video on you-tube

1) Linux 1 for raspberry pi :

https://www.youtube.com/watch?v=KQlF7IfgZ28&list=PLGs0VKk2DiYypuwUUM2wxzcI9BJHK4Bfh&index=3

2) Linux 2 for raspberry pi :

https://www.youtube.com/watch?v=boD-opv0fMs&list=PLGs0VKk2DiYypuwUUM2wxzcI9BJHK4Bfh&index=4

Thank you for your studying.


Download 0.54 Mb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling