Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet170/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   166   167   168   169   170   171   172   173   ...   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)

[
 123 
]
To be fair, editing a log file directly is probably not a good idea in practice, but the 
example works. The syslog is a file you may want to open and inspect, but it would 
be a good idea to check the size of the syslog file with the 
ls -lh /var/log/syslog
 
command to make sure it's not excessively large in size, which can slow down the 
server. 
All of that aside, the takeaway here is that you can open a file with 
nano
 directly by 
simply providing it with a path to something. Inside the editor window, you can 
move around with the arrow keys, just like you would in a graphical editor. You 
can also search for a specific string of text, by pressing 
Ctrl
 + 
w
 for 
Where Is
, as it 
mentions in the list of actions near the bottom.
In addition, note the text in the screenshot that is highlighted in red. It's simply 
telling us that we don't have access to edit the file. In that example, I didn't use 
sudo
 because I didn't intend on making any changes to the file. I was able to open it 
without 
sudo
 since my user is a member of the 
syslog
 group. Sometimes, I'll open 
files in an editor that I don't have write permission to make changes to, which serves 
as a fail-safe in case I accidentally do make a change. To make a real change, I can 
close the file and reopen it with 
sudo
.
Anyway, the 
nano
 editor is fairly simplistic. Is there more to it than that? Sure, but 
the most important thing to know is how to open files, edit them, and save them, 
which we've covered in this section. Of course, you can practice with the actions that 
are presented to you at the bottom of the window to go beyond normal usage.
Now, let's take a look at Vim.

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   166   167   168   169   170   171   172   173   ...   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