본문 바로가기

자격증/리눅스 1급 - 필기 기록

[ 리눅스 스터디 ] 리눅스 파일의 용도

728x90
반응형


greb 이용해서 CentOS 설정

 

[root@DESKTOP-9IVP0T4 etc]# cat /etc/default/grub
GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="serial --speed=115200"
GRUB_CMDLINE_LINUX="console=tty0 crashkernel=auto console=ttyS0,115200"
GRUB_DISABLE_RECOVERY="true"

password 잃어버렸을 경우

 

- 리눅스를 응급부트모드로 변경해야 한다.


사용자명 확인 ( whoami )

 

[root@DESKTOP-9IVP0T4 etc]# whoami
root

비밀번호 변경 ( passwd )

 

- 누구나 응급 복구 모드에 접근할 수 없도록 GREB 에 패스워드 설정.

 

[root@DESKTOP-9IVP0T4 etc]# passwd
Changing password for user root.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.

reboot

 

- 재부팅


cd /bin

 

- 바이너리의 약자로 실행 파일들이 있다.


cd /boot

 

- 시스템 부팅시 필요한 파일들이 들어있는 디렉터리

 

[root@DESKTOP-9IVP0T4 /]# cd /boot
[root@DESKTOP-9IVP0T4 boot]# ls
config-3.10.0-957.12.2.el7.x86_64                        initramfs-3.10.0-957.12.2.el7.x86_64.img
efi                                                      symvers-3.10.0-957.12.2.el7.x86_64.gz
grub                                                     System.map-3.10.0-957.12.2.el7.x86_64
grub2                                                    vmlinuz-0-rescue-93f219319dd5bdb42d9f1c8f2e23d329
initramfs-0-rescue-93f219319dd5bdb42d9f1c8f2e23d329.img  vmlinuz-3.10.0-957.12.2.el7.x86_64

cd /dev

 

- 물리적인 장치를 파일화하여 기록하여 관리하는 디렉토리

 

[root@DESKTOP-9IVP0T4 /]# cd /dev
[root@DESKTOP-9IVP0T4 dev]# ls
autofs           loop0         net    ram13  random  tty0   tty19  tty29  tty39  tty49  tty59  ttyS2      vsock
block            loop1         null   ram14  rtc0    tty1   tty2   tty3   tty4   tty5   tty6   ttyS3      zero
bsg              loop2         nvram  ram15  sda     tty10  tty20  tty30  tty40  tty50  tty60  urandom
btrfs-control    loop3         ppp    ram2   sdb     tty11  tty21  tty31  tty41  tty51  tty61  vcs
console          loop4         ptmx   ram3   sg0     tty12  tty22  tty32  tty42  tty52  tty62  vcs1
cpu_dma_latency  loop5         pts    ram4   sg1     tty13  tty23  tty33  tty43  tty53  tty63  vcsa
cuse             loop6         ram0   ram5   shm     tty14  tty24  tty34  tty44  tty54  tty7   vcsa1
fd               loop7         ram1   ram6   stderr  tty15  tty25  tty35  tty45  tty55  tty8   vcsu
full             loop-control  ram10  ram7   stdin   tty16  tty26  tty36  tty46  tty56  tty9   vcsu1
fuse             mapper        ram11  ram8   stdout  tty17  tty27  tty37  tty47  tty57  ttyS0  vfio
kmsg             mem           ram12  ram9   tty     tty18  tty28  tty38  tty48  tty58  ttyS1  vhost-net

 

cd /home

 

- 개인 사용자들이나 파일들이 디렉터리를 만들어서 관리 가능

 

[root@DESKTOP-9IVP0T4 /]# cd /home
[root@DESKTOP-9IVP0T4 home]# ls
[root@DESKTOP-9IVP0T4 home]#

cd /lib

 

- 각종 라이브러리 저장 디렉터리

 

[root@DESKTOP-9IVP0T4 /]# cd /lib
[root@DESKTOP-9IVP0T4 lib]# ls
binfmt.d  firmware  kbd     locale      modules-load.d  rpm               sse2      tmpfiles.d  wsl
debug     games     kdump   modprobe.d  polkit-1        sendmail          sysctl.d  tuned       yum-plugins
dracut    grub      kernel  modules     python2.7       sendmail.postfix  systemd   udev

 

