Dala noma susa ifayela ku-Linux - yini okungaba lula? Kodwa-ke, kwezinye izimo, indlela yakho oyizamile neqiniso ingahle ingasebenzi. Kulokhu, kungaba ukuhlakanipha ukubheka isixazululo senkinga, kepha uma singekho isikhathi salokhu, ungasebenzisa ezinye izindlela ukwenza noma ukucisha amafayela kwi-Linux. Kulesi sihloko, ethandwa kakhulu kuzo kuzohlaziywa.
Indlela yoku-1: Isiginali
Ukusebenza ngamafayela ku- "Terminal" kuhlukile ngokusebenza kumphathi wefayela. Okungenani, akukho okubonakalayo kuyo - uzofaka futhi uthole yonke imininingwane ewindini ebukeka njengelayini lomyalo we-Windows wendabuko. Kodwa-ke, kungale ngxenye yesistimu lapho kuzokwazi ukulandelela wonke amaphutha enzeka ngenkathi kwenziwa umsebenzi othile.
Imisebenzi Yokulungiselela
Usebenzisa i- "Isiginali" ukudala noma ukusula amafayela ohlelweni, kufanele uqale ucacise kulo uhla lwemibhalo lapho yonke imisebenzi elandelayo izokwenziwa khona. Ngaphandle kwalokho, wonke amafayela adaliwe azoba semkhondweni wezimpande ("/").
Kunezindlela ezimbili zokucacisa umkhombandlela ku- "Isisetshenziswa sokugcina": ukusebenzisa imenenja yefayela nokusebenzisa umyalo cd. Sizohlaziya ngamunye ngamunye.
Imenenja yefayela
Ngakho-ke, ake sithi ufuna ukudala noma, ngakolunye uhlangothi, susa ifayela kufolda "Imibhalo"ukuba sendleleni:
/ Ikhaya / Username / Imibhalo
Ukuvula lo mkhombombhalo ku- "Isikhumulo", kufanele uqale uyivule kwimenenja yefayela, bese, ngokuchofoza i-RMB, ukhethe into kumenyu yokuqukethwe. "Vula ku-terminal".
Ngenxa yalokhu, "I-terminal" izovula, lapho kuzoqondiswa khona umkhombandlela okhethiwe.
Umyalo we-Cd
Uma ungafuni ukusebenzisa indlela edlule noma ungatholi imenenja yefayela, ungacacisa umkhombandlela ngaphandle kokushiya i- “ukuphela”. Ukuze wenze lokhu, sebenzisa umyalo cd. Konke okudingeka ukwenze ukubhala lo myalo, bese ukhombisa indlela eya kusiqondisi. Sizokuhlaziya ngendlela efanayo nefolda eyisibonelo "Imibhalo". Faka umyalo:
cd / ikhaya / Igama lomsebenzisi / Imibhalo
Nasi isibonelo sokuhlinzwa okwenziwe:
Njengoba ukwazi ukubona, kufanele ungene ekuqaleni indlela yomkhombandlela (1), nangemva kokucindezela ukhiye Ngena ku- "Terminal" kufanele iboniswe isiqondisi esikhethiwe (2).
Lapho usufundile ukuthi ungayikhetha kanjani inkomba yokusebenza lapho ungasebenza khona ngamafayela, ungaya ngqo kwinqubo yokwenza nokususa amafayela.
Ukwakha amafayela nge- "Isiginali"
Ukuze uqalise, vula i- "ukugcina" ngokwayo ngokucindezela isinqamuleli sekhibhodi I-CTRL + ALT + T. Manje usungaqala ukudala amafayela. Kunezindlela eziyisithupha ezihlukile zokwenza lokhu, ezizokhonjiswa ngezansi.
Isisetshenziswa sokuthinta
Umsebenzi weqembu thinta ku-Linux, kushintsha i-timestamp (isikhathi sokushintsha nesikhathi sokusebenzisa). Kepha uma ukusetshenziswa kungatholi igama lefayela elifakiwe, kuzokwakha ngokuzenzakalelayo okusha.
Ngakho-ke, ukuze wakhe ifayela udinga ukubhalisa kulayini womyalo:
thinta "FileName"
(kuyadingeka kumaki wokucaphuna).
Nasi isibonelo somyalo onjalo:
Umsebenzi wokuqondisa kabusha wenqubo
Le ndlela ingabhekwa njengeyona elula kunazo zonke. Ukwakha ifayili ngalo, udinga nje ukucacisa isignali yokuqondisa kabusha bese ufaka igama lefayela elidaliwe:
> "FileName"
(kuyadingeka kumaki wokucaphuna)
Isibonelo:
I-Echo iyalela kanye nomsebenzi wokuqondisa kabusha inqubo
Le ndlela ayihlukile neze kweyangaphambili, kuphela kuleli cala lapho udinga ukufaka umyalo we-echo ngaphambi kophawu lokuqondisa kabusha:
echo> "FileName"
(kuyadingeka kumaki wokucaphuna)
Isibonelo:
Ukusebenza kwe-Cp
Njengokusetshenziswa thinta, umsebenzi oyinhloko weqembu cp hhayi ukudala amafayela amasha. Kuyadingeka ukukopisha. Noma kunjalo, ukusetha okuguqukayo "null", uzokwakha idokhumenti entsha:
cp / dev / null "I-FileName"
(kuyadingeka ngaphandle kwamaphuzu wokucaphuna)
Isibonelo:
Umyalo wekati kanye nomsebenzi wokuqondisa kabusha inqubo
ikati - lo ngumyalo osetshenziselwa ukuxhumanisa nokubuka amafayela nokuqukethwe kwawo, kodwa kufanelekile ukuwusebenzisa kanye nokuqondisa kabusha inqubo, ngoba izokwakha ifayela elisha ngokushesha:
ikati / dev / null> "I-FileName"
(kuyadingeka kumaki wokucaphuna)
Isibonelo:
Ihlela umbhalo
Kungumsebenzi vim Inhloso enkulu ukusebenza ngamafayela. Kodwa-ke, ayinayo i-interface - zonke izenzo zenziwa nge- “terminal”.
Ngeshwa vim ayikhunjululwa kukho konke ukusatshalaliswa, ngokwesibonelo, ku-Ubuntu 16.04.2 LTS akuyona. Kepha lokhu akunandaba, ingalandwa kalula kusuka ekhoselweni futhi ifakwe kwikhompyutha yakho ngaphandle kokushiya i- “ukuphela”.
Qaphela: uma umhleli wekhonsoli wombhalo vim Uma usuvele ufake, bese weqa lesi sinyathelo bese uqhubeka ngokushesha ekwakheni ifayili ulisebenzisa
Ukufaka, faka umyalo:
faka i-sudo apt
Ngemuva kokucindezela Ngena uzodinga ukufaka iphasiwedi. Faka bese ulinda ukulanda nokufaka ukuze uqede. Ngenqubo, ungacelwa ukuba uqinisekise ukwenziwa komyalo - faka incwadi D bese uqhafaza Ngena.
Ukuqedwa kokufakwa kohlelo kungahlulelwa ngokungena okuvele negama lekhompyutha.
Ngemuva kokufaka isihleli sombhalo vim Ungaqala ukudala amafayela ohlelweni. Ukuze wenze lokhu, sebenzisa umyalo:
vim -c wq "I-FileName"
(kuyadingeka kumaki wokucaphuna)
Isibonelo:
Izindlela eziyisithupha zazibhalwe ngaphezulu ukuthi zenziwa kanjani amafayela ekuhanjisweni kweLinux. Vele, lokhu akuyona yonke into engenzeka, kodwa yingxenye kuphela, kepha ngosizo lwabo nakanjani luzokwazi ukuqeda umsebenzi.
Ukususa amafayela ngokusebenzisa i- "Isikhumulo"
Ukususa amafayela ku- "Isiginali" akufani neze nokuwadala. Into esemqoka ukwazi yonke imiyalo edingekayo.
Okubalulekile: ukususa amafayela ohlelweni ngokusebenzisa i- “Isiginali”, uwasuse unomphela, okungukuthi, awukwazi ukuwathola ngokuhamba kwesikhathi ku- "Recycle Bin".
Ithimba leRm
Yiqembu rm isebenza kwi-Linux ukuze ususe amafayela. Udinga nje ukucacisa umkhombandlela, faka umyalo bese ufaka igama lefayela elizosuswa:
rm "I-File_Name"
(kuyadingeka kumaki wokucaphuna)
Isibonelo:
Njengoba ukwazi ukubona, ngemuva kokwenza lo myalo, ifayela lalahleka kumphathi wefayela "Idokhumenti entsha".
Uma ufuna ukusula yonke inkomba yamafayela angenasidingo, kuzothatha isikhashana ukufaka amagama awo kaninginingi. Kulula ukusebenzisa umyalo okhethekile ozosusa unaphakade wonke amafayela:
rm *
Isibonelo:
Ngokwenza lo myalo, ungabona ukuthi wonke amafayela adalwe ngaphambilini asulwa kanjani kwimenenja yefayela.
Indlela 2: Imenenja yefayela
Umphathi wefayela wanoma yiluphi uhlelo olusebenzayo (i-OS) muhle ngoba lwenza ukuthi kubhekwe ukubuka konke ukukhohlisa okuqhubekayo, ngokungafani ne- “ukuphela” ngentambo yayo yomyalo. Kodwa-ke, kukhona nokubi. Enye yazo: ayikho indlela yokulandela ngokuningiliziwe izinqubo ezenziwa ngenkathi kwenziwa umsebenzi othile.
Kunoma ikuphi, abasebenzisi abasanda kufaka ukusatshalaliswa kweLinux kwikhompyutha yabo, kufanelekile, ngoba ukufana neWindows, njengoba besho, kusobala.
Qaphela: i-athikili izosebenzisa umphathi wefayela leNautilus njengesibonelo, okuyindlela esezingeni lokusatshalaliswa kweLinux okuningi. Kodwa-ke, imiyalo yabanye abaphathi iyafana, ngamagama wezinto nezinto kuphela nokwakheka kwezinto zokuxhuma okungase kwehluke.
Dala ifayela kwimenenja yefayela
Kufanele wenze okulandelayo ukudala ifayela:
- Vula imenenja yefayela (kulokhu uNautilus) ngokuchofoza kusithonjana sayo kubha yomsebenzi noma ngokuhlola uhlelo.
- Iya kumkhombandlela odingekayo.
- Qhafaza kwesokudla (RMB) esikhaleni esingenalutho.
- Kumenyu yokuqukethwe, hambisa phezulu Dala Idokhumenti bese ukhetha ifomethi oyidingayo (kuleli cala, ifomathi yinye - "Idokhumenti engenalutho").
Ngemuva kwalokho, kuzovela ifayela elingenalutho kumkhombandlela, onganikezwa igama kuphela.
Susa ifayela kwimenenja yefayela
Inqubo yokukhipha kubaphathi be-Linux ilula kakhulu futhi ishesha. Ukuze ususe ifayela, kufanele uqale uchofoze i-RMB kuyo, bese ukhetha into kumenyu yokuqukethwe Susa.
Ungasheshisa futhi le nqubo ngokukhetha ifayela elifunayo futhi ucindezele ukhiye DLULA kwikhibhodi.
Ngemuva kwalokho uzothuthela "eBhasikidi". Ngendlela, ingabuyiselwa. Ukusho kahle kwifayela laphakade, kufanele uchofoze i-RMB kudoti ongawukhetha bese ukhetha "Susa konke Udoti".
Isiphetho
Njengoba ukwazi ukubona, kunezindlela eziningi zokwenza nokususa amafayela ku-Linux. Ungasebenzisa okujwayelekile, okusebenzisa amandla wemenenja yefayela lohlelo, noma ungasebenzisa okufakazelwe nokuthembekile, usebenzisa i- “I-terminal” nemiyalo ehambisanayo. Kunoma yikuphi, uma kunezinye izindlela ongazenzi, kukhona ithuba lokusebenzisa okusele.