Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet201/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   197   198   199   200   201   202   203   204   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 149 
]
Here, we're storing a directory name in a variable, and using the 
ls
 command 
against it to list the contents of it. This may seem relatively useless, but when you're 
scripting, this will save you time. Anytime you need to refer to something more than 
once, it should be in a variable. That way, in a script, you can change the contents of 
that variable just one time and everywhere in the script will reference it.
There are also variables that are automatically present in your shell that you did not 
explicitly set yourself. Enter this command for fun:
env
Wow! You should see a lot of 
variables, especially if you enter it in a desktop version 
of Ubuntu. 
These variables are set by the system, but can still be accessed via 
echo
 as you 
would any other. Some notable ones include 
$SHELL
 (stores the name of the binary 
that currently handles your shell), 
$USER
 (stores your current username), and 
$HOST
 
(stores the hostname for your device). Any of these variables can be accessed at any 
time, and may even prove beneficial in scripts.
We've already gone over 

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   197   198   199   200   201   202   203   204   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish