Zitsanzo za paka za Linux

Pa machitidwe opangira Linux, pali zowonjezera zowonjezera, zomwe zimagwirizanitsidwa polemba malamulo oyenera "Terminal" ndi zifukwa zosiyanasiyana. Chifukwa cha ichi, wogwiritsa ntchito akhoza kulamulira OS mwiniyo, magawo osiyanasiyana ndi mafayilo omwe alipo. Mmodzi wa magulu otchuka ndi katchi, ndipo imagwira ntchito ndi zomwe zili m'maofesi osiyanasiyana. Chotsatira, tikufuna kusonyeza zitsanzo zingapo za kugwiritsa ntchito lamulo ili pogwiritsa ntchito malemba ophweka.

Kugwiritsira ntchito katsamba ku Linux

Gululi linakambidwa lero likupezeka kugawa zonse zochokera ku kernel ya Linux, ndipo ikuwoneka mofanana kulikonse. Chifukwa chaichi, ntchito yomangayi ndi yopanda ntchito. Zitsanzo za lero zidzachitika pamakompyuta othamanga Ubuntu 18.04, ndipo mudzangodziwa zokhazokha ndi mfundo za zochita zawo.

Zokonzekera

Choyamba, ndikufuna ndikupatseni nthawi kuti ndiyambe kuchita, chifukwa si ogwiritsa ntchito onse omwe amadziwa bwino mfundo ya console. Mfundo ndi yakuti pamene mutsegula fayilo, muyenera kufotokozera njira yeniyeniyo, kapena muthamangitse lamulo, pokhala mwachindunji chokha kudzera "Terminal". Choncho, tikukulangizani kuti muyambe kuyang'ana buku ili:

  1. Kuthamanga fayilo manager ndi kupita ku foda kumene mafayilo oyenera akusungidwa.
  2. Dinani pa chimodzi mwa iwo ndi botani lamanja la mouse ndi kusankha "Zolemba".
  3. Mu tab "Basic" Werengani zambiri zokhudza fayilo ya kholo. Kumbukirani njira iyi, chifukwa imathandiza kwambiri.
  4. Thamangani "Terminal" kudzera mndandanda kapena njira yochezera Ctrl + Alt + T.
  5. Lembani gulucd / nyumba / wosuta / fodakumene wosuta - dzina la munthu, ndi foda - foda kumene zinthu zasungidwa. Lamulo lachikhalidwe ndiloyenera kuyendetsa njira.cd.

Njirayi imagwiritsidwa ntchito popita ku bukhu lapadera kudzera muzondomeko yoyenera. Zochitika zina zidzapangidwanso kupyolera mu foda iyi.

Onani zokhudzana

Imodzi mwa ntchito zazikulu za lamulo ili pamwamba ndi kuyang'ana zomwe zili mu maofesi osiyanasiyana. Zonsezi zikuwonetsedwa mndandanda wosiyana "Terminal"ndi ntchito katchi zikuwoneka ngati izi:

  1. Mu console, lowetsanipaka testfilekumene testfile - dzina la fayilo lofunika, ndiyeno panikizani fungulo Lowani.
  2. Werengani zomwe zili mu chinthucho.
  3. Mukhoza kutsegula maulendo angapo panthawi imodzi, chifukwa ichi muyenera kufotokoza mayina awo, mwachitsanzo,khate testfile testfile1.
  4. Zingwezo zidzaphatikizidwa ndikuwonetsedwa ngati chimodzi.

Umu ndi momwe zimagwirira ntchito. katchi popanda kugwiritsa ntchito zifukwa zomwe zilipo. Ngati mutangolembapo "Terminal"katchi, mudzalandira tsamba lothandizira lothandizira kuti mulembe nambala yofunikira ya mizere ndikusunga podalira Ctrl + D.

Kuwerenga manambala

