Pangani kapena dinani fayilo pa Linux - chikhala chosavuta? Komabe, nthawi zina, njira yanu yoyeserera ndi yowona singathe kugwira ntchito. Pankhaniyi, kungakhale kwanzeru kufunafuna yankho lavutoli, koma ngati palibe nthawi ya izi, mutha kugwiritsa ntchito njira zina kupanga kapena kufafaniza mafayilo pa Linux. Munkhaniyi, otchuka kwambiri aiwo awunikiridwa.
Njira 1: Malangizo
Kugwira ntchito ndi mafayilo mu "terminal" ndizosiyana ndikugwira ntchito yoyang'anira fayilo. Osachepera, palibe chowoneka m'menemo - mudzalowa ndikulandira deta yonse pawindo yomwe imawoneka ngati chingwe chachikhalidwe cha Windows. Komabe, kudzera mu gawo ili la kachitidwe komwe kudzakhala kotheka kutsatira zolakwika zonse zomwe zimachitika pakuchitika kwa ntchito inayake.
Ntchito Zokonzekera
Pogwiritsa ntchito "Terminal" kuti mupange kapena kufafaniza mafayilo, muyenera kutchuliratu mndandanda momwe ntchito zotsatirazi zizichitika. Kupanda kutero, mafayilo onse omwe adapangidwa adzakhala mumtundu wa mizu ("/").
Pali njira ziwiri zofotokozera chikwatu mu "Ma terminal": kugwiritsa ntchito fayilo woyang'anira ndikugwiritsa ntchito lamulo cd. Tiona aliyense payekhapayekha.
Woyang'anira fayilo
Chifukwa chake, tinene kuti mukufuna kupanga,, ndikuchotsa foda mufoda "Zolemba"kukhala panjira:
/ home / Username / Zolemba
Kuti mutsegule dongosololi mu "Terminal", muyenera kutsegula mufayilo yoyamba, kenako, ndikudina RMB, sankhani zomwe zili mumenyu "Yotsegulidwadi kumapeto".
Zotsatira zake, "terminal" idzatsegulidwa, pomwe gulu lazosankhidwa liziwonetsedwa.
Cd lamulo
Ngati simukufuna kugwiritsa ntchito njira yapita kapena mulibe fayilo manejala, mutha kunena mwachindunji chikwatu osasiya "Matayala". Kuti muchite izi, gwiritsani ntchito lamulo cd. Zomwe muyenera kuchita ndikulemba lamulo ili, kenako sonyezani njira yotsogolera. Tidzasanthula momwemo monga chitsanzo cha chikwatu "Zolemba". Lowetsani lamulo:
cd / home / Username / Zolemba
Nachi zitsanzo cha opareshoni yomwe idachitidwa:
Monga mukuwonera, muyenera kulowa njira yosungira (1), ndikatha kukanikiza fungulo Lowani mu "Terminal" iyenera kuwonetsedwa buku losankhidwa (2).
Mukaphunzira momwe mungasankhire chikwatu momwe mungagwiritsire ntchito mafayilo, mutha kupita mwachindunji kukapanga ndikuchotsa mafayilo.
Kupanga mafayilo kudzera "terminal"
Kuti muyambitse, tsegulani "Chiwonetsero" chokha mwa kukanikiza njira yaying'ono CTRL + ALT + T. Tsopano mutha kuyamba kupanga mafayilo. Pali njira zisanu ndi imodzi zochitira izi, zomwe zikuwonetsedwa pansipa.
Kukhudza zothandizira
Ntchito yamagulu kukhudza pa Linux, kusintha nthawi yayitali (nthawi yosintha ndi nthawi yogwiritsira ntchito). Koma ngati chida sichikupeza dzina lafayilo lomwe lakhazikitsidwa, chimangopanga chatsopano.
Chifukwa chake, kuti mupange fayilo muyenera kulembetsa pamzere wolamula:
gwira "FileName"
(chofunikira pamawu omaliza).
Nachi chitsanzo cha lamulo lotere:
Njira yowongolera ntchito
Njirayi imatha kuonedwa ngati yosavuta. Kuti mupange fayilo nayo, muyenera kungotchulanso chikwangwani cholozera ndikulowetsa fayilo yopangidwa:
> "FileName"
(chofunikira pamawu omaliza)
Mwachitsanzo:
Echo ikulamula ndikuwongolera ntchito
Njira iyi siyili yosiyana ndi yapita, pokhapokha ngati mukufunikira muyenera kuyimitsa lamulo la echo musanalembe chikwangwani:
echo> "FileName"
(chofunikira pamawu omaliza)
Mwachitsanzo:
Cp zofunikira
Monga ndi zofunikira kukhudza, cholinga chachikulu cha gululo cp osapanga mafayilo atsopano. Ndikofunikira pakukopera. Komabe, kukhazikitsa zosinthika "achabe", mupanga chikalata chatsopano:
cp / dev / null "FileName"
(Chofunika popanda mawu ogwidwa)
Mwachitsanzo:
Lamulo la mphaka ndi ntchito zowongolera
mphaka - ili ndi lamulo lomwe limagwiritsidwa ntchito kulumikiza ndikuwona mafayilo ndi zomwe zilimo, koma ndikofunikira kuzigwiritsa ntchito ndikuphatikizanso kuwongolera kwa njirayi, chifukwa ipanga fayilo yatsopano nthawi yomweyo:
amphaka / dev / null> "FileName"
(chofunikira pamawu omaliza)
Mwachitsanzo:
Vimlembani zolemba
Ndizothandiza vim Cholinga chachikulu ndikugwira ntchito ndi mafayilo. Komabe, ilibe mawonekedwe - zochita zonse zimachitidwa kudzera mu “terminal”.
Tsoka ilo vim sizinatchulidwe pakugawika konse, mwachitsanzo, ku Ubuntu 16.04.2 LTS sichiri. Koma izi zilibe kanthu, zitha kutsitsidwa mosavuta pazosungidwa ndikuyika pa kompyuta yanu osasiya "terminal".
Chidziwitso: ngati cholembera mawu olemba vim Ngati mwayika kale, ndiye kuti mulumpha sitepe iyi ndikupitilira nthawi yomweyo ndikupanga fayilo kugwiritsa ntchito
Kukhazikitsa, lowetsani lamulo:
okonda kukhazikitsa bwino
Pambuyo kukanikiza Lowani muyenera kuyika mawu achinsinsi. Lowani ndikudikirira kutsitsa ndikuyika kuti mutsirize. Mukuchita izi, mutha kufunsidwa kuti mutsimikizire kuperekedwa kwa lamuliroli - lowetsani kalatayo D ndikudina Lowani.
Kutsiliza kwa kukhazikitsa pulogalamu kungathe kuweruzidwa ndi malowedwe omwe amawonekera ndi dzina la kompyuta.
Pambuyo kukhazikitsa zolembalemba vim Mutha kuyamba kupanga mafayilo machitidwe. Kuti muchite izi, gwiritsani ntchito lamulo:
vim -c wq "FileName"
(chofunikira pamawu omaliza)
Mwachitsanzo:
Njira zisanu ndi chimodzi zidatchulidwa pamwambapa momwe mungapangire mafayilo pamagawidwe a Linux. Zachidziwikire, izi sizokwanira zonse, koma gawo lokha, koma ndi thandizo lawo ndizotheka kumaliza ntchitoyo.
Kutha mafayilo kudzera mu "terminal"
Kuyika mafayilo mu "terminal" sikusiyana ndi kupanga. Chachikulu ndikudziwa malamulo onse ofunikira.
Chofunikira: kufufutira mafayilo kuchokera mu "terminal", mumawachotsa kwathunthu, ndiye kuti simungapeze pambuyo pake pa "Recycle Bin".
Gulu la Rm
Ndi gululi rm imagwira pa Linux kuchotsa mafayilo. Mukungoyenera kufotokoza chikwatu, ikani lamulo ndikulowetsa dzina la fayilo kuti lichotsedwe:
rm "File_Name"
(chofunikira pamawu omaliza)
Mwachitsanzo:
Monga mukuwonera, atapereka lamulo ili, fayilo idatayika woyang'anira fayilo "Chikalata chatsopano".
Ngati mukufuna kuchotsera mafayilo onse osafunikira, zingatenge kanthawi kuti aike maina awo mobwerezabwereza. Ndiosavuta kugwiritsa ntchito lamulo lapadera lomwe limachotsa mafayilo onse nthawi yomweyo:
rm *
Mwachitsanzo:
Mwa kutsatira lamuloli, mutha kuwona momwe mafayilo onse omwe adapangidwa kale adachotsedwera oyang'anira mafayilo.
Njira 2: Woyang'anira Faili
Woyang'anira fayilo wa opaleshoni iliyonse (OS) ndi yabwino chifukwa imatheketsa kuwunika pamankhwala onse omwe akupitilira, mosiyana ndi "Ma terminal" omwe ali ndi mzere wolamula. Komabe, palinso zovuta. Chimodzi mwazomwezo: palibe njira zotsatirira mwatsatanetsatane njira zomwe zimachitika pakagwiridwe kenakake.
Mulimonsemo, ogwiritsa ntchito omwe akhazikitsa posachedwa kwa Linux pamakompyuta awo, ndizabwino, popeza kufanana kwa Windows, monga akunenera.
Chidziwitso: nkhaniyo idzagwiritsa ntchito woyang'anira fayilo ya Nautilus monga zitsanzo, yomwe ndi yokhazikika pakugawidwa kwa ambiri a Linux. Komabe, malangizo a oyang'anira ena ndi ofanana, mayina a zinthuzo ndi kapangidwe kazinthu zomwe amazipangira ndi zomwe zingasiyane.
Pangani fayilo mu fayilo woyang'anira
Muyenera kuchita zotsatirazi kuti mupange fayilo:
- Tsegulani woyang'anira fayilo (pamenepa Nautilus) podina chizindikiro chake pazogwira ntchito kapena pofufuza dongosolo.
- Pitani ku chikwatu chofunikira.
- Dinani kumanja (RMB) pamalo opanda kanthu.
- Pazosankha zofanizira, onjezerani Pangani Chikalata ndikusankha mtundu womwe mukufuna (pankhaniyi, mawonekedwe ake ndi amodzi - "Palibe chilichonse").
Pambuyo pake, fayilo yopanda kanthu idzawonekera mu chikwatu, chomwe chitha kupatsidwa dzina.
Fufutani fayiloyo mu woyang'anira fayilo
Njira yosayikika m'manejala a Linux ndiyosavuta komanso mwachangu. Kuti muthe kufufuta fayilo, muyenera dinani RMB pomwepo, ndikusankha chinthucho menyu Chotsani.
Mutha kuthamangitsanso njirayi posankha fayilo yomwe mukufuna ndikudina kiyi PULANI pa kiyibodi.
Pambuyo pake, adzasamukira ku "Basket". Mwa njira, ikhoza kubwezeretsedwa. Kunena zabwino pafayilo mpaka kalekale, muyenera dinani RMB pamatayala angayike ndikusankha "Zotupa zopanda kanthu".
Pomaliza
Monga mukuwonera, pali njira zambiri zopangira ndi kufufutira mafayilo mu Linux. Mutha kugwiritsa ntchito zomwe mukudziwa, zomwe zimapereka mwayi pazoyang'anira fayilo ya pulogalamuyi, kapena mutha kugwiritsa ntchito zotsimikiziridwa komanso zodalirika, pogwiritsa ntchito "Pulogalamu Yotsiriza" ndi malamulo omwe akutsatira. Mulimonsemo, ngati njira iliyonse yomwe simukugwiritsa, pali mwayi wogwiritsa ntchito yotsalira.