Cov lus qhia keeb kwm nrog kev ua tiav hnub ntawm txhua cov lus txib

Cov lus qhia keeb kwm qhia peb hauv lub davhlau ya nyob twg cov lus txib uas peb tau ua yav dhau los, muaj qee yam zoo li no:

keeb kwm-hais kom ua-tso zis
Kom deb li deb tau zoo, tab sis dab tsi yog tias peb xav paub meej thaum peb tua txhua txoj lus txib yav dhau los? O_O

Kuv txhais tau tias, pom qee yam zoo li no:

keeb kwm-hais kom ua-tso zis-hnub

Rau qhov no peb yuav tsum tso cov lus txib no hauv lub davhlau ya nyob twg:

export HISTTIMEFORMAT='%F %T : '

Tom qab ntawd lawv khiav dua keeb kwm thiab pom qhov tshwm sim 🙂

Tam sim no, qhov peb nyuam qhuav ua dhau los yuav tsis ruaj khov, qhov ntawd yog, thaum peb kaw qhov kev sib kho (lossis tua lub computer) txoj kev txias no pom cov zis ntawm cov lus qhia keeb kwm yuav raug tsis nco qab los ntawm lub kaw lus, ua kom nws ruaj khov peb yuav tsum khiav hauv qab no:

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

Ntawd yog, muab cov lus txib ntawd nyob ntawm qhov kawg ntawm peb cov ntaub ntawv .bashrc uas tau muab zais rau hauv peb lub tsev.

Los ntawm txoj kev, rau cov neeg uas xav paub qhov% F thiab% T txhais li cas ...% F txhais tau tias hnub rau xyoo-hli-hnub hom, thaum% T yog lub sijhawm nyob rau hauv teev-feeb-thib ob hom (24-teev sijhawm )).

Zoo Kuv tsis xav tias muaj lwm yam los hais, nws yog tus ncej luv tab sis kuv xav tias qhov taub nthuav dav ^ - ^

regards


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

23 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   elav ua said

    Zoo 🙂

  2.   lub sijhawm 3000 said

    Zoo dua, tsis yooj yim sua.

  3.   dhunter said

    Daim ntawv theej-kauv version hauv davhlau ya nyob twg.

    ncha "export HISTTIMEFORMAT = '% F% T:'" >> ~ / .bashrc; qhov chaw ~ / .bashrc

    Tadaaan ...

    1.    dhunter said

      Uff tsis txhob sim ntawd, wordpress quotes tsis ua haujlwm nyob rau hauv qhov xaus.

      1.    KZKG ^ Gaara said

        Muab cov txheej txheem ntawm (code) …… (/ code)… Tab sis, pauv cov cuab yeej siv rau qhov tsawg dua thiab ntau dua-dua cov cim

  4.   Ermimetal said

    Tsaug rau KZKG ^ Gaara cov ntaub ntawv tab sis muaj meej:
    Hnub pib yog hnub no ib txwm hnub, tsis tshua yog hnub thaum lub sijhawm hais kom ua.
    Los yog tsawg kawg uas tau tawm hauv kuv qhov kev ntsuam xyuas. Cheers

    1.    KZKG ^ Gaara said

      Nws zoo nkaus li tias nws tsuas ua haujlwm zoo nrog cov lus txib uas tau ua tom qab kev xa tawm tau ua tiav, uas yog, tag kis koj yuav pom tias cov lus txib uas koj ua tiav tag kis yuav zoo, thiab lwm yam zoo li hnub dhau mus.

      Koj puas nkag siab? 🙂

      Tsaug rau saib 😀

      1.    Ermimetal said

        Ahh mus. Kuv nkag siab
        Tsaug rau cov lus teb thiab tom qab ntawv thiaj li txuag nws hauv .bashrc.

        😀 Txais tos

        1.    KZKG ^ Gaara said

          Tsis muaj hlo li, ua tsaug rau koj los lus teb 🙂

  5.   Julian said

    Zoo heev!, Yooj yim thiab siv tau. Ua tsaug rau koj.

    1.    KZKG ^ Gaara said

      Ua tsaug

  6.   PEB (@valdezpepe) said

    Cov Lus Qhia Zoo Tshaj!!, Ntau hnub ntawm no 🙂

  7.   Blazek said

    Kev pab zoo heev, nws ua haujlwm zoo meej, ua tsaug.

  8.   taregon said

    Cov lus nthuav nthuav !! Thaum xub thawj kuv xav tias nws tsis ua haujlwm, vim hais tias cov lus txib dhau los tau tshwm sim nrog tib hnub; tab sis cov uas nws tau qhia, cov uas yog nws qhia lub sijhawm.

  9.   khepeshef said

    Hola

    Super pab tau taub,, tsuas yog tias kuv muaj teeb meem muab cov lus txib raws li koj qhia qhov export HISTTIMEFORMAT = '% F% T:' thiab tom qab ntawd keeb kwm ... yog tias koj xa kuv hnub thiab sijhawm ntawm txhua cov lus txib,, qhov txawv txawv yog tias kuv Nws xa rau hauv tag nrho cov lus txib nws xa kuv hnub thiab sijhawm uas lub khoos phis tawm muaj lub sijhawm ntawd, uas yog, nws tsis qhia kuv lub sijhawm thiab sijhawm ntawm cov lus txib,,, Kuv tau txais cov lus txib uas kuv tau qhia nag hmo tab sis nws xa tuaj rau kuv hnub no lub computer tam sim no…. Yog li nws tsis ua haujlwm rau kuv vim tias kuv tsis pom hnub tim tiag.

    Kuv yuav txuag lub sijhawm hnub nyoog li cas ???

  10.   efrain said

    Nws tsis ua haujlwm, nws siv sijhawm hnub tam sim no kev ua haujlwm thiab tsis siv cov hnub hais kom ua

    1.    KZKG ^ Gaara said

      Thaum koj tsim nws los tso hnub rau ntawm nws, cov lus txib koj tua UA NTEJ qhov no yuav tsis muaj hnub tim raug, txawm li cas los xij cov koj ua tom qab yuav.

  11.   roucat said

    Ib cov lus nug KZKG ^ Gaara.
    Koj tuaj yeem tuaj yeem pom cov neeg siv uas tua cov lus txib?

    1.    John James said

      Keeb kwm yog tshwj xeeb rau txhua tus neeg siv, yog li koj yuav tau nkag mus rau kev sib ntsib ntawm txhua tus neeg siv los siv qhov koj xav tau, tam sim no yog tias koj xav tau qee yam nrog kev tswj hwm ntau dua Kuv pom zoo siv SUDO, txij li ntawd yog tias nws tawm cov ntaub ntawv ntawm txhua yam tua rau txhua tus siv nrog hnub thiab lwm tus.

  12.   Juan Carlos said

    Zoo heev, ua tsaug rau kev koom nrog nws tau txais txiaj ntsig zoo.

    regards

  13.   Cosme said

    Kuv yuav tsum tau sau ib tsab ntawv uas xa cov keeb kwm rau kuv thiab ua nws los ntawm bash tsis coj nws.

    pab