Birmingham mumbai



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

Directory
Purpose
/
The beginning of the filesystem; all directories are underneath this
/etc
System-wide application configuration
/home
User home directories
/root
The home directory for root (root doesn't have a directory under 
/home
)
/media
For removable media, such as flash drives
/mnt
For volumes that are intended to stay mounted for a while
/opt
Additional software packages 
(some programs are installed here, not as common)
/bin
Essential user binaries (
ls

cp
, and so on)
/proc
Virtual filesystem for OS-level components
/usr/bin
A majority of user commands
/usr/lib
Libraries
/var/log
Log files


Chapter 4
[
 111 
]
The 
/etc
 directory deserves some additional discussion, as you'll no doubt be 
working with it a lot. This directory, as mentioned in the preceding table, holds 
configuration files for applications that are intended to be respected system-wide. 
For example, if you're running the OpenSSH daemon on your server, you're 
listening for connections via port 22 by default. (Don't worry, we'll discuss these 
individual concepts in further chapters.) The 
configuration file for the OpenSSH 
server is located in the 
/etc/ssh
 directory. Since OpenSSH is a service that runs on 
the system as a background process, its configuration is stored in the 
sshd_config
 
file inside that directory. If you remove the package responsible for providing 
OpenSSH, the configuration is retained in that file (removing packages doesn't 
remove config files by default), so if you go to reinstall OpenSSH later, you'll have 
the same configuration the next time. If we want to wipe out the configuration while 
uninstalling a package, we can use the 
--purge
 option with the 
apt remove
 command 
to do so, as we saw in 
Chapter 3

Managing Software Packages
.
Other directories of importance will be discussed as we progress through the topics 
in this book. Don't worry if some of this doesn't make sense right now; it will come 
with time. The main point here is that there are many directories, each having their 
own purpose. If you want to know the purpose of a particular directory, consult the 
FHS. If you're curious where you should place something on a server, also consult 
the FHS. But again, don't worry too much about doing research outside of this book, 
as we'll cover the necessary topics as we go along.
We now have a better understanding of the default filesystem layout, and the 
purpose for some common directories. In the next section, we'll explore how we can 
view the contents of files stored in those directories.

Download 15,21 Mb.

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