Mhanyai Linux raira nguva dzese neWatch

tarisa linux raira

Kushandisa mamwe mabasa kunogona kubatsira zvikuru, kunyanya kana iwo ari mabasa anosanganisira kushanda kubva kunyaradzo. Mune yedu Linux distro tinogona kuve nematurusi akasiyana siyana ekushandura mabasa, kuwedzera pakukwanisa kunyora zvinyorwa zveBash kuti zviite zvakateedzana zvemirairo kana zviito pasina kuenda rimwe nerimwe, uye kutozviwedzera kune yekutanga system kana kuronga kuti vamhanye rimwe zuva.kana nguva tisina kuita chinhu uye nenzira yakajeka.

Muchikamu chino tichaona kuti ungazviita sei ita rairo nguva zhinji uchishandisa watch. Tarisa iwo murairo unogona kuita chirongwa kana mumwe kuraira wega X masekondi atinoisa pairi. Nekudaro isu tinoronga kudzokorora kudzokororwa kweimwe basa. Inogona kunyanya kushanda kune kumwe kubvunza kwenguva nenguva kana kune mamwe mabasa ekuchengetedza etc. Unogona kuishandisa kune chero chinhu sezvaungaona pano, muganho ndewako fungidziro ...

Kana iwe uchida chiuno kana kudzokorora kupera, unogona kushandisa CTRL + C kupedzisa chiito cheWatch kana kungovhara iyo terminal hwindo kwarinoshanda. Iyo syntax yekurinda iri nyore kwazvo uye ine iyi physiognomy:

watch [opciones] comando

Somuenzaniso, ngatione muenzaniso unoshanda Inotarisa nzvimbo inoshandiswa muzvikamu zvedu maminetsi mashanu (masekondi mazana matatu). Nezve kubvunza yakashandiswa uye yemahara nzvimbo yezvikamu zvedu, nyora "df -h", nekuti newachi ichave iri:

watch -n 300 df -h

Unogona kutarisa murume akarinda kuti aone zvese zvingasarudzwa inayo, sezvo iri nyore kuchinjika. Uye zvakare, isu tinogona kudzoreredza mubvunzo kune faira kuitira kuti zvabuda zvinyorwe mu .txt semuenzaniso:

 watch -n 300 df -h > espacio_usado.txt 

Nenzira iyi, tinogona tarisa iyo faira yakashandiswa_space.txt kwatinozoona kuti chinhu chimwe chete icho chingatiratidze patinonyora df -h. Fungidzira huwandu hwemabasa iwe aunogona kuita ...


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Makomendi gumi, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

  1.   David akadaro

    Tarisa ndiwo unobatsira kuraira. Ini ndinoshandisa iyo kudzora tembiricha yePC yangu kuburikidza neterminal: «wachi sensors».
    Ini ndaitoziva iwo murairo asi ini ndakafarira chinyorwa chakanyanya (chipfupi uye chakanyatsotsanangurwa).

  2.   mircocaloghero akadaro

    Ini ndinonyatsoda aya marudzi ezvinyorwa. Ndatenda

  3.   Musoja akadaro

    Zvakandishandira zvakanyanya