IoT & Raspberry pi (Linux 1) 12. Oct
Download 0.54 Mb.
|
4. linux 1
IoT & Raspberry PI (Linux 1)12. Oct. 2022Dr. Seungjik LeeTATUWordsOSLinuxWindowsMACIP AddressMAC AddressWordsClientsWeb serverNetworkHardwareSoftwareFirmwareLinux 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 modeKinds of LinuxLinux Terms- Difference between Super User and User- Directory- File- Parent directory and child directory- Command (command [-Option] parameter …)- Path- PermissionTop-level directoryLinux command 1First, 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 21) 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 subdirectoriesLinux Command 32) pwd : Current directory location3) cd : change directorycd .cd ..cd /home4) mkdir: create directorymkdir TestLinux command 45) mkdir: create directorymkdir Test6) rmdir : delete directoryrmdir Test(*Important)Always be careful when deleting a directoryLinux Command 57) touch : create empty filetouch aaa8) cat : show the contents of the filecat aaa9) cat > : Saves the input received with the keyboard, and saves it with Ctrl-D.cat > aaa.pyLinux Command 610) cp : copy a filecp aaa bbb11) rm : delete filesrm aaa12) mv: move and rename filesmv aaa ccc : rename aaa to cccLinux command 713) man : output help- man ls- man man- man date- man cal14) clear : Clear the screenExercise 1Create 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-tube1) Linux 1 for raspberry pi :https://www.youtube.com/watch?v=KQlF7IfgZ28&list=PLGs0VKk2DiYypuwUUM2wxzcI9BJHK4Bfh&index=32) Linux 2 for raspberry pi :https://www.youtube.com/watch?v=boD-opv0fMs&list=PLGs0VKk2DiYypuwUUM2wxzcI9BJHK4Bfh&index=4Thank 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
ma'muriyatiga murojaat qiling