Inde, kugawidwa kwa machitidwe opangira pa kernel ya Linux nthawi zambiri kumakhala ndi mawonekedwe ojambulidwa ndi maofesi omwe amakulolani kuti mugwire ntchito limodzi ndi zinthu zina. Komabe, nthawi zina zimakhala zofunikira kuti mupeze zomwe zili mu foda inayake kupyolera mu makonzedwe omangidwa. Pachifukwa ichi, lamulo loyamba limabwera populumutsa. ls.
Gwiritsani ntchito ls ku Linux
Gulu ls, monga ena ambiri mu OS pogwiritsa ntchito kernel ya Linux, amagwira ntchito molondola ndi zomangamanga zonse ndipo ali ndi syntax yake. Ngati wogwiritsa ntchitoyo atha kuona kuti zolinga zake ndi zolondola komanso momwe angagwiritsire ntchito ndondomeko yowonjezereka, adzatha kudziwa mwamsanga momwe akufunira zokhudzana ndi mafayilo.
Kupeza fayilo inayake
Choyamba, onetsetsani kuti mumvetsetsa njira yothetsera kusintha kwa malo omwe mukufuna "Terminal". Mukasanthula mawindo ambiri m'ndandanda womwewo, ndi kosavuta kuti muzichita bwino kuchokera pamalo oyenera kuti mupewe kufunika kolowera njira yonseyo. Malowa atsimikiziridwa ndipo kusintha kwachitika motere:
- Tsegulani oyang'anira mafayilo ndikuyendetsa kumalo omwe mukufuna.
- Dinani pa chinthu chilichonse mu RMB ndi kusankha "Zolemba".
- Mu tab "Basic" zindikirani chinthucho "Foda ya makolo". Izi ndi zomwe muyenera kukumbukira kuti musinthe.
- Zimangokhala kukhazikitsa console pogwiritsa ntchito njira yabwino, mwachitsanzo, pakukakamiza makiyi otentha Ctrl + Alt + T kapena pangoyang'ana pazithunzi zofananazo mu menyu.
- Lowani pano
cd / nyumba / wosuta / foda
kupita kumalo okongola. Mtumiki Pankhaniyi, dzina loti, ndi foda - dzina la foda yomaliza.
Tsopano mungathe kupitirizabe kugwiritsa ntchito lamulo lomwe likuganiziridwa lero. ls kugwiritsa ntchito zifukwa zosiyanasiyana ndi zosankha. Timapereka kuti tidziwe bwino zitsanzo zazikulu mwatsatanetsatane.
Onani zomwe zili mu foda yamakono
Kulemba polimbikitsals
popanda zina zowonjezera, mupeza zambiri zokhudza malo omwe alipo. Ngati, mutatha kulumikiza console, palibe kusintha komwe kunapangidwacd
Mndandanda wa ma fayilo ndi mafoda omwe akupezeka kunyumba kwanu.
Mafoda amalembedwa mu buluu, ndipo zinthu zina ndi zoyera. Chilichonse chidzawonetsedwa mumzere umodzi kapena kuposa, malingana ndi chiwerengero cha zinthu. Mukhoza kupenda zotsatirazo ndikupitiriza.
Onetsani maulondowedwe mu malo omwe mwatchulidwa
Kumayambiriro kwa nkhaniyi adauzidwa momwe angayendetse njira yoyenera mu console pogwiritsa ntchito lamulo limodzi. Pa malo omwe mulipo, lembanil folda
kumene foda Dzina la foda kuti muwone zomwe zili mkatimo. Zogwiritsiridwa ntchito moyenera sizisonyeza chabe zilembo za Chilatini, komanso Cyrillic, ndikuganizira zolembera, zomwe nthawi zina zimakhala zofunikira kwambiri.
Chonde dziwani kuti ngati simunasunthire kumalo a foda, muyenera kufotokozera njirayo ku lamulo kuti mulole chidachi kuti chizindikire chinthucho. Ndiye mzere wolembera umatenga mawonekedwe, mwachitsanzo,Ls / nyumba / wosuta / foda / chithunzi
. Lamuloli likugwiritsidwa ntchito pazowonjezera ndi zitsanzo zotsatila pogwiritsa ntchito zifukwa ndi ntchito.
Kufotokozera wolemba foda
Lamuzani syntax ls kumangika mofanana monga muzinthu zina zowonjezera, kotero ngakhale wosuta waluso sadzapeza chirichonse chatsopano kapena chosadziwika mmenemo. Tiyeni tione chitsanzo choyamba pamene tiwona wolemba wa foda ndi tsiku la kusintha. Kuti muchite izi, lowanils -l -ofut folder
kumene foda - dzina lachinsinsi kapena njira yowonjezera. Pambuyo poyambitsa, mudzawona zomwe mukufuna.
Onetsani mafayilo obisika
Linux ili ndi zinthu zambiri zobisika, makamaka zokhudzana ndi mafayilo a mawonekedwe. Mukhoza kuziwonetsera pamodzi ndi zonse zomwe mwalembazo pogwiritsa ntchito njira ina. Ndiye gulu likuwoneka ngati:Ls -a + foda kapena njira
.
Zopeza zinthu zidzawonetsedwa ndi maulendo ku malo osungirako, ngati mulibe chidwi ndi chidziwitso ichi, ingosintha nkhani yotsutsana, kulembera izi-A
.
Sungani zinthu
Mosiyana, Ndikufuna kuwona zosankha, chifukwa nthawi zambiri zimathandiza kwambiri ndipo zimathandiza wopeza kupeza deta yoyenera mkati mwa masekondi. Pali njira zingapo zomwe zimapangidwira zojambulidwa zosiyana. Choyamba, tcheru khutuls -Sh folder
. Mtsutso uwu umatchula mafayilowo pofuna kuchepetsa kukula kwawo.
Ngati muli ndi chidwi pa mapu mu dongosolo losiyana, muyenera kuwonjezera kalata imodzi ku ndewu kuti mupezeFoda y_sShr
.
Zotsatira zikuwonetsedwa muzithunzithunzi za alfabhethi kudutsals -lX + dzina lachinsinsi kapena njira
.
Sankhani nthawi yomaliza yokhazikika -Ls -lt + lolemba dzina kapena njira
.
Inde, pali njira zingapo zomwe sizodziwika, koma zingakhale zothandiza kwa owerenga ena. Izi zikuphatikizapo:
-B
- musati muwonetse zosungira zilipo;-C
- Kuchokera kumatulutsa mtundu wa zipilala, osati mizere;-d
- onetsani mafoda okha mkati mwa makina opanda zolemba;-F
- kusonyeza mtundu kapena mtundu wa fayilo iliyonse;-m
- kulekana kwa zinthu zonse zolekanitsidwa ndi makasitomala;-Q
- tengani dzina la zinthu muzolemba;-1
--wonetsani fayilo imodzi pamzere.
Tsopano kuti mwapeza maofesi oyenerera maofesi, mungafunikire kuwasintha kapena kufufuza magawo ofunika pa zinthu zosintha. Pankhaniyi, lamulo lina lophatikizidwa grep. Mutha kudziŵa mfundo ya chigamulo chake m'nkhani yathu yotsatirayi.
Werengani zambiri: Zitsanzo za Linux grep
Kuwonjezera apo, pali mndandanda waukulu wa zothandiza zowonjezera console ndi zipangizo mu Linux, zomwe zimakhala zothandiza ngakhale kwa osadziwa zambiri. Werengani zambiri zokhudza nkhaniyi pansipa.
Onaninso: Nthawi zambiri amagwiritsidwa ntchito ku Linux Terminal
Izi zimatsiriza nkhani yathu. Monga mukuonera, palibe chovuta mu timu yokha ls ndipo mawu akewo sizomwe, chinthu chokha chimene chifunikira kwa inu - kutsatira malamulo olowera, kupeŵa zolakwika m'maina a makalata ndi kuganizira zolembera za zosankha.