转载--linux filesystem structures

转载--linux filesystem structures,第1张

概述In this article, let us review the Linux filesystem structures and understand the meaning of individ

In this article,let us revIEw the linux filesystem structures and understand the meaning of indivIDual high-level directorIEs.

1. / – RootEvery single file and directory starts from the root directory.Only root user has write privilege under this directory.Please note that /root is root user’s home directory,which is not same as /.2. /bin – User BinarIEsContains binary executables.Common linux commands you need to use in single-user modes are located under this directory.Commands used by all the users of the system are located here.For example: ps,ls,Ping,grep,cp.3. /sbin – System BinarIEsJust like /bin,/sbin also contains binary executables.But,the linux commands located under this directory are used typically by system aministrator,for system maintenance purpose.For example: iptables,reboot,fdisk,ifconfig,swapon4. /etc – Configuration filesContains configuration files required by all programs.This also contains startup and shutdown shell scripts used to start/stop indivIDual programs.For example: /etc/resolv.conf,/etc/logrotate.conf5. /dev – Device filesContains device files.These include terminal devices,usb,or any device attached to the system.For example: /dev/tty1,/dev/usbmon06. /proc – Process informationContains information about system process.This is a pseudo filesystem contains information about running process. For example: /proc/{pID} directory contains information about the process with that particular pID.This is a virtual filesystem with text information about system resources. For example: /proc/uptime7. /var – Variable filesvar stands for variable files.Content of the files that are expected to grow can be found under this directory.This includes — system log files (/var/log); packages and database files (/var/lib); emails (/var/mail); print queues (/var/spool); lock files (/var/lock); temp files needed across reboots (/var/tmp);8. /tmp – Temporary filesDirectory that contains temporary files created by system and users.files under this directory are deleted when system is rebooted.9. /usr – User ProgramsContains binarIEs,librarIEs,documentation,and source-code for second level programs./usr/bin contains binary files for user programs. If you can’t find a user binary under /bin,look under /usr/bin. For example: at,awk,cc,less,scp/usr/sbin contains binary files for system administrators. If you can’t find a system binary under /sbin,look under /usr/sbin. For example: atd,cron,sshd,useradd,userdel/usr/lib contains librarIEs for /usr/bin and /usr/sbin/usr/local contains users programs that you install from source. For example,when you install apache from source,it goes under /usr/local/apache210. /home – Home DirectorIEsHome directorIEs for all users to store their personal files.For example: /home/john,/home/nikita11. /boot – Boot Loader filesContains boot loader related files.Kernel initrd,vmlinux,grub files are located under /bootFor example: initrd.img-2.6.32-24-generic,vmlinuz-2.6.32-24-generic12. /lib – System librarIEsContains library files that supports the binarIEs located under /bin and /sbinlibrary filenames are either ld* or lib*.so.*For example: ld-2.11.1.so,libncurses.so.5.713. /opt – Optional add-on Applicationsopt stands for optional.Contains add-on applications from indivIDual vendors.add-on applications should be installed under either /opt/ or /opt/ sub-directory.14. /mnt – Mount DirectoryTemporary mount directory where sysadmins can mount filesystems.15. /media – Removable Media DevicesTemporary mount directory for removable devices.For examples,/media/cdrom for CD-ROM; /media/floppy for floppy drives; /media/cdrecorder for CD writer16. /srv – Service Datasrv stands for service.Contains server specific services related data.For example,/srv/cvs contains CVS related data. 总结

以上是内存溢出为你收集整理的转载--linux filesystem structures全部内容,希望文章能够帮你解决转载--linux filesystem structures所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/1050710.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存