Oyang'anira mafayilo odziwika kwambiri amachitidwe opangira makompyuta a Linux ali ndi chida chofufuzira choyenera. Komabe, magawo omwe samakhalamo nthawi zonse amakhala okwanira kuti wogwiritsa ntchito awone zofunikira. Poterepa, zofunikira zikuyenda "Pokwelera". Zimakupatsani mwayi wofufuza mosavuta zofunikira mu chikwatu kapena mu pulogalamu yonse poloza lamulo, kukangana ndi kusankha.
Kugwiritsa ntchito lamulo pa Linux
Gulu pezani adapangidwa kuti azisaka zinthu zosiyanasiyana, kuphatikiza mafayilo amtundu uliwonse ndi zowongolera zakuya kwakulu. Wogwiritsa amangofunika kuloza lamulo lokha, tchulani mtengo womwe mukufuna ndikugawa mfundo kuti akhazikitse zigawo zosefera. Kugwiritsa ntchito njirayi payokha sikuti nthawi zambiri kumatenga nthawi yambiri, komanso zimatengera kuchuluka kwa zambiri zomwe zimasungidwa. Tsopano tiyeni tikambirane zitsanzo zogwiritsa ntchito pezani mwatsatanetsatane.
Kupita ku chikwatu kupyola chopendekera
Poyamba, ndikufuna kubwerera pang'ono ku timu yayikulu ndikusintha pamawu pazowonjezera zomwe zingathandize mtsogolomo pakuwongolera kuchokera ku kontrakitala. Chowonadi ndi chakuti zogwiritsidwa ntchito pakugawidwa kwa Linux sizikuthwa chifukwa chofufuza zinthu zonse pakompyuta. Njira zonse ziyenera kuyambitsidwa pokhapokha ndi malo athunthu pazinthuzo kapena pitani kumalo komwe mwalamulira cd. Izi zitha kuchitika mosavuta:
- Tsegulani woyang'anira fayilo woyikirayo ndikupita ku chikwatu chomwe mukufuna, komwe mukufuna kugwiritsa ntchito lamuloli mtsogolo pezani.
- Pa chilichonse, dinani RMB ndikupeza "Katundu".
- Mudzaona chikwatu cha makolo ndi njira yonse. Kumbukirani kuti kupanga kusintha kuchokera "Pokwelera".
- Tsopano yambani kutonthoza, mwachitsanzo, kudzera pamenyu.
- Lembani lamulo pamenepo
cd / nyumba / wosuta / chikwatu
pati wosuta ndi dzina la chikwatu cha wosuta, ndipo foda - dzina la chikwatu chomwe chikufunika.
Ngati musanagwiritse ntchito pezani, tsatirani malangizo omwe ali pamwambapa, simungathe kudziwa njira yonse yopita ku fayilo, bola mutakhala komwe mwasankhidwa. Njira yotereyi imathandizira kwambiri pakuwongolera kwa malamulo mtsogolo.
Sakani mafayilo omwe akusunga zikwatu pano
Mukamachitapezani
kuchokera kutonthozo yomwe yangoyamba kumene, mupeza zotsatira zakusaka mu mndandanda wakunyumba wa wogwiritsa ntchito. Kwina, mwachitsanzo, mukadzayambitsa ntchito pofufuza malo, pazotsatira muwona onse osunga fayilo ndi mafayilo amalo ano omwe alipo.
Kuseweretsa pezani popanda mikangano ndi zosankha zimagwiritsidwa ntchito mukafunikira kuwona zinthu zonse nthawi imodzi. Ngati dzina lawo silikugwirizana bwino ndi mizereyo, muyenera kusintha malamulowo kuti atenge mawonekedwepezani. -print
.
Sakani mafayilo omwe akusankhidwa mu chikwatu chomwe chatchulidwa
Lamulo loti tiwonetse mafayilo kudzera njira yodutsidwayo silosiyana ndi omwe tidatchulawa. Muyenera kulembansopezani
, kenako onjezerani./folder
, ngati mukufuna kudziwa zambiri pazenerali komwe kuli, kapena mukufuna kufotokoza njira yonse, mwa kulowa, mwachitsanzo,pezani ./home/user/downloads/folder
pati foda - chikwatu chomaliza. Chigawo chilichonse chiziwonetsedwa mzere wokhazokha molingana ndi kuya kwake.
Sakani ndi dzina
Nthawi zina pamakhala kufunika kowonetsa zinthu zomwe zikukwaniritsa ndi dzina. Kenako wogwiritsa ntchitoyo ayenera kusankha njira ina yokhayo kuti amvetsetse zomwe apempha. Chingwe cholowera chimakhala motere:pezani. - dzina "mawu"
pati mawu - Mawu osakira, omwe ayenera kukhazikitsidwa pawiri komanso osasamala ndi mtundu uliwonse.
Ngati simukudziwa bwinobwino chilembo chilichonse kapena ngati mukufuna kuwonetsa mayina onse oyenera popanda kuganizira izi, lowetsanipezani. - "dzina"
.
Kutula zotsatira ndi mawu osakira kutsutsana -zina imodzi imawonjezeredwa. Gulu limayang'anapezani. -osati "dzina"
pati mawu - mawu oti achotsedwe.
Komabe nthawi zina pamakhala kufunika kupeza zinthu ndi kiyi imodzi, kupatula inayo. Kenako, njira zingapo zosaka zimaperekedwa nthawi imodzi ndipo mzere wolowera umalandiridwa motere:pezani. - "" "" - osati dzina "* .txt"
. Dziwani kuti mfundo yachiwiri pamawu ogwidwa mawu ikuwonetsa "* .txt ", zomwe zikutanthauza kuti pezani Imagwira ntchito osati ndi mayina okha, komanso mafayilo amtundu omwe adayikidwa mu mawonekedwe awa.
Palinso wothandizira KAPENA. Zimakuthandizani kuti mupeze mfundo imodzi kapena zingapo zoyenera nthawi imodzi. Iliyonse ikuwonetsedwa mosiyana, ndi kuwonjezera kwa zotsutsana. Zotsatira zake ndi monga izi:peza-dzina "mawu" -o -nthawi ya "mawu1"
.
Fotokozani Kuzama Kwakusaka
Gulu pezani zithandiza wogwiritsa ntchito ngakhale pakufunika kuti apeze zolemba zamkati mwakuzindikira kokhako, mwachitsanzo, kusanthula sikofunikira mkati mwachinsinsi chachitatu. Kuti muyike zoletsa izi, lowetsanipezani. -maxdepth N - dzina "mawu"
pati N - kuya kwambiri, ndipo - dzina "mawu" - mikangano iliyonse yotsatira.
Sakani mumakanema angapo
M'mayendedwe ambiri mumakhala zikwatu zingapo zokhala ndi zinthu zosiyanasiyana nthawi imodzi. Ngati alipo ambiri, ndipo kusaka kumayenera kuchitika mwa ena okha, ndiye muyenera kuziwonetsa izi mukamalamulapezani ./folder ./folder1 -type f -name "mawu"
pati ./folder ./folder1 - mndandanda wazitsogozo zoyenera, ndipo - dzina "mawu" - mikangano ina.
Onetsani zinthu zobisika
Popanda kutchulapo zotsutsana, zinthu zobisika zomwe zili mumakanema osawonedwa sizingawonetsedwe. Chifukwa chake, wogwiritsa ntchitoyo amasankha njira ina kuti pamapeto pake lamulo likhale lotere:pezani ~ -type f -name ". *"
. Mupeza mndandanda wathunthu wamafayilo onse, koma ena mwa iwo sangathe kufikako, mawu asanachitike pezani lembani mzerewokonda
kukhazikitsa ufulu wapamwamba.
Sakani zikwatu za kunyumba zamagulu ndi ogwiritsa ntchito
Wosuta aliyense atha kupanga mitundu yopanda malire yazowongolera ndi zinthu m'malo osiyanasiyana. Njira yothamanga kwambiri ndikupeza zidziwitso za m'modzi wa ogwiritsa ntchito lamulo pezani ndi imodzi mwamatsutso ake. Mu "Pokwelera" lembanipezani. -sern username
pati dzina lolowera - lolowera. Mukamalowa, scanneryo imayamba yokha.
Pafupifupi dongosolo limodzimodzi limagwira ntchito ndi magulu ogwiritsa ntchito. Kuwunika kwa mafayilo omwe amalumikizana ndi amodzi mwa magulu kumayambapezani / var / www -group groupname
. Musaiwale kuti pamakhala zinthu zambiri ndipo nthawi zina zimatenga nthawi yambiri kuti onse atuluke.
Sefa ndi tsiku losintha
Makina ogwiritsira ntchito amapulumutsa okha zidziwitso zakusintha kwa fayilo iliyonse yomwe ilipo. Gulu pezani imakupatsani mwayi wawapeza onse ndi gawo lomwe linanenedwa. Zimangofunika kuperekasudo peza / -kati N
pati N - kuchuluka kwa masiku apitawo pomwe chinthucho chidasinthidwa komaliza. Choyambirira wokonda apa ndikofunikira kuti tipeze zidziwitso za mafayilo omwe amangoyang'ana kwa superuser.
Ngati mukufuna kuwona zinthu zomwe zidatsegula masiku angapo apitalo, ndiye kuti mzerewo umasintha mawonekedwe ake pang'onosudo kupeza / -atime N
.
Kutentha Kwa Fayilo
Chilichonse chimakhala ndi kukula kwake, lamulo lofufuza mafayilo liyenera kukhala ndi ntchito yomwe imakupatsani mwayi kuzisefa izi. pezani amadziwa momwe angachitire izi, wogwiritsa amangofunika kukhazikitsa kukula womwewo pakukangana. Ingolowapezani / -sani N
pati N - kuchuluka kwa ma byte, megabytes (M) kapena gigabytes (G).
Mutha kutchulanso kuchuluka kwa zinthu zomwe mukufuna. Kenako zokhazikitsidwa zimayenerana ndi lamulo ndipo mumalandira, mwachitsanzo, mzere wotere:pezani / -size + 500M -size -1000M
. Kusanthula koteroko kumawonetsa mafayilo opitilira 500 megabytes, koma osakwana 1000.
Sakani mafayilo opanda kanthu ndi mayendedwe
Ena mwa mafayilo kapena zikwatu palibe. Amangotenga malo owonjezera a disk ndipo nthawi zina amasokoneza kulumikizana kwachilendo ndi kompyuta. Ayenera kupezeka kuti aganizire zochita zina, ndipo izi zithandizapezani / foda -type f -empty
pati / foda - malo omwe sikaniyo imachitikira.
Payokha, ndikufuna kutchulanso mwachidule mfundo zina zothandiza zomwe nthawi ndi nthawi zimakhala zothandiza kwa wogwiritsa ntchito:
-zambiri
- chiletso pokhapokha pafayilo;-type f
- Onetsani mafayilo okha;-type d
- onetsani zolemba zokha;-opanda
,-abwino
- fufuzani mafayilo omwe si a gulu lililonse kapena si a ogwiritsa ntchito;-kusintha
- pezani mtundu wa chida chogwiritsidwa ntchito.
Pa kuzolowera izi ndi gulu pezani kwatha. Ngati mukufuna kuphunzira mwatsatanetsatane zida zina zamakono zothandizira pa Linux kernel, tikukulimbikitsani kuti mutembenukire pazinthu zathu zotsatirazi pazotsatira zotsatirazi.
Zambiri: Malamulo Ogwiritsidwa Ntchito Ponseponse mu Linux terminal
Pambuyo pofufuza zomwe mukufuna, mutha kuchita nawo zinthu zina, mwachitsanzo, kusintha, kuchotsa kapena kuwerenga zomwe zili. Zida zina zomangidwa zithandiza. "Pokwelera". Mupeza zitsanzo zamomwe akugwiritsira ntchito pansipa.
Werengani komanso: Zitsanzo za Linux grep / mphaka / ls