Tsopano tiyeni tigwire pa timagulu tawo pogwiritsa ntchito zifukwa zosiyanasiyana. Iyenera kuyamba ndi kuwerengera mizere, ndipo ili ndi udindo pa izi-b.

  1. Mukutonthoza, lembanikatsamba-testfilekumene testfile - dzina la chinthu chofunidwa.
  2. Monga mukuonera, mizere yonse yopanda kanthu ilipo.
  3. Mungagwiritse ntchito mfundoyi ndi zotsatira za mafayilo ambiri, monga momwe taonera pamwambapa. Pankhaniyi, chiwerengero chidzapitirira.
  4. Ngati mukufuna kulemba mizere yonse, kuphatikizapo zopanda kanthu, muyenera kugwiritsa ntchito ndemanga-nndipo gulu likutenga mawonekedwe:khate -s testfile.

Chotsani zolemba zosawerengeka

Zikuchitika kuti papepala limodzi pali mndandanda wa mizere yopanda kanthu yomwe yakhala ikuchitika mwanjira ina. Kuwamasula mwadongosolo kudzera m'dongosolo sikuli kosavuta, kotero mutha kulankhulana ndi lamulo apa. katchipogwiritsa ntchito kutsutsana-s. Ndiye chingwe chimatenga mawonekedwekatsamba-testfies(kuwerengetsera mafayilo angapo alipo).

Kuwonjezera $ sign

Chizindikiro $ mu mzere wa machitidwe opangira Linux, zikutanthauza kuti lamulo lolowedwera pansi lidzachitidwa m'malo mwa wogwiritsa ntchito, popanda kupereka ufulu wa mizu. Nthawi zina ndizofunika kuwonjezera chizindikiro chotero kumapeto kwa mizere yonse ya fayilo, ndipo izi muyenera kuzigwiritsa ntchito-E. Zotsatira ndikhate -E testfile(kalata E ziyenera kuti zilembedwe pamwambamwamba).

Gwirizanitsani mafayilo angapo kukhala atsopano

Mphaka zimakupatsani inu mwamsanga ndi mosavuta kuphatikiza zinthu zingapo kukhala chimodzi chatsopano, chomwe chidzapulumutsidwa mu foda yomweyo zomwe zochita zonse zikuchitika. Muyenera kuchita izi:

  1. Mukutonthoza, lembanichiyeso testfile testfile1> testfile2(Chiwerengero cha maudindo kale > zingakhale zopanda malire). Pambuyo polowani dinani Lowani.
  2. Tsegulani zolembazo kudzera mu fayilo manager ndikuyambitsa fayilo yatsopano.
  3. Zikuwoneka kuti lili ndi mizere yonse kuchokera kuzinthu zonse zomwe zafotokozedwa.

Zifukwa zina zochepa zimagwiritsidwa ntchito mobwerezabwereza, koma ziyenera kutchulidwa kuti:

  • -v--wonetsani zomwe zili zofunika mu funso;
  • -h- amasonyeza chithandizo ndi mfundo zoyambirira;
  • -T- onjetsani ma tepi a ma tepi ngati zilembo ^ Ine.

MwadziƔa kale ndondomeko yokonza zolemba, zomwe zingakhale zothandiza pakuphatikiza malemba ophatikizidwa kapena mafayilo okonza. Komabe, ngati mukufuna kukhazikitsa zinthu zatsopano, tikukulangizani kuti muwone nkhani yathu ina pazotsatira zotsatirazi.

Werengani zambiri: Kupanga ndi kuchotsa mafayilo ku Linux

Kuwonjezera apo, pali chiwerengero chachikulu cha malamulo omwe amagwiritsidwa ntchito komanso omwe amagwiritsidwa ntchito kawirikawiri m'zinthu zogwirira ntchito za Linux, phunzirani zambiri za iwo mu nkhani yapansi.

Onaninso: Nthawi zambiri amagwiritsidwa ntchito ku Linux Terminal

Tsopano mukudziwa za timu yoyenera. katchi chirichonse chomwe chingakhale chothandiza pogwira ntchito "Terminal". Palibe chovuta kuyanjana ndi icho, chinthu chachikulu ndikutsatira mawu achidule ndi zolembera za zikhumbo.