Misalai na cat cat

Pin
Send
Share
Send

Tsarin aiki na Linux suna da abubuwan amfani da yawa na ciki, hulɗa tare da wanda ke gudana ta shigar da umarnin da suka dace a ciki "Terminal" tare da muhawara daban-daban. Godiya ga wannan, mai amfani zai iya yin duk abin da zai yiwu don sarrafa OS kanta, sigogi daban-daban da fayiloli masu samuwa. Daya daga cikin shahararrun kungiyoyin shi ne cat, kuma yana hidimar aiki tare da abubuwanda ke cikin fayiloli daban-daban. Bugu da ari, zamu so nuna wasu misalai na amfani da wannan umarnin ta amfani da takardu masu sauki.

Yin amfani da umarnin cat a Linux

Underungiyar da aka bincika a yau tana samuwa ga duk rarrabuwa bisa lafazin Linux, kuma ko'ina yana kama da hanyar. Saboda wannan, taron da ake amfani ba shi da mahimmanci. Za a aiwatar da misalai na yau a kan kwamfutar da ke gudana Ubuntu 18.04, kuma kawai dole ku fahimci masaniyar da kuma tushen abin da suke aikatawa.

Ayyukan Shirya

Da farko, Ina so in bada lokaci don ayyukan farko, tunda ba duk masu amfani da masaniya ne da ka'idodin wasannoni ba. Gaskiyar ita ce lokacin da ka buɗe fayil, dole ne ko dai ka faɗi ainihin hanyar zuwa gare ta, ko fara umarni, kasancewa kai tsaye a cikin kundin kanta ta hanyar "Terminal". Sabili da haka, muna bada shawara cewa ka fara nazarin wannan jagorar:

  1. Gudanar da mai sarrafa fayil ɗin kuma tafi babban fayil inda adana mahimman fayiloli.
  2. Danna-dama akan ɗayansu kuma zaɓi "Bayanai".
  3. A cikin shafin "Asali" karanta bayanin babban fayil na iyaye. Ka tuna da wannan tafarki, saboda zai biyo baya mai amfani.
  4. Gudu "Terminal" ta hanyar menu ko hade hade Ctrl + Alt + T.
  5. Yi rijista da odacd / gida / mai amfani / babban fayilina mai amfani - sunan mai amfani, da babban fayil - babban fayil inda aka ajiye abubuwan. Daidaitaccen umarni yana da alhakin motsawa ta hanyar.cd.

Wannan hanyar tana canzawa zuwa takamaiman ɗakuna ta hanyar daidaitaccen wasan bidiyo. Hakanan za'a aiwatar da wasu ayyuka ta wannan babban fayil.

Duba Abun ciki

Daya daga cikin manyan ayyukan wannan umarni shine duba abinda ke cikin fayil daban-daban. Dukkanin bayanan an nuna su cikin layi daban a cikin "Terminal", da aikace-aikace cat ya yi kama da wannan:

  1. A cikin na'ura wasan bidiyo, shigar dacat catina jarrabawar - sunan fayil ɗin da ake so, sannan danna maɓallin Shigar.
  2. Duba abinda ke ciki.
  3. Kuna iya buɗe fayiloli da yawa lokaci guda, don wannan kuna buƙatar tantance duk sunayensu, alal misali,santa cat.
  4. Za a haɗa layin kuma a nuna su azaman raka'a ɗaya.

Wannan shine yadda yake aiki cat ba tare da amfani da hujjojin da suke akwai ba. Idan ka rubuta kawai "Terminal"cat, sannan zaku samu nau'in littafin rubutu na kayan wasan bidiyo tare da karfin yin rikodin adadin layin da ake so da kuma adana su ta hanyar dannawa Ctrl + D.

Lambar layi

Yanzu bari mu taɓa ƙungiyar yayin yin amfani da muhawara daban-daban. Ya kamata ku fara da lambar layi, kuma wannan alhakin ne-b.

  1. A cikin wasan bidiyo rubutacat catina jarrabawar - sunan abin da ake so.
  2. Kamar yadda kake gani, dukkanin layin da ba komai a wurin an ƙidaya su.
  3. Zaka iya amfani da wannan hujja tare da fitowar fayiloli da yawa, kamar yadda aka nuna a sama. A wannan yanayin, lambobi zai ci gaba.
  4. Idan kana son lambar lambobi duka, gami da layin marayu, dole kayi amfani da hujja-n, sannan ƙungiyar ta ɗauki nauyin:cat cat.

Share kwatancen layin da babu kowa

Hakan yana faruwa cewa a cikin ɗaya daga cikin takardu akwai layuka mara yawa waɗanda suka taso ta kowace hanya. Share da kanka ta hanyar editan ba koyaushe ya dace ba, don haka anan zaka iya samun damar bin umarnin catta hanyar amfani da hujja-s. Sannan layin ya dauki fomcat cat(an jera jerin files da yawa).

Sanya alamar $

Alamar $ a kan layin umarni na tsarin aiki na Linux yana nufin cewa umarnin da aka shigar a ƙasa za a kashe shi a madadin mai amfani na yau da kullun, ba tare da ba da haƙƙin tushe ba. Wasu lokuta ya zama dole don ƙara irin wannan halin zuwa ƙarshen duk layin fayil, kuma saboda wannan yakamata kayi amfani da hujja-E. Sakamakon shinecat -E testfile(harafi E dole ne ya kasance a cikin manya).

Haɗa fayiloli da yawa a cikin sabo

Kare yana ba ku damar sauri da sauƙi sauƙaƙe abubuwa da yawa a cikin sababbi ɗaya, wanda za'a iya ajiye shi a babban fayil ɗin daga inda ake aiwatar da duk ayyukan. Kawai dai dole ne a yi wadannan:

  1. A cikin wasan bidiyo rubutazakara(Yawan lakabi kafin > na iya zama mara iyaka). Bayan shigar, danna kan Shigar.
  2. Bude directory ɗin ta mai sarrafa fayil kuma gudanar da sabon fayil.
  3. Ana iya ganin cewa ya ƙunshi dukkanin layi daga duk takaddun takaddun da aka ƙayyade.

Bayan 'yan ƙarin hujjoji marasa amfani ana amfani da su, amma yakamata a ambata:

  • -v- zai nuna sigar mai amfani a cikin tambaya;
  • -h- nunin taimako da bayanan asali;
  • -T- displayara alamar nuna azaman haruffa . Ni.

An sanar da ku sosai game da tsarin gyara takaddar, wanda zai iya zama da amfani ga hada rubutu na fili ko fayilolin sanyi. Koyaya, idan kuna da sha'awar ƙirƙirar sabbin abubuwa, muna bada shawara cewa ku koma ga sauran bayananmu a mahaɗin da ke gaba.

Kara karantawa: Createirƙiri da share fayiloli a Linux

Bugu da kari, a cikin tsarin aiki na Linux akwai sauran dimbin sanannun sharuda da aka saba amfani da su; ƙarin koyo game da su a cikin wani labarin daban.

Duba kuma: Dokokin da Aka Amfani dasu akai akai a Linux Terminal

Yanzu kun san game da daidaitaccen umurnin cat duk wani abu da zai iya zuwa hannu yayin aiki a ciki "Terminal". Babu wani abu mai rikitarwa a cikin mu'amala da shi; babban abinda ya shafi yin shine dai dai yayin yin rajista da kuma ayyukan rijistar.

Pin
Send
Share
Send