Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet181/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   177   178   179   180   181   182   183   184   ...   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)

Standard Input
. These are abbreviated as 
stdout
 and 
stdin

respectively. The reason for the expansion of the simple concept of input/output 
into a concept of its own is because, on the Linux shell, we can handle these streams 
differently and perform different tasks with them.
We've been working with standard output throughout the entire book so far. 
Everything that is printed to the terminal is standard output. For example, when you 
ran the 
sudo apt install vim-nox
 command earlier, the results of that command 
(the flood of text showing the status of the package installation as it occurred) was 
standard output. When you use the 
cat /var/log/syslog
 command to have the 
contents of 
/var/log/syslog
 dumped on to the screen, the contents being displayed 
are standard output. By far, standard output is something you'll work with the most.
To understand the concept of standard output better, let's take a look at redirection. 
The following command is an example:
cat /var/log/syslog > ~/logfile.txt
With that command, we're using 
cat
 to display the contents of 
/var/log/syslog

But instead of simply showing the contents on screen, we use the 
>
 character to 
redirect standard output into a file, 
~/logfile.txt
. This means that standard output 
(showing the contents of the file) will not be shown at all, since we redirected that 
into a file. Similarly, we could have also run:
cat /var/log/syslog 1> ~/logfile.txt


Chapter 5

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   177   178   179   180   181   182   183   184   ...   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