Umyalo womlando ngezinsuku zokwenza komyalo ngamunye

Umyalo we-history usikhombisa ku-terminal imiyalo esiyenze esikhathini esedlule, into enjengale:

umlando-umyalo-wokukhipha
Kuze kube manje kuhle kakhulu, kepha kuthiwani uma sifuna ukwazi kahle ukuthi senza nini umyalo ngamunye esikhathini esedlule? O_O

Ngisho, bheka into enjengale:

umlando-umyalo-wokukhipha-usuku

Ukuze senze lokhu, kufanele sibeke lo myalo ku-terminal:

export HISTTIMEFORMAT='%F %T : '

Bese begijima futhi umlando bese ubona umphumela 🙂

Manje lokhu esikwenzile ngeke kube unomphela, okusho ukuthi, lapho sivala iseshini (noma sicisha ikhompyutha) le ndlela epholile yokubona ukukhishwa komyalo we-history izokhohlakala uhlelo, ukuze ikwenze unomphela kumele sebenzisa okulandelayo:

echo "export HISTTIMEFORMAT='%F %T : '" >> $HOME/.bashrc

Okusho ukuthi, beka lowo myalo ekugcineni kwefayela lethu .bashrc lokho kufihlwe ekhaya lethu.

Ngendlela, kulabo abazibuza ukuthi i-% F ne-% T isho ukuthini…% F isho usuku olukumodi yenyanga yenyanga yonyaka, kuyilapho i-% T isikhathi esikwimodi yemizuzwana yehora (amahora angama-24 ).

Hhayi-ke angicabangi ukuthi kukhona okunye ongakusho, okuthunyelwe okufishane kepha ngicabanga ukuthi ichopho liyathandeka ^ - ^

Phendula ngokucaphuna


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-23, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   izinga kusho

    Nice 🙂

  2.   eliotime3000 kusho

    Kungcono, akunakwenzeka.

  3.   isihlibhi kusho

    Uhlobo lwekhophi lokunamathisela esigungwini.

    i-echo "ukuthekelisa HISTTIMEFORMAT = '% F% T:'" >> ~ / .bashrc; umthombo ~ / .bashrc

    I-Tadaaan ...

    1.    isihlibhi kusho

      Uff ungazami lokho, izingcaphuno ze-wordpress azisebenzi ku-terminal.

      1.    KZKG ^ Gaara kusho

        Faka ikhodi phakathi (kwekhodi) …… (/ ikhodi)… KODWA, ukuguqula ama-parentheses abe ngaphansi kwezimpawu ezinkulu kunezingaphezulu

  4.   I-Ermimetal kusho

    Siyabonga ngemininingwane ye-KZKG ^ Gaara kepha kunemininingwane:
    Usuku luhlala lusuku lwanamuhla, hhayi usuku lapho umyalo wawuqhutshwa khona.
    Noma okungenani lokho kuphume ekuhlolweni kwami. Jabulela

    1.    KZKG ^ Gaara kusho

      Kubukeka sengathi kusebenza kahle kuphela ngemiyalo eyenziwe ngemuva kokuthunyelwa kwamanye amazwe, okungukuthi, kusasa uzobona ukuthi imiyalo oyikhipha kusasa izolunga, nokunye njll njengoba izinsuku zihamba.

      Uyaqonda? 🙂

      Ngiyabonga ngamazwana 😀

      1.    I-Ermimetal kusho

        Ahh uyahamba. Ngiyaqonda
        Siyabonga ngempendulo bese uyigcina ku-.bashrc.

        Sanibonani

        1.    KZKG ^ Gaara kusho

          Akunjalo, ngiyabonga ngokuphawula kwakho 🙂

  5.   Julian kusho

    Kuhle!, Elula futhi ephumelelayo. Ngiyabonga.

    1.    KZKG ^ Gaara kusho

      Siyabonga 🙂

  6.   Mthokozisi (@mthokozisi) kusho

    Ithiphu enhle kakhulu!, Izinsuku eziningi zalezi 🙂

  7.   Blazek kusho

    Umnikelo omuhle kakhulu, usebenza kahle, ngiyabonga.

  8.   i-taregon kusho

    Imininingwane ethakazelisayo !! Ekuqaleni bengicabanga ukuthi ayisebenzi, ngoba imiyalo yangaphambilini ibivele ngosuku olufanayo; kodwa lezo ayezethula, lezo uma ekhombisa isikhathi esifanele.

  9.   khepeshef kusho

    Sawubona

    Ithiphu enhle kakhulu, kuphela ukuthi ngibe nenkinga yokunikeza imiyalo njengoba ukhombisa ukuthekelisa HISTTIMEFORMAT = '% F% T:' bese umlando ... uma ungithumela usuku nesikhathi sayo yonke imiyalo ,, into exakayo ukuthi Ithumela kuyo yonke imiyalo engithumela usuku nesikhathi ikhompyutha inayo ngaleso sikhathi, okungukuthi, ayingikhombisi usuku nesikhathi sangempela semiyalo ,,,, ngithola imiyalo engiyikhiphe izolo kodwa ingithumela usuku lwamanje lwekhompyutha…. Ngakho-ke ayisebenzi kimi ngoba angiluboni usuku lwangempela.

    Ngingazigcina kanjani izinsuku zangempela ???

  10.   efrain kusho

    Akusebenzi, kuthatha usuku lwamanje lohlelo hhayi usuku lokukhishwa komyalo

    1.    KZKG ^ Gaara kusho

      Uma uyifometha ukuze ubeke usuku kuyo, imiyalo oyenzile NGAPHAMBI kwalokhu ngeke ibe nosuku olufanele, kepha labo obenza ngemuva kwalokho bazoba.

  11.   roucat kusho

    Umbuzo we-KZKG ^ Gaara.
    Ungakhombisa nabasebenzisi abenze imiyalo?

    1.    UJohn James kusho

      Umlando ucacele umsebenzisi ngamunye, ngakho-ke kuzofanele ufake iseshini yomsebenzisi ngamunye ukuze uqinisekise okudingayo, manje uma ufuna okuthile okunokulawulwa okukhulu ngincoma ukusetshenziswa kweSUDO, ngoba lokho uma kushiya irekhodi lakho konke okwenziwe kumsebenzisi ngamunye onamadethi nabanye.

  12.   Juan Carlos kusho

    Kuhle kakhulu, ngiyabonga ngegalelo kube usizo olukhulu.

    Phendula ngokucaphuna

  13.   Cosme kusho

    Ngidinga ukwenza umbhalo othumela umlando kimi futhi uwenze nge-bash awuthathi.

    Usizo