cd /lib64

 

- 64비트용 리눅스를 설치하는 경우에 생성되는 디렉터리

 

[root@DESKTOP-9IVP0T4 /]# cd /lib64
[root@DESKTOP-9IVP0T4 lib64]#
[root@DESKTOP-9IVP0T4 lib64]# ls
audit                           libgpgme-pthread.so.11           libpcre16.so.0.2.0
cracklib_dict.hwm               libgpgme-pthread.so.11.8.1       libpcre32.so.0
cracklib_dict.pwd               libgpgme.so.11                   libpcre32.so.0.0.0
cracklib_dict.pwi               libgpgme.so.11.8.1               libpcrecpp.so.0
dbus-1                          libgssapi_krb5.so.2              libpcrecpp.so.0.0.0
elfutils                        libgssapi_krb5.so.2.2            libpcreposix.so.0
fipscheck                       libgssrpc.so.4                   libpcreposix.so.0.0.1
games                           libgssrpc.so.4.2                 libpcre.so.1
gconv                           libgthread-2.0.so.0              libpcre.so.1.2.0
gettext                         libgthread-2.0.so.0.5600.1       libpipeline.so.1
gio                             libhandle.so.1                   libpipeline.so.1.2.3
girepository-1.0                libhandle.so.1.0.3               libplc4.so
gssproxy                        libhistory.so.6                  libplds4.so
krb5                            libhistory.so.6.2                libpng15.so.15
ld-2.17.so                      libidn.so.11                     libpng15.so.15.13.0
ld-linux-x86-64.so.2            libidn.so.11.6.11                libpoldiff.so.1
libacl.so.1                     libini_config.so.3               libpoldiff.so.1.3.3
libacl.so.1.1.0                 libini_config.so.3.2.1           libpolkit-agent-1.so.0
libanl-2.17.so                  libip4tc.so.0                    libpolkit-agent-1.so.0.0.0
libanl.so.1                     libip4tc.so.0.1.0                libpolkit-gobject-1.so.0
libapol.so.4                    libip6tc.so.0                    libpolkit-gobject-1.so.0.0.0
libapol.so.4.4                  libip6tc.so.0.1.0                libpopt.so.0
libasm-0.172.so                 libiptc.so.0                     libpopt.so.0.0.0
libasm.so.1                     libiptc.so.0.0.0                 libprocps.so.4
libasprintf.so.0                libirs-export.so.90              libprocps.so.4.0.0
libasprintf.so.0.0.0            libirs-export.so.90.0.1          libpthread-2.17.so
libassuan.so.0                  libisccfg-export.so.90           libpthread.so.0
libassuan.so.0.4.0              libisccfg-export.so.90.0.7       libpth.so.20
libattr.so.1                    libisc-export.so.95              libpth.so.20.0.27
libattr.so.1.1.0                libisc-export.so.95.2.1          libpwquality.so.1
libaudit.so.1                   libjansson.so.4                  libpwquality.so.1.0.2
libaudit.so.1.0.0               libjansson.so.4.10.0             libpython2.7.so.1.0
libauparse.so.0                 libjson-c.so.2                   libqpol.so.1
libauparse.so.0.0.0             libjson-c.so.2.0.1               libqpol.so.1.7
libbasicobjects.so.0            libjson.so.0                     libqrencode.so.3
libbasicobjects.so.0.1.0        libjson.so.0.1.0                 libqrencode.so.3.4.1
libbfd-2.27-34.base.el7.so      libk5crypto.so.3                 libreadline.so.6
libblkid.so.1                   libk5crypto.so.3.1               libreadline.so.6.2
libblkid.so.1.1.0               libkdb5.so.8                     libref_array.so.1
libBrokenLocale-2.17.so         libkdb5.so.8.0                   libref_array.so.1.2.1
libBrokenLocale.so.1            libkeyutils.so.1                 libresolv-2.17.so
libbtrfs.so.0                   libkeyutils.so.1.5               libresolv.so.2
libbtrfs.so.0.1                 libkmod.so.2                     librpmbuild.so.3
libbz2.so.1                     libkmod.so.2.2.10                librpmbuild.so.3.2.2
libbz2.so.1.0.6                 libkrad.so.0                     librpmio.so.3
libc-2.17.so                    libkrad.so.0.0                   librpmio.so.3.2.2
libcap-ng.so.0                  libkrb5.so.3                     librpmsign.so.1
libcap-ng.so.0.0.0              libkrb5.so.3.3                   librpmsign.so.1.2.2
libcap.so.2                     libkrb5support.so.0              librpm.so.3
libcap.so.2.22                  libkrb5support.so.0.1            librpm.so.3.2.2
libcgroup.so.1                  liblber-2.4.so.2                 librt-2.17.so
libcgroup.so.1.0.41             liblber-2.4.so.2.10.7            librt.so.1
libcidn-2.17.so                 libldap-2.4.so.2                 libsasl2.so.3
libcidn.so.1                    libldap-2.4.so.2.10.7            libsasl2.so.3.0.0
libcollection.so.2              libldap_r-2.4.so.2               libseaudit.so.4
libcollection.so.2.1.1          libldap_r-2.4.so.2.10.7          libseaudit.so.4.5
libcom_err.so.2                 liblua-5.1.so                    libseccomp.so.2
libcom_err.so.2.1               liblz4.so.1                      libseccomp.so.2.3.1
libcpupower.so.0                liblz4.so.1.7.5                  libsefs.so.4
libcpupower.so.0.0.0            liblzma.so.5                     libsefs.so.4.0.4
libcrack.so.2                   liblzma.so.5.2.2                 libSegFault.so
libcrack.so.2.9.0               liblzo2.so.2                     libselinux.so.1
libcroco-0.6.so.3               liblzo2.so.2.0.0                 libsemanage.so.1
libcroco-0.6.so.3.0.1           libm-2.17.so                     libsepol.so.1
libcrypt-2.17.so                libmagic.so.1                    libsgutils2.so.2
libcrypto.so.10                 libmagic.so.1.0.0                libsgutils2.so.2.0.0
libcrypto.so.1.0.2k             libmemusage.so                   libslang.so.2
libcryptsetup.so.12             libmenu.so.5                     libslang.so.2.2.4
libcryptsetup.so.12.3.0         libmenu.so.5.9                   libslapi-2.4.so.2
libcryptsetup.so.4              libmenuw.so.5                    libslapi-2.4.so.2.10.7
libcryptsetup.so.4.7.0          libmenuw.so.5.9                  libsmartcols.so.1
libcrypt.so.1                   libmnl.so.0                      libsmartcols.so.1.1.0
libc.so.6                       libmnl.so.0.1.0                  libsmime3.so
libcurl.so.4                    libmount.so.1                    libsnappy.so.1
libcurl.so.4.3.0                libmount.so.1.1.0                libsnappy.so.1.1.4
libdaemon.so.0                  libmozjs-17.0.so                 libsoftokn3.chk
libdaemon.so.0.5.0              libm.so.6                        libsoftokn3.so
libdb-5.3.so                    libncurses.so.5                  libsqlite3.so.0
libdb-5.so                      libncurses++.so.5                libsqlite3.so.0.8.6
libdbus-1.so.3                  libncurses.so.5.9                libssh2.so.1
libdbus-1.so.3.14.14            libncurses++.so.5.9              libssh2.so.1.0.1
libdbus-glib-1.so.2             libncurses++w.so.5               libssl3.so
libdbus-glib-1.so.2.2.2         libncursesw.so.5                 libssl.so.10
libdevmapper.so.1.02            libncurses++w.so.5.9             libssl.so.1.0.2k
libdhcpctl.so.0                 libncursesw.so.5.9               libss.so.2
libdhcpctl.so.0.0.0             libndp.so.0                      libss.so.2.0
libdl-2.17.so                   libndp.so.0.0.0                  libstdc++.so.6
libdl.so.2                      libnetfilter_conntrack.so.3      libstdc++.so.6.0.19
libdns-export.so.100            libnetfilter_conntrack.so.3.6.0  libsysfs.so.2
libdns-export.so.100.1.1        libnewt.so.0.52                  libsysfs.so.2.0.1
libdw-0.172.so                  libnewt.so.0.52.15               libsystemd-daemon.so.0
libdw.so.1                      libnfnetlink.so.0                libsystemd-daemon.so.0.0.12
libe2p.so.2                     libnfnetlink.so.0.2.0            libsystemd-id128.so.0
libe2p.so.2.3                   libnfsidmap                      libsystemd-id128.so.0.0.28
libedit.so.0                    libnfsidmap.so.0                 libsystemd-journal.so.0
libedit.so.0.0.42               libnfsidmap.so.0.3.0             libsystemd-journal.so.0.11.5
libelf-0.172.so                 libnl                            libsystemd-login.so.0
libelf.so.1                     libnl-3.so.200                   libsystemd-login.so.0.9.3
libestr.so.0                    libnl-3.so.200.23.0              libsystemd.so.0
libestr.so.0.0.0                libnl-cli-3.so.200               libsystemd.so.0.6.0
libevent-2.0.so.5               libnl-cli-3.so.200.23.0          libtasn1.so.6
libevent-2.0.so.5.1.9           libnl-genl-3.so.200              libtasn1.so.6.5.3
libevent_core-2.0.so.5          libnl-genl-3.so.200.23.0         libteamdctl.so.0
libevent_core-2.0.so.5.1.9      libnl-idiag-3.so.200             libteamdctl.so.0.1.5
libevent_extra-2.0.so.5         libnl-idiag-3.so.200.23.0        libteam.so.5
libevent_extra-2.0.so.5.1.9     libnl-nf-3.so.200                libteam.so.5.4.0
libevent_openssl-2.0.so.5       libnl-nf-3.so.200.23.0           libthread_db-1.0.so
libevent_openssl-2.0.so.5.1.9   libnl-route-3.so.200             libthread_db.so.1
libevent_pthreads-2.0.so.5      libnl-route-3.so.200.23.0        libtic.so.5
libevent_pthreads-2.0.so.5.1.9  libnl-xfrm-3.so.200              libtic.so.5.9
libexpat.so.1                   libnl-xfrm-3.so.200.23.0         libtinfo.so.5
libexpat.so.1.6.0               libnsl-2.17.so                   libtinfo.so.5.9
libext2fs.so.2                  libnsl.so.1                      libtirpc.so.1
libext2fs.so.2.4                libnspr4.so                      libtirpc.so.1.0.10
libfastjson.so.4                libnss3.so                       libudev.so.1
libfastjson.so.4.0.0            libnssckbi.so                    libudev.so.1.6.2
libffi.so.6                     libnss_compat-2.17.so            libunistring.so.0
libffi.so.6.0.1                 libnss_compat.so.2               libunistring.so.0.1.2
libfipscheck.so.1               libnss_db-2.17.so                libuser
libfipscheck.so.1.2.1           libnssdbm3.chk                   libuser.so.1
libform.so.5                    libnssdbm3.so                    libuser.so.1.5.0
libform.so.5.9                  libnss_db.so.2                   libustr-1.0.so.1
libformw.so.5                   libnss_dns-2.17.so               libustr-1.0.so.1.0.4
libformw.so.5.9                 libnss_dns.so.2                  libutempter.so.0
libfreebl3.chk                  libnss_files-2.17.so             libutempter.so.1.1.6
libfreebl3.so                   libnss_files.so.2                libutil-2.17.so
libfreeblpriv3.chk              libnss_hesiod-2.17.so            libutil.so.1
libfreeblpriv3.so               libnss_hesiod.so.2               libuuid.so.1
libfreetype.so.6                libnss_myhostname.so.2           libuuid.so.1.3.0
libfreetype.so.6.14.0           libnss_mymachines.so.2           libverto-libevent.so.1
libgcc_s-4.8.5-20150702.so.1    libnss_nis-2.17.so               libverto-libevent.so.1.0.0
libgcc_s.so.1                   libnss_nisplus-2.17.so           libverto.so.1
libgcrypt.so.11                 libnss_nisplus.so.2              libverto.so.1.0.0
libgcrypt.so.11.8.2             libnss_nis.so.2                  libwrap.so.0
libgdbm_compat.so.4             libnsspem.so                     libwrap.so.0.7.6
libgdbm_compat.so.4.0.0         libnsssysinit.so                 libxml2.so.2
libgdbm.so.4                    libnssutil3.so                   libxml2.so.2.9.1
libgdbm.so.4.0.0                libnuma.so.1                     libxtables.so.10
libGeoIP.so.1                   libomapi.so.0                    libxtables.so.10.0.0
libGeoIP.so.1.5.0               libomapi.so.0.0.0                libyaml-0.so.2
libGeoIPUpdate.so.0             libopcodes-2.27-34.base.el7.so   libyaml-0.so.2.0.4
libGeoIPUpdate.so.0.0.0         libp11-kit.so.0                  libz.so.1
libgettextlib-0.19.8.1.so       libp11-kit.so.0.3.0              libz.so.1.2.7
libgettextpo.so.0               libpamc.so.0                     lua
libgettextpo.so.0.5.4           libpamc.so.0.82.1                man-db
libgettextsrc-0.19.8.1.so       libpam_misc.so.0                 mysql
libgio-2.0.so.0                 libpam_misc.so.0.82.0            nss
libgio-2.0.so.0.5600.1          libpam.so.0                      openssl
libgirepository-1.0.so.1        libpam.so.0.83.1                 p11-kit-proxy.so
libgirepository-1.0.so.1.0.0    libpanel.so.5                    p11-kit-trust.so
libglib-2.0.so.0                libpanel.so.5.9                  pkcs11
libglib-2.0.so.0.5600.1         libpanelw.so.5                   pkgconfig
libgmodule-2.0.so.0             libpanelw.so.5.9                 pm-utils
libgmodule-2.0.so.0.5600.1      libparted-fs-resize.so           python2.7
libgmp.so.10                    libparted-fs-resize.so.0         rsyslog
libgmp.so.10.2.0                libparted-fs-resize.so.0.0.0     rtkaio
libgmpxx.so.4                   libparted.so.2                   sasl2
libgmpxx.so.4.4.0               libparted.so.2.0.0               security
libgobject-2.0.so.0             libpath_utils.so.1               setools
libgobject-2.0.so.0.5600.1      libpath_utils.so.1.0.1           sse2
libgomp.so.1                    libpci.so.3                      tc
libgomp.so.1.0.0                libpci.so.3.5.1                  tls
libgpg-error.so.0               libpcprofile.so                  X11
libgpg-error.so.0.10.0          libpcre16.so.0                   xtables

 


 

