[리눅스] /lib 디렉토리는 뭔겨?ㅋㅋ
무한사랑...무한...infinite...의 세계로...어서오세요…
예수님의 사랑은 무한사랑
하나님은 무한한 존재
성령님은 무한한 Spirit…
이게 무슨말인가?
ㅎㅎㅎㅎ
암튼...무한 리눅스의 세계로 들어가 봅시다.
ㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎ
리눅스의 root 밑에 있는 녀석들은 각자 역할이 있는 것 같다..
아니 있다.
그중에 …
/lib
라는 녀석은…..
“시스템에서 공유하여 같이 사용하는 라이브러리가 들어가 있는 곳”이란다.
그런데 … /lib 디렉토리안에…..엄청나게 많은 디렉토리가 들어가 있다…
/lib ├── GConf ├── ModemManager ├── NetworkManager ├── X11 ├── abrt-java-connector ├── alsa ├── alsa-lib ├── ao ├── apr-util-1 ├── audit ├── avahi ├── bind99 ├── binfmt.d ├── bluetooth ├── brltty ├── ccs ├── cifs-utils ├── cmake ├── colord-plugins ├── colord-sensors ├── crda ├── cups ├── debug ├── device-mapper ├── dleyna-1.0 ├── dleyna-server ├── dracut ├── dri ├── ebtables ├── elfutils ├── empathy ├── enchant ├── eog ├── epiphany ├── evince ├── evolution ├── evolution-data-server ├── farstream-0.2 ├── fipscheck ├── firefox ├── firewalld ├── firmware ├── folks ├── freerdp ├── frei0r-1 ├── fs ├── gallium-pipe ├── games ├── gawk ├── gcc ├── gconv ├── gdk-pixbuf-2.0 ├── gedit ├── gettext ├── ghostscript ├── gio ├── girepository-1.0 ├── gjs ├── glusterfs ├── gnome-calculator ├── gnome-documents ├── gnome-keyring ├── gnome-online-miners ├── gnome-settings-daemon-3.0 ├── gnome-shell ├── goa-1.0 ├── grilo-0.2 ├── grub ├── gs-plugins-8 ├── gssproxy ├── gstreamer-1.0 ├── gtk-2.0 ├── gtk-3.0 ├── guile ├── gupnp-dlna ├── gutenprint ├── gvfs ├── httpd ├── i686 ├── iscsi ├── java ├── java-1.5.0 ├── java-1.6.0 ├── java-1.7.0 ├── java-1.8.0 ├── java-ext ├── jvm ├── jvm-commmon ├── jvm-exports ├── jvm-private ├── kbd ├── kdump ├── kernel ├── krb5 ├── ldb ├── libcanberra-0.30 ├── libgphoto2 ├── libgphoto2_port ├── libgpod ├── libkkc ├── liblangtag ├── libnfsidmap ├── libpeas-1.0 ├── libpinyin ├── libproxy ├── libreoffice ├── libtranslit ├── libuser ├── libv4l ├── libvirt ├── libxslt-plugins ├── libzhuyin ├── lksctp-tools ├── llvm ├── locale ├── lua ├── m17n ├── man-db ├── mission-control-plugins.0 ├── modprobe.d ├── modules ├── modules-load.d ├── mozilla ├── mutter ├── nautilus ├── nss ├── open-vm-tools ├── openssl ├── openvpn ├── org.gnome.Characters ├── os.release.d ├── p11-kit ├── packagekit-backend ├── pam_pkcs11 ├── perl5 ├── pkcs11 ├── pkgconfig ├── plymouth ├── pm-utils ├── polkit-1 ├── pppd ├── pulse-7.0 ├── pulseaudio ├── purple-2 ├── python3.4 ├── qt4 ├── qt5 ├── realmd ├── redland ├── rhythmbox ├── rpm ├── rpm-plugins ├── rsocket ├── rtkaio ├── rygel-2.6 ├── samba ├── sane ├── sasl2 ├── seahorse ├── security ├── shotwell ├── silc ├── speech-dispatcher ├── speech-dispatcher-modules ├── sse2 ├── sssd ├── stunnel ├── sushi ├── sysctl.d ├── systemd ├── sysusers.d ├── tc ├── tcl8.6 ├── telepathy ├── tls ├── tmpfiles.d ├── totem ├── tracker-1.0 ├── udev ├── vdpau ├── vte-2.90 ├── webkit2gtk-4.0 ├── xorg └── xtables 184 directories |
총 184개의 디렉토리가 있네….뭐이리 공유해서 쓸게 많은겨….
음…. /lib/modules/ 밑에 있는 파일이 뭔가 확인해보니… .ko 파일 같이 커널에서 사용하는 모듈들인것 같네요..
[root@localhost kernel]# tree `pwd` /lib/modules/4.2.5/kernel ├── Documentation │ ├── connector │ │ └── cn_test.ko │ └── filesystems │ └── configfs │ ├── configfs_example_explicit.ko │ └── configfs_example_macros.ko ├── arch │ └── x86 │ ├── crypto │ │ ├── crc32-pclmul.ko │ │ ├── crc32c-intel.ko │ │ ├── glue_helper.ko │ │ ├── salsa20-i586.ko │ │ ├── serpent-sse2-i586.ko │ │ └── twofish-i586.ko │ ├── kernel │ │ ├── cpu │ │ │ └── mcheck │ │ │ └── mce-inject.ko │ │ ├── iosf_mbi.ko │ │ └── test_nx.ko │ ├── kvm │ │ ├── kvm-amd.ko │ │ ├── kvm-intel.ko │ │ └── kvm.ko │ ├── oprofile │ │ └── oprofile.ko │ └── platform │ └── iris │ └── iris.ko ├── crypto │ ├── 842.ko │ ├── ansi_cprng.ko │ ├── anubis.ko │ ├── arc4.ko │ ├── async_tx |
암튼….
/lib 는
시스템 전체적으로 같이 공유하고 싶은 놈들이 들어가는 방(디렉토리,폴더...)인것이죠~~!!!
흐흐흐. 이번글은 여기까징~~~
무한 드리볼~~
[참고]
http://egaoneko.github.io/os/2015/05/24/linux-starter-guide-3.html
http://lintut.com/use-tree-command-in-linux/