Linux 文件 目录结构探索
2017-03-04 18:17 鸣仁 阅读(481) 评论(0) 编辑 收藏 举报测试机用的是亚马逊云免费的那款,Amazon Linux AMI EC。
里面的Comment 在图上没有办法看,不过都是从网络上收录的,可以自行搜索。
目录 / 下面的目录 bin cgroup etc lib local media opt root sbin srv tmp var boot dev home lib64 lost+found mnt proc run selinux sys usr /var [ec2-user@ip-*** var]$ ls account db games lib lock mail opt run tmp yp cache empty kerberos local log nis preserve spool www /bin arch date find lscgroup red tracepath awk dbus-cleanup-sockets findmnt lssubsys rm tracepath6 basename dbus-daemon gawk mkdir rmdir traceroute bash dbus-monitor grep mknod rnano traceroute6 cat dbus-send gtar mktemp rpm true cgclassify dbus-uuidgen gunzip more rvi umount cgcreate dd gzip mount rview uname cgdelete df hostname mountpoint sed unicode_start cgexec dmesg ipcalc mv setfont unicode_stop cgget dnsdomainname iptables-xml nano setserial unlink cgset domainname kbd_mode netstat sh usleep cgsnapshot dumpkeys keyctl nice sleep vi chgrp echo kill nisdomainname sort view chmod ed link ping stty ypdomainname chown egrep ln ping6 su zcat cp env loadkeys ps sync cpio ex login pwd tar cut false ls raw taskset dash fgrep lsblk readlink touch /etc [ec2-user@ip-*** bin]$ cd /etc [ec2-user@ip-*** etc]$ [ec2-user@ip-*** etc]$ ls acpi GREP_COLORS motd rpc adjtime groff motd.rpmsave rpm aliases group mtab rsyslog.conf aliases.db group- my.cnf rsyslog.d alternatives grub.conf nanorc rwtab anacrontab gshadow netconfig rwtab.d asound.conf gshadow- NetworkManager sasl2 at.deny gss networks screenrc audisp gssapi_mech.conf nfsmount.conf securetty audit host.conf nsswitch.conf security bash_completion.d hosts nsswitch.conf.rpmnew selinux bashrc hosts.allow ntp services blkid hosts.deny ntp.conf sestatus.conf cgconfig.conf httpd openldap shadow cgrules.conf idmapd.conf opt shadow- cgsnapshot_blacklist.conf image-id os-release shells chkconfig.d init pam.d skel cloud init.d passwd smrsh cron.d inittab passwd- ssh cron.daily inputrc php.d ssl cron.deny iproute2 php.ini statetab cron.hourly issue php-zts.d statetab.d cron.monthly issue.net pkcs11 sudo.conf crontab java pki sudoers cron.weekly jvm pm sudoers.d csh.cshrc jvm-commmon popt.d sudo-ldap.conf csh.login krb5.conf ppp sysconfig dbus-1 krb5.conf.d prelink.conf.d sysctl.conf default ld.so.cache printcap sysctl.d depmod.d ld.so.conf profile system-release dhcp ld.so.conf.d profile.d system-release-cpe DIR_COLORS libaudit.conf protocols terminfo DIR_COLORS.256color libreport rc tmpfiles.d DIR_COLORS.lightbgcolor libuser.conf rc0.d udev dracut.conf localtime rc1.d update-motd.d dracut.conf.d login.defs rc2.d vimrc dumpdates logrotate.conf rc3.d virc e2fsck.conf logrotate.d rc4.d wgetrc environment lvm rc5.d X11 ethers magic rc6.d xdg exports mail rc.d xinetd.d exports.d mailcap rc.local yum filesystems man_db.conf rc.sysinit yum.conf fonts maven request-key.conf yum.repos.d fstab mime.types request-key.d gcrypt mke2fs.conf resolv.conf gnupg modprobe.d rmt /boot [ec2-user@ip-*** etc]$ cd /boot [ec2-user@ip-*** boot]$ ls config-4.4.41-36.55.amzn1.x86_64 symvers-4.4.41-36.55.amzn1.x86_64.gz config-4.4.44-39.55.amzn1.x86_64 symvers-4.4.44-39.55.amzn1.x86_64.gz efi System.map-4.4.41-36.55.amzn1.x86_64 grub System.map-4.4.44-39.55.amzn1.x86_64 initramfs-4.4.41-36.55.amzn1.x86_64.img vmlinuz-4.4.41-36.55.amzn1.x86_64 initramfs-4.4.44-39.55.amzn1.x86_64.img vmlinuz-4.4.44-39.55.amzn1.x86_64 [ec2-user@ip-*** boot]$ /dev [ec2-user@ip-*** boot]$ cd /dev [ec2-user@ip-*** dev]$ ls autofs input ptmx tty12 tty26 tty4 tty53 ttyS0 vcsa2 block kmsg pts tty13 tty27 tty40 tty54 ttyS1 vcsa3 btrfs-control log random tty14 tty28 tty41 tty55 ttyS2 vcsa4 char loop-control root tty15 tty29 tty42 tty56 ttyS3 vcsa5 console mapper sda tty16 tty3 tty43 tty57 uhid vcsa6 core mcelog sda1 tty17 tty30 tty44 tty58 urandom vfio cpu mem shm tty18 tty31 tty45 tty59 vcs vga_arbiter cpu_dma_latency memory_bandwidth stderr tty19 tty32 tty46 tty6 vcs1 xen cuse net stdin tty2 tty33 tty47 tty60 vcs2 xvda disk network_latency stdout tty20 tty34 tty48 tty61 vcs3 xvda1 fb0 network_throughput tty tty21 tty35 tty49 tty62 vcs4 zero fd null tty0 tty22 tty36 tty5 tty63 vcs5 full port tty1 tty23 tty37 tty50 tty7 vcs6 fuse ppp tty10 tty24 tty38 tty51 tty8 vcsa hpet psaux tty11 tty25 tty39 tty52 tty9 vcsa1 /home [ec2-user@ip-*** home]$ ls ec2-user /usr [ec2-user@ip-*** usr]$ ls bin etc games include lib lib64 libexec local sbin share src tmp /usr/share/man [ec2-user@ip-*** usr]$ cd share [ec2-user@ip-*** share]$ ls aclocal dracut groff java-ext mime sounds alsa emacs grub java-utils mime-info systemtap anaconda empty gtk-doc javazi misc tabset applications file hwdata javazi-1.8 nano terminfo augeas firstboot i18n jvm omf themes authconfig fontconfig icons jvm-commmon p11-kit vim awk fonts idl keyutils perl5 X11 backgrounds games info licenses php xsessions bash-completion gcc-4.8.3 java locale pixmaps yum-cli cracklib gdb java-1.5.0 lua pkgconfig yum-plugins dbus-1 ghostscript java-1.6.0 magic pki zoneinfo desktop-directories glib-2.0 java-1.7.0 man plymouth zsh dict gnome java-1.8.0 maven-fragments ruby doc gnupg javadoc maven-poms screen [ec2-user@ip-*** share]$ cd man [ec2-user@ip-*** man]$ ls cs fr it man0p man1x man3 man4 man5x man7 man8x mann pt_BR sv zh_TW de hu ja man1 man2 man3p man4x man6 man7x man9 pl ru tr es id ko man1p man2x man3x man5 man6x man8 man9x pt sk zh_CN [ec2-user@ip-*** man]$ [ec2-user@ip-*** proc]$ ls 1 1405 2146 2570 5 consoles kallsyms mounts sysvipc 10 1417 2193 2573 617 cpuinfo kcore mtrr thread-self 11 1473 2214 2575 618 crypto keys net timer_list 12 1474 2236 2577 690 devices key-users pagetypeinfo timer_stats 129 15 2254 2579 7 diskstats kmsg partitions tty 130 1515 2275 2580 709 dma kpagecgroup sched_debug uptime 132 1600 2306 3 749 driver kpagecount schedstat version 133 1641 24250 32375 753 execdomains kpageflags scsi vmallocinfo 134 1802 2476 32578 8 fb latency_stats self vmstat 135 1825 2496 4 9 filesystems loadavg slabinfo xen 1353 1880 2505 4042 acpi fs locks softirqs zoneinfo 136 2 2517 4044 buddyinfo interrupts mdstat stat 138 20 2531 4045 bus iomem meminfo swaps 1401 2024 2564 4183 cgroups ioports misc sys 1402 21 2567 489 cmdline irq modules sysrq-trigger /tmp [ec2-user@ip-*** mnt]$ cd /tmp [ec2-user@ip-*** tmp]$ ls hsperfdata_root /lib [ec2-user@ip-*** tmp]$ cd /lib [ec2-user@ip-*** lib]$ ls firmware kbd modules terminfo udev