cd /mnt

 

-   디스크, ROM 등 마운트 할 깨 포인터가 되는 디렉터리

 

[root@DESKTOP-9IVP0T4 /]# cd /mnt
[root@DESKTOP-9IVP0T4 mnt]#
[root@DESKTOP-9IVP0T4 mnt]# ls
c  d  f  wsl

cd /opt

 

응용 프로그램 들의 설티를 위해 사용되는 디렉터리.

 

[root@DESKTOP-9IVP0T4 /]#
[root@DESKTOP-9IVP0T4 /]# cd /opt
[root@DESKTOP-9IVP0T4 opt]# ls

 

cd /proc

 

- 프로세스 상태 정도, 하드웨어 정보, 기타 시스템 정보가 들어있다.

 

[root@DESKTOP-9IVP0T4 /]# cd /proc
[root@DESKTOP-9IVP0T4 proc]# ls
1     buddyinfo  cpuinfo    execdomains  irq        kpagecgroup  misc          partitions   swaps        uptime
10    bus        crypto     filesystems  kallsyms   kpagecount   modules       sched_debug  sys          version
11    cgroups    devices    fs           kcore      kpageflags   mounts        schedstat    sysvipc      vmallocinfo
46    cmdline    diskstats  interrupts   keys       loadavg      mtrr          self         thread-self  vmstat
9     config.gz  dma        iomem        key-users  locks        net           softirqs     timer_list   zoneinfo
acpi  consoles   driver     ioports      kmsg       meminfo      pagetypeinfo  stat         tty
[root@DESKTOP-9IVP0T4 proc]#

