Shell Scripting – nkuzi 07: Site na tiori ruo omume – Nkebi nke 01

Shell Scripting – nkuzi 07: Site na tiori ruo omume – Nkebi nke 01

Shell Scripting – nkuzi 07: Site na tiori ruo omume – Nkebi nke 01

Na-aga n'ihu, na nke a Nkuzi 07 site na usoro anyị Ihe ederede Shell, Taa, anyị ga-ekwu okwu nke mbụ akụkụ nke a usoro nke ihe omuma atu, iburu n'uche ịmalite mụta ma nụchaa ọchịchị anyị Usoro ederede Shell.

Na mgbakwunye, site na ebe a, anyị ga-enwe ike iji ihe niile mara na mụtara, na Nkuzi gara aga 06 na 05 (Ihe n'ịntanetị na Omume ọma), na-echefughị ​​ihe niile usoro iwu ndabere assimilated n'ime nkuzi 04,03, 02 na 01.

Shell Scripting – nkuzi 06: Bash Shell Scripts – Nkebi nke 3

Shell Scripting – nkuzi 06: Bash Shell Scripts – Nkebi nke 3

Yabụ, tupu ịmalite post a na-akpọ "Shell Scripting - nkuzi 07", anyị na-akwado inyocha ihe ndị a ọdịnaya metụtara, na ngwụcha ịgụ ma ọ bụ na-agụgharị post a taa:

Shell Scripting – nkuzi 06: Bash Shell Scripts – Nkebi nke 3
Ihe gbasara ya:
Shell Scripting – nkuzi 06: Bash Shell Scripts – Nkebi nke 3

Shell Scripting – nkuzi 05: Bash Shell Scripts – Nkebi nke 2
Ihe gbasara ya:
Shell Scripting – nkuzi 05: Bash Shell Scripts – Nkebi nke 2

nkuzi Shell Scripting 07

nkuzi Shell Scripting 07

Ọmụmaatụ nke iwu ịmalite na Shell Scripting – nkuzi 07

Ịmara ụkpụrụ eburu ụzọ kọwaa na paramita: iwu mbupụ na Env

Iji malite, ọ dị mkpa ịmara na ọtụtụ n'ime kacha mkpa na ejiri ụkpụrụ ma ọ bụ parameters, na-ama predefined na ụfọdụ variables nke Operating System, nke nwere ike mara site na iwu"Export"Ma"Ziga", dị ka anyị nwere ike ịhụ na foto ndị a:

Export

Mbupụ iwu mbupụ - 1

Mbupụ iwu mbupụ - 2

Ziga

Mmepụta iwu Env - 1

Mmepụta iwu Env - 2

Ya mere, na a ọnụ anyị nwere ike ime ihe atụ, ndị na-esonụ nye iwu ịgụ (wepụ / mara) gburugburu desktọpụ ejiri mee ihe, dabere na "Mbupụ" na "Env" nyere iwu:

kwughachi $XDG_SESSION_DESKTOP

kwughachi $DESKTOP_SESSION

Ya mere nweta otu nsonaazụ ahụ site na ọnụ, n'ọnọdụ m: XFCE. Dị ka egosiri n'okpuru:

iwu ka ịgụ (wepụta/ịmara) gburugburu desktọpụ ejiri mee ihe

Jiri Shell Scripting wepụta ụkpụrụ echekwara na ihe atụ

Mgbe ahụ, anyị ga-amụta wepụ ụkpụrụ na ozi ụdị dị iche iche site na na-eme iwu iwu n'ọnụ ọnụ. Malite na ụfọdụ ndị dị mfe dị ka taa, ruo mgbe erute ndị ọzọ dị elu, na nkuzi n'ọdịnihu.

Ebe nke taa bụ ihe ndị a:

NE=$(cat /etc/hostname) ; echo $NE
#Nombre del Equipo.

F1=$(date +"%D") ; echo $F1
#Fecha actual del Sistema

F2=$(date +"%d-%b-%y") ; echo $F2
#Fecha actual del Sistema

F3=$(date +"%d-%m-%y") ; echo $F3
#Fecha Numérica actual del Equipo

F4=$(date "+%d-%m-%y_%H-%M-%S") ; echo $F4
#Fecha actual extendida del Sistema

H1=$(date +"%T") ; echo $H1
#Hora actual del Sistema

H2=$(date +"%H-%M") ; echo $H2
#Hora actual del Sistema

H3=$(date +"%H-%M-%S") ; echo $H3
#Fecha actual extendida del Sistema

H4=$(date +"%H") ; echo $H4
#Hora del Sistema

M1=$(date +"%M") ; echo $M1
#Minutos del Equipo

S1=$(date +"%S") ; echo $S1
#Segundos del Sistema

D1=$(date +"%d") ; echo $D1
#Día actual del Equipo

MES1=$(date +"%b") ; echo $MES1
#Mes alfabético actual del Equipo

MES2=$(date +"%m") ; echo $MES2
#Mes numérico actual del Equipo

A1=$(date +"%y") ; echo $A1
#Año (con 2 cifras) actual del Equipo

A2=$(date +"%Y") ; echo $A2
#Año (con 4 cifras) actual del Equipo

Mgbe ị na-egbu ha na njedebe nke a ga-abụ nsonaazụ na ihuenyo:

Nsonaazụ ihuenyo nke iwu iwu egburu

Shell Scripting – nkuzi 04: Bash Shell Scripts - Nkebi nke 1
Ihe gbasara ya:
Shell Scripting – nkuzi 04: Bash Shell Scripts – Nkebi nke 1
Shell Scripting - nkuzi 03: Ihe niile gbasara Bash Shell Scripting
Ihe gbasara ya:
Shell Scripting – nkuzi 03: Ihe niile gbasara Scripts na Shell Scripting

ọkọlọtọ Abstract maka post

Na nkenke, anyị na -atụ anya nke a Nkuzi 07 na "Shell Scripting" ya na akụkụ mbụ nke usoro bara uru nye iwu ịmalite ịmụta na ịghọta ikike nke usoro a, kwe ka ha, n'ọdịnihu dị nso, a njikwa dị elu na nke bara uru nke ha Sistemụ arụmọrụ GNU/Linux. Na n'ezie, ike iru wulite mmemme CLI/GUI nke gị, Ọ bụrụ na ọ dị mkpa.

Dị nnọọ ka, n'onwe m, m na-ebu na-ewu nke a ngwa (ngwugwu) Debian akpọ LPI-SOA, emela 100% na Bash site na Shell Scripting, gbasara ụdị m n'ọdịnihu Ogbe Respin dabere na Linux MX akpọ Ọrụ ebube. Gịnịkwa ka ha ga-ahụ n’ime m? Ọwa YouTube, iji mara ike (oke) nke Shell Scripting.

Ọ bụrụ na ọdịnaya ahụ masịrị gị, ikwu ma kesaa ya. Ma cheta, gaa na mmalite nke anyị «mkpokọta», na mgbakwunye na ukara ọwa nke telegram maka ozi ndị ọzọ, nkuzi na mmelite Linux. West otu, maka ozi ndị ọzọ gbasara isiokwu taa ma ọ bụ ndị ọzọ metụtara ya.


Ọdịnaya nke isiokwu agbaso ụkpụrụ anyị nke ụkpụrụ nduzi. Kpesa mmejọ pịa ebe a.

Bụrụ onye mbụ ịza ajụjụ

Hapu okwu gi

Adreesị email gị agaghị bipụtara. Chọrọ ubi na-akara na *

*

*

  1. Rụ ọrụ maka data: Miguel Ángel Gatón
  2. Nzube nke data: Nchịkwa SPAM, njikwa okwu.
  3. Ikike: Nkwenye gị
  4. Nkwurịta okwu nke data: Agaghị agwa ndị ọzọ data ahụ ma ọ bụghị site na iwu.
  5. Nchekwa data: Ebe nchekwa data nke Occentus Networks (EU) kwadoro
  6. Ikike: Oge obula inwere ike igbachi, weghachite ma hichapụ ihe omuma gi.