Hlanganisa nesipheli usebenzisa le miyalo ephathekayo
Into engangiyilwela kakhulu lapho ngisaqala ukusebenzisa i-Raspberry Pi yayiyi-terminal.
Ngivela ekubeni ngumsebenzisi we-Windows GUI ojabule kusikrini esimnyama esimnyama nesiluhlaza esingenayo izinkinobho nanoma yini okuchofoza kabili. Izinto ezesabekayo uma usebenzisa i-GUI kusukela ku-PC yakho yokuqala.
Lezi zinsuku ngizijwayele kakhulu ukuphela, ngizisebenzisa kakhulu amaprojekthi ami aseRipropberry Pi ngendlela eyodwa. Ngithole amaqhinga amancane nemiyalo encane ngendlela eyangisiza ukuba ngithole lokhu kuqiniseka, futhi ngibelana nalaba ukukusiza ukuthi uqale nge-Pi.
Ayikho into ehamba phambili noma ehamba phambili lapha - imilayezo eyisisekelo yansuku zonke eyokusiza ukuthi uhambe futhi wenze imisebenzi elula nge-Raspberry Pi yakho kusuka ewindini lokugcina. Ngokuhamba kwesikhathi uzothola okuningi, kepha lokhu kuyisisekelo esihle esabekwe ukuze usikhiphe.
01 ka-20
[sudo apt-get update] - Buyekeza uhlu lwephakheji
Lesi yisigaba sokuqala sokubuyekeza i-Raspberry Pi yakho (bona izinto ezimbili ezilandelayo kulolu hlu kwezinye izinyathelo).
I-sudo ifinyelela-thola ukubuyekezwa 'kwezinhlu zokulandwa komyalo wezinketho ezivela kumafolda futhi uthatha ulwazi olushintshe izinguqulo ezintsha kulezi amaphakheji nanoma yimuphi umuntu othembekile.
Ngakho akukwenzi ngempela ukubuyekezwa kwangempela ngomqondo wendabuko, kungaphezulu kwesinyathelo esidingekayo kuleyo nqubo jikelele.
02 ka-20
[sudo apt-get upgrade] - Landa futhi ufake amaPhakheji abuyekeziwe
Lo myalo ulandela kusukela entweni yangaphambilini lapho sibuyekeze uhlu lwethu lwephakethe.
Ngolunye uhlu lwethu lwephakeji olusha olusha, umyalo 'we- sout apt-get upgrade ' uzobuka ukuthi yiziphi amaphakheji okwamanje afakiwe, bese ubheka uhlu lwamaphakheji lwakamuva (olusanda kuthuthukiswa), bese ekugcineni ufake noma yiziphi amaphakheji amasha angenayo ' t ngenguqulo yakamuva.
03 ka-20
[sudo apt-get clean] - Hlela Amafayela Wephakheji Elidala
Isigaba sokugcina esimisweni sokuvuselela nokuthuthukiswa, kanti esinye esingeke ngaso sonke isikhathi sibalulekile uma une-disk isikhala esiningi.
Umyalo ' sudo uthole-uhlanzekile ' umyalo ususa amafayela wephakheji evulekile (amafayela we-.deb) alandiwe njengengxenye yenqubo yokuvuselela.
Umyalo ophephile uma unomphelo esikhala noma ufuna nje ukuhlanza kahle.
04 ka-20
[sudo raspi-config] - I-Raspberry Pi Ukulungiselela Ithuluzi
Lokhu kufanele kube yinye yezinyathelo zokuqala ozithathile lapho uqala ukusebenzisa i-Pijibilberry Pi, ukuze uqiniseke ukuthi isethelwe ulimi lwakho, i-hardware, namaphrojekthi.
Ithuluzi lokumisa lifana nefasitela 'yezilungiselelo', okukuvumela ukuba usethe izilimi, isikhathi / idethi, unike amandla ikhamera yekhamera, idlule inqubo yeprojekthi, inike amandla amadivaysi, ushintshe amaphasiwedi kanye nezinye izinketho.
Ungafinyelela lokhu ngokuthayipha ' sudo raspi-config ' bese ushaya ukungena. Kuye ngokuthi yini oyishintshayo, ungase utshelwe ukuthi uqale kabusha i-Pi yakho kamuva.
05 ka-20
[ls] - Uhla Uhlu Lokuqukethwe
Ku-Linux 'isiqondisi' sifana 'nefolda' ku-Windows. Yilokho okudingeka ngilisebenzise (ngokuba ngumuntu we-Windows) ukuze ngifune ukukhomba lokho phambili.
Kukhona, akunjalo, akekho umhloli wezinto ezibulalayo, ngakho-ke ukuze ubone ukuthi ungaphakathi kwesiqondisi okhona kunoma yisiphi isikhathi esithile, vele uthayiphe ku- ' ls ' bese ufaka ukungena.
Uzobona zonke ifayela kanye nesiqondisi ngaphakathi kwalolu hlobo lwemibhalo oluhlwiniwe, futhi ngokuvamile lufakwe umbala wezinto ezihlukile.
06 kwangu-20
[cd] - Shintsha Izincwajana
Uma ufuna ukungena emkhokheni othile, ungasebenzisa umyalo ' cd '.
Uma ngabe isiqondisi usuvele unamakholi angaphakathi kuwo, ungamane usebenzise 'i- cd namename ' (esikhundleni 'igama lomhlahlandlela' negama lencwadi yakho).
Uma kungenye indawo efonini yakho yefayela, vele ungene endleleni emva komyalo, njenge ' cd / home / pi / isiqondisi somlando '.
Okunye ukusetshenziswa okunamandla kwalo myalo kungu- ' cd .. ' okukubuyisela emuva kwezinga elilodwa lefolda, okufana nekhamera 'emuva'.
07 kwangu-20
[mkdir] - Yakha Uhlu
Uma udinga ukwakha isiqondisi esisha ngaphakathi kwalowo osevele usukhona, ungasebenzisa umyalo we- ' mkdir '. Lena yifani 'elisha> ifolda' yezwe eligcina.
Ukuze wenze isiqondisi esisha, udinga nje ukwengeza igama lwemibhalo emva komyalo, njenge ' mkdir new_directory '.
08 ka-20
[rmdir] - Susa incwadi
Ufunde ukudala isiqondisi esisha, kodwa kuthiwani uma ufuna ukususa eyodwa?
Umyalo ofanayo kakhulu ukususa isiqondisi, sebenzisa ' rmdir ' kuphela igama lomqondisi.
Isibonelo ' rmdir directory_name ' kuzosusa isiqondisi 'isiqondisi_mibhalo'. Kumele uqaphele ukuthi isiqondisi kumele sibe yize ukuze wenze lo myalo.
09 ka-20
[vv] - Hambisa ifayela
Ukuhambisa amafayela phakathi kwerekhodi kufezwa ngokusebenzisa umyalo ' mv '.
Ukuhambisa ifayela, sisebenzisa ' mv ' elandelwa igama lefayela bese isiqondisi sendawo.
Isibonelo salokhu kuzoba ' mv my_file.txt / home / pi / destination_directory ', okuzohambisa ifayela elithi ' my_file.txt ' ku- ' / home / pi / destination_directory '.
10 kwangu-20
[isihlahla -d] - Bonisa Umuthi Wama-Directories
Ngemuva kokudala amarekhodi ambalwa amasha, ungase ulahlekelwe isakhiwo sefolda esibukwayo se-Windows Explorer ifayela. Ngaphandle kokubona ukuhlelwa kokubukwa kwezinkampani zakho, izinto zingahle zidideke ngokushesha.
Umyalo owodwa ongasiza ukuwenza umqondo ozwakalayo wezinkampani zakho " umuthi -d ". Ikhombisa zonke izinkomba zakho ezikulolu hlobo olufana nomuthi ngaphakathi kokuphela.
11 kwangu-20
[pwd] - Bonisa i-Directory yamanje
Omunye umyalo owusizo wokukusiza uma ulahlekile ngumyalo we- ' pwd '. Lokhu kuyasiza uma ufuna nje ukwazi ukuthi ukuphi lapho kunesiphi isikhathi esithile.
Vele ufake ' pwd ' nganoma isiphi isikhathi ukuze ubonise indlela yokuqondisa yamanje ongena kuyo.
12 kwangu-20
[ecacile] - Ukusula i Window Terminal
Njengoba uqala ukuthola i-Hang ye-terminal, uzoqaphela ukuthi ingathola iminyene. Ngemuva kwemiyalo embalwa, ushiya umzila wombhalo esikrinini okungathi abanye bethu bangabacasula.
Uma ufuna ukusula isihenqo sihlanzekile, sebenzisa nje umyalo ' ocacile '. Isikrini sizosulwa, silungele umyalo olandelayo.
13 kwangu-20
[sudo halt] - Shutha phansi i-Raspberry Pi yakho
Ukuvala i-Raspberry yakho Pi ngokuphepha igwema izinkinga ezifana nenkohlakalo yekhadi le-SD. Ungase uhambe ngokudonsa okusheshayo kwenkambo yamandla ngezinye izikhathi, kodwa, ekugcineni, uzobulala ikhadi lakho.
Ukuvala kahle i-pi, sebenzisa i- ' sudo stop '. Ngemuva kokukhanya kokugcina okuvela kuma-LED we-Pi, ungakwazi ukususa ikhebula lamandla.
14 kwangu-20
[sudo kabusha] - Qala kabusha i-Raspberry Pi yakho
Ngokufanayo nomyalo wokuvala, uma ufuna ukuqala kabusha i-Raspberry Pi yakho ngendlela ephephile, ungasebenzisa umyalo ' wokuqalisa kabusha '.
Vele uthayiphe ' sudo kabusha ' futhi i-Pi yakho izoqala kabusha.
15 kwangu-20
[startx] - Qala i-Desktop Environment (LXDE)
Uma usethe i-Pi yakho ukuthi ihlale iqala esibulalayo, ungase uzibuze ukuthi ungaqala kanjani ideskithophu uma udinga ukuyisebenzisa.
Sebenzisa i- ' startx ' ukuqala i-LXDE (i-Lightweight X11 Desktop Environment). Kumele kuqashelwe ukuthi lokhu ngeke kusebenze ngeseshini ye-SSH.
16 kwangu-20
[ifconfig] - Thola ikheli lakho le-IP likaRaspberry Pi
Kunezimo eziningi ezingase zidinge ukuthi wazi ikheli le-IP le-Raspberry Pi yakho. Ngiyisebenzisa kakhulu uma ngilungiselela iseshini ye-SSH ukuze ngifike kude nePi yami.
Ukuze uthole ikheli lakho le-IP, thayipha ' ifconfig ' ku-terminal bese ucindezela ukungena. Ungasebenzisa futhi ' igama lomphathi -I ' ukuthola ikheli le-IP kuphela.
17 kwangu-20
[nano] - Hlela ifayela
I-Linux inezinombolo ezahlukene zabahleli bombhalo, futhi uzothola ukuthi abanye abantu bakhetha ukusebenzisa omunye komunye ngezizathu ezihlukahlukene.
Okuthandwa ngu- ' nano ' ikakhulukazi ngoba kungowokuqala engikusebenzise lapho ngiqala ukuphuma.
Ukuze uhlele ifayela, mane uthayiphe ' nano ' elandelwa igama lefayela, njenge ' nano myfile.txt '. Uma ukuhlelwa kwakho kuqedile, cindezela i-Ctrl + X ukuze ulondoloze ifayela.
18 kwangu-20
[cat] - Ibonisa Okuqukethwe kwefayela
Noma ungasebenzisa i- 'nano' (ngenhla) ukuvula ifayela lokuhlela, kunomyalo ohlukile ongayisebenzisa ukuvele ulandele okuqukethwe kwefayela ngaphakathi kokuphela.
Sebenzisa ' ikati ' elandelwa igama lefayela ukwenza lokhu, isibonelo ' cat myfile.txt '.
19 kwangu-20
[rm] - Susa ifayela
Ukukhipha amafayela kulula ku-Raspberry Pi, futhi kuyinto ozoyenza okuningi njengoba wenza izinguqulo eziningi zamafayela we-Python ngenkathi uthola ikhodi yezinkinga.
Ukuze ususe ifayela, sisebenzisa umyalo we- ' rm ' olandelwa igama lokufaka igama. Isibonelo sibe ' rm myfile.txt '.
20 kwangu-20
[cp] - Kopisha ifayela noma yirekhodi
Uma udinga ukwenza ikhophi yefayela noma isiqondisi, sebenzisa umyalo ' cp '.
Ukwenza ikhophi yefayela lakho kumhlahlandlela ofanayo, faka umyalo njenge ' cp original_file entsha_file '
Ukuze wenze ikhophi kuhlu lwemibhalo ehlukile, ngegama elifanayo, faka umyalo njenge ' cp original_file home / pi / subdirectory '
Ukukopisha yonke isiqondisi (kanye nokuqukethwe kwayo), faka umyalo njenge ' cp -R home / pi / ifolda_yodwa ekhaya / pi / ifolda_two '. Lokhu kuzokopisha 'folda_one' ibe 'folder_two'.