cd /sbin

 

- System Binary 약자,

- root 가 사용하는 명령어의 집합.

 

[root@DESKTOP-9IVP0T4 /]# cd /sbin
[root@DESKTOP-9IVP0T4 sbin]# ls
accessdb              fsfreeze                   mkswap               selabel_digest
addgnupghome          fstrim                     modinfo              selabel_lookup
addpart               genhomedircon              modprobe             selabel_lookup_best_match
adduser               genhostid                  mount.drvfs          selabel_partial_match
agetty                genl                       mount.nfs            selinuxconlist
alternatives          genl-ctrl-list             mount.nfs4           selinuxdefcon
anacron               getcap                     mountstats           selinuxenabled
applygnupgdefaults    getenforce                 nameif               selinuxexeccon
arp                   getpcaps                   netreport            selinux_restorecon
arpd                  getsebool                  new-kernel-pkg       semanage
arping                glibc_post_upgrade.x86_64  newusers             semodule
audispd               groupadd                   nfsdcltrack          sendmail
auditctl              groupdel                   nfsidmap             sendmail.postfix
auditd                groupmems                  nfsiostat            service
augenrules            groupmod                   nfsstat              sestatus
aureport              grpck                      nl-class-add         setcap
ausearch              grpconv                    nl-class-delete      setenforce
authconfig            grpunconv                  nl-classid-lookup    setfiles
authconfig-tui        grub2-bios-setup           nl-class-list        setquota
autrace               grub2-get-kernel-settings  nl-cls-add           setsebool
avcstat               grub2-install              nl-cls-delete        sfdisk
badblocks             grub2-macbless             nl-cls-list          showmount
biosdecode            grub2-mkconfig             nl-link-list         shutdown
blkdeactivate         grub2-ofpathname           nl-pktloc-lookup     slattach
blkdiscard            grub2-probe                nl-qdisc-add         sln
blkid                 grub2-reboot               nl-qdisc-delete      sm-notify
blkmapd               grub2-rpm-sort             nl-qdisc-list        smtp-sink
blockdev              grub2-set-default          nologin              smtp-source
bridge                grub2-setpassword          nstat                ss
btrfs                 grub2-sparc64-setup        osd_login            sshd
btrfsck               grubby                     ownership            sshd-keygen
btrfs-convert         gssproxy                   packer               start-statd
btrfs-debug-tree      halt                       pam_console_apply    sulogin
btrfs-find-root       hardlink                   pam_tally2           sushell
btrfs-image           hwclock                    pam_timestamp_check  swaplabel
btrfs-map-logical     iconvconfig                parted               swapoff
btrfs-select-super    iconvconfig.x86_64         partprobe            swapon
btrfstune             ifcfg                      partx                switch_root
btrfs-zero-log        ifconfig                   pidof                sysctl
build-locale-archive  ifdown                     ping6                sys-unconfig
cacertdir_rehash      ifenslave                  pivot_root           tc
capsh                 ifstat                     plipconfig           tcpd
cbq                   ifup                       postalias            tcpdmatch
cfdisk                init                       postcat              telinit
chcpu                 insmod                     postconf             tracepath
chkconfig             install-info               postdrop             tracepath6
chpasswd              installkernel              postfix              try-from
chronyd               intel-microcode2ucode      postkick             tune2fs
chroot                ip                         postlock             tuned
clock                 ip6tables                  postlog              tuned-adm
clockdiff             ip6tables-restore          postmap              udevadm
consoletype           ip6tables-save             postmulti            umount.nfs
convertquota          ipmaddr                    postqueue            umount.nfs4
cracklib-check        iptables                   postsuper            unix_chkpwd
cracklib-format       iptables-restore           poweroff             unix_update
cracklib-packer       iptables-save              ppp-watch            update-alternatives
cracklib-unpacker     iptunnel                   pwck                 useradd
create-cracklib-dict  irqbalance                 pwconv               userdel
crond                 kexec                      pwhistory_helper     usermod
ctrlaltdel            key.dns_resolver           pwunconv             usernetctl
ctstat                killall5                   quot                 vigr
debugfs               kpartx                     quotacheck           vipw
delpart               lchage                     quotaoff             virt-what
depmod                ldattach                   quotaon              visudo
devlink               ldconfig                   quotastats           vmcore-dmesg
dhclient              lgroupadd                  rdisc                vpddecode
dhclient-script       lgroupdel                  readprofile          weak-modules
dmfilemapd            lgroupmod                  reboot               wipefs
dmidecode             lid                        repquota             wpa_cli
dmsetup               lnewusers                  request-key          wpa_passphrase
dmstats               lnstat                     resize2fs            wpa_supplicant
dracut                load_policy                resizepart           xfs_admin
dumpe2fs              logrotate                  restorecon           xfs_bmap
e2freefrag            logsave                    rmmod                xfs_copy
e2fsck                losetup                    route                xfs_db
e2image               lpasswd                    routef               xfs_estimate
e2label               lshw                       routel               xfs_freeze
e2undo                lsmod                      rpcbind              xfs_fsr
e4defrag              luseradd                   rpcdebug             xfs_growfs
eapol_test            luserdel                   rpc.gssd             xfs_info
edquota               lusermod                   rpc.idmapd           xfs_io
ether-wake            makedumpfile               rpcinfo              xfs_logprint
ethtool               matchpathcon               rpc.mountd           xfs_mdrestore
exportfs              mii-diag                   rpc.nfsd             xfs_metadump
faillock              mii-tool                   rpc.rquotad          xfs_mkfile
fdformat              mkdict                     rpc.statd            xfs_ncheck
fdisk                 mkdumprd                   rsyslogd             xfs_quota
filefrag              mke2fs                     rtacct               xfs_repair
findfs                mkfs                       rtcwake              xfs_rtcp
fixfiles              mkfs.btrfs                 rtmon                xqmstats
fsck                  mkfs.cramfs                rtpr                 xtables-multi
fsck.btrfs            mkfs.ext2                  rtstat               yum-complete-transaction
fsck.cramfs           mkfs.ext3                  runlevel             yumdb
fsck.ext2             mkfs.ext4                  runuser              zdump
fsck.ext3             mkfs.minix                 safe_finger          zic
fsck.ext4             mkfs.xfs                   sasldblistusers2     zramctl
fsck.minix            mkhomedir_helper           saslpasswd2
fsck.xfs              mklost+found               sefcontext_compile

cd /tmp

 

- 임시 저장 디렉토리

 

[root@DESKTOP-9IVP0T4 /]# cd /tmp
[root@DESKTOP-9IVP0T4 tmp]# ls
ks-script-hC0Oe8  ks-script-QQglrD  yum.log

 


cd /usr

 

시스템 운영에 필요한 명령, 응용 프로그램들이 위치하는 디렉터리

 

[root@DESKTOP-9IVP0T4 /]# cd /usr
[root@DESKTOP-9IVP0T4 usr]# ls
bin  etc  games  include  lib  lib64  libexec  local  sbin  share  src  tmp

cd /var

 

시스템 운영로그 파일과 스풀링과 같은 가변적인 데이터를 보관하는 디렉터리

메일 서버로 운영하는 경우 도착한 메일이 이 디레거틸 하위 디렉터리에 존재하게 된다.

 

[root@DESKTOP-9IVP0T4 /]#  cd /var
[root@DESKTOP-9IVP0T4 var]# ls
adm    crash  empty  gopher    lib    lock  mail  opt       run    tmp
cache  db     games  kerberos  local  log   nis   preserve  spool  yp

 


cd / media

 

- 이동식 장치를 마운트 하기 위해 제공되는 디렉토리

 

[root@DESKTOP-9IVP0T4 /]# cd /media
[root@DESKTOP-9IVP0T4 media]# ls

cd /srv

 

사이트에서 생성되는 데이터를 저장하는 디렉터리

 

[root@DESKTOP-9IVP0T4 /]# cd /srv
[root@DESKTOP-9IVP0T4 srv]# ls

cd /sys

 

가상 파일 시스템인 sysfs 에서 사용하는 디렉터리

usb 처럼 hot plug 디렉터리 정보를 가지고 있는 디렉터리 이다.

 

[root@DESKTOP-9IVP0T4 /]# cd /sys
[root@DESKTOP-9IVP0T4 sys]# ls
block  bus  class  dev  devices  firmware  fs  kernel  module

cd /run

 

부팅 이후에 동작중인 프로세스의 런타임 데이터를 저장하고 있는 디렉터리로 CentOS 부터 등장.

 

[root@DESKTOP-9IVP0T4 /]# cd /run
[root@DESKTOP-9IVP0T4 run]# ls
lock  mount  resolvconf  shm  user  WSL

 

728x90
반응형