Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet158/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   154   155   156   157   158   159   160   161   ...   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)

[
 112 
]
There's no output, since again, the file is empty. So, let's instead take a look at a more 
practical example. Here's a file we can use 
cat
 against that actually does have content 
inside:
cat /etc/os-release
The output of this command is as follows:
Figure 4.6: Viewing the contents of /etc/os-release
The 
/etc/os-release
 file is one that exists on many distributions. It's a special file 
that gives you some information about the distribution that's currently installed. If 
you were to connect to a Linux server and wanted to know which distribution it was 
running, viewing the contents of this file is one way to find out. You can also view 
some of the same info in abbreviated form via the following command:
lsb_release -a
That command also works on various distributions, but I prefer the 
/etc/os-release
 
file because it contains more information. Regardless, the entire point of this exercise 
is to demonstrate that the 
cat
 command allows you to view the contents of a file. 
More or less, there are other commands that also let you do the same thing. And I 
mean that literally—you can also try viewing the contents of 
/etc/os-release
 with 
more
 or 
less
:
more /etc/os-release
less /etc/os-release
The 
more
 command allows you to more easily view larger files, so the benefit won't 
be as immediately apparent with a file as short as 
/etc/os-release
. If you use 
more
 
to view a longer file, it will stop the output when it fills the screen, and allow you to 
press 
Enter
 to advance to the next line.


Chapter 4

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   154   155   156   157   158   159   160   161   ...   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