Ungenza kanjani umlando wethu womyalo ungakhumbuli imiyalo ethile

Sonke siyazi ukuthi i- Umlando weBash. Izikhathi eziningi sidinga ngasizathu simbe (ukuphepha, i-paranoia, njll.) Ukuthi umyalo othile awugciniwe emlandweni, okungukuthi, ngokwesibonelo, sifuna yonke imiyalo igcinwe ngaphandle kwaleyo ehlobene ne-ssh, ngale ndlela uma umuntu okwazi ukufinyelela kwikhompyutha yethu ngeke akwazi ukwazi ukuthi iyiphi i-SSH esiyenzayo.

Ukukhipha konke okuhlobene nomyalo ssh sibhala umugqa olandelayo ku .bashrc :

HISTIGNORE='ere*:ssh*'

Ngale ndlela uma ngokwesibonelo senza into efana nale:

ssh root@virtue

… Ngeke isindiswe emlandweni 😉

Uma sifuna ikhiphe konke okuhlobene nomyalo ls sibhala okulandelayo:

HISTIGNORE='ere*:ls*'

Khumbula ukuthi ifayela .I-bashrc inesikhathi ekuqaleni kwegama, okusho ukuthi yifayela elifihliwe elisekhaya lethu. Uma ufisa, usebenzisa umyalo we- echo ungabhala ngqo ku-.

echo "HISTIGNORE='ere*:ssh*'" >> $HOME/.bashrc

Ngicabanga ukuthi akukho okunye engingangeza.

Sanibonani


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

Amazwana ayi-12, 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.   q0 kusho

    Lokhu kucishe kungikhuthaze ukuthi ngivule ikhasi lendoda bese ngibhala kule sayithi, ukubhala ukuthi uwafaka kanjani ohlwini amafayela afihliwe kufanele kube ngumnikelo omkhulu.

  2.   UJose Torres kusho

    Ithuluzi elithakazelisayo. Isikhathi esimele sona?

  3.   truko22 kusho

    Okuthakazelisa 😀 kumabhukhimakhi ngaphandle kokuzayo ngiyakudinga, ngiyabonga kakhulu.

  4.   I-Himekisan kusho

    Iyathandeka ngempela futhi iyasebenziseka, ikakhulukazi kithi emhlabeni wokuphathwa kwenethiwekhi (i-paranoia ayilimazi).

  5.   isihlibhi kusho

    Futhi kunemodi ye-pragmatic, vele uthayiphe isikhala ngaphambi komyalo futhi yiso leso, ngeke sikhunjulwe.

    1.    Percaff_TI99 kusho

      Yebo, ngihlala ngisebenzisa umlando -c, kepha akukho okusele kwe-xD, leyo nketho ilula kakhulu futhi iyakhetha.

    2.    Ikhukhi kusho

      Into yasemkhathini ayisebenzelanga mina.

      1.    KZKG ^ Gaara kusho

        Nami anginayo, yingakho ngingazange ngiyibeke eposini kusukela ekuqaleni 🙁

        1.    xpt kusho

          ukungeza:
          I-HISTCONTROL = ukunganaki indawo
          isikhala siyasebenza 🙂

        2.    Imvula kusho

          Into yesikhala ingisebenzele izinyanga, ingilungiselela ngale ndlela:
          HISTIGNORE = '(isikhala) + (*)' => kanjena: HISTIGNORE = '*'
          (I.

  6.   Ikhukhi kusho

    UGaara onentshisekelo. Yize angiyidingi okwamanje, ngithanda ukwazi ukuthi nginezinqolobane zamathiphu lapha eLaveLinux.

  7.   U-Lenin Ali kusho

    Mfushane, emfushane futhi ewusizo! umnikelo omuhle kakhulu.