Linux directory structure
1.tree L 1/: structure of the display /
2./usr/bin: Application
3./etc/: configuration file
4./ETC/INIT.D Startup file
5./ Storage System Program
6./USR: Store User's program
7./home: home directory for ordinary users
8.uname-a ( print all information )-R ( kernel info )-M(view number of digits 64 or )
9./dev: device files directory, such as sound card, optical drive, disk
/dev/null: is a black hole that puts a black hole in any file that can be read clearly any file
Cat/dev/null>/oldboy/test.txt emptying Files
10./ETC/MOTD Add echo "Welcome" >/ETC/MOTD every time you log in, you'll be prompted.
11./lib library file that plays a connecting link between the kernel and the application
12./mnt Temporary mount point, temporary file System entry
use fdisk-l to see what hangs in the case
13./opt Optional, some enterprises will use it as the installation directory
14./proc demo kernel and process virtual files cat/proc/cpuinfo
15.grep proc/etc/fstab View proc boot is mounted on the CD-ROM
/sbin: The command that holds the root user
16.halt: shutdown reboot: restart shutdown-r now reboot
Shutdown-h now immediately shuts down the machine
17./TMP: Temp directory
18./USR: Directory of system repositories Unix software resource
19./usr/local/sbin: You can Create the command again sbin
VI Testoldboy
Echo Oldboy
: Wq
Testoldboy can be used under any path
20/var:cat/var/log/message System log files
Cat/var/log/secure system security Log
NIC configuration file Cat/etc/sysconfig/network-scripts/ifcfg-etho
Network card boot:,etc/init.d/network restart
off / restart ifdown etho ifup etho
/etc/resolve/ve.conf is responsible for parsing files
the corresponding client configuration such as 8.8.8.8
suggested changes DNS is changed in setup .
/etc/hosts: DNS equivalent to LAN
/etc/fstab: record a file on the file system to be mounted for booting
/etc/rc.local: The file that holds the Boot program command
RPM and yum installed programs to start the server
/etc/initab: Boot file
/ETC/INIT.D system service Command
/etc/profile: path to global variable configuration
/ETC/PROFILE.D command or file exists independently, can also room program
/etc/issue Record version information, security optimization
/ETC/MOTD: System Login Reminder
/etc/sudoers:sudo configuration file
/etc/syslog.conf: Log configuration file
/ast: login information (user)
/var/spool/cron/root: The path of a timed task
/var/spool/clientmqueue:sendmail file directory for temporary mail
/proc:cat/proc/verson ( tuning file )
/proc/loading Load Information
Linux directory Structure 1