Some directory explanations for LINUX

Partial directory resolution in linux

/dev/ Device directory
/etc/ Configuration files and service startup directories
/proc/ Display kernel and process information Virtual file system
/tmp Temporary file directory
/var Change directory is generally the directory of log files
/home/home directory
/usr User program and data help files and other directories
/bin and /sbin /usr/bin /usr/sbin user commands
/etc/profile system global variable configuration cascade
/etc/hosts
/etc/fstab record files to be mounted
/etc /rc.local //The file that stores the boot self-start command
/etc/init.d //The script that stores the system or the server starts in v mode
/etc/exports //The configuration file used by the system to set the NFS network file
/ etc/xinit.d //If the server is running in xinetd mode, the script should be placed in this directory
/etc/profile.d //A directory command or file that loads the system login program exists independently

When -bash-4.2$ appears, the
reason is that the two configuration files .bashrc and .bash_profile are lost. Enter the following commands on the command line to copy these two files to the root folder
cp /etc/skel/. bashrc /root/

cp /etc/skel/.bash_profile /root/

cat /etc/redhat-release //View version

ps -ef | grep corresponding file name: view process

The general running program is placed under sbin to verify whether the installation is successful, and it is time to go to the sbin directory in the file to view

xargs is used to hand over the things displayed by find/ls to later processing

man View command set configuration file

mv is used to rename the file

touch creates a file or modifies the file timestamp

{} with echo print sequence

sed -i (insert) -n (cancel the default output) [s#content for replacement#replacement content#g]/find file content/[p print to page][d delete found file content] file path
/ dev/ Device directory
/etc/ Configuration files and service startup directories
/proc/ Display kernel and process information Virtual file system
/tmp Temporary file directory
/var Change directories are generally log file directories
/home/home directory
/usr User programs and Directories such as data help files
/bin and /sbin /usr/bin /usr/sbin User commands
/etc/profile System global variable configuration cascading
/etc/hosts
/etc/fstab Record files to be mounted
/etc/ rc.local //The file that stores the boot self-start command
/etc/init.d //The script that stores the system or the server starts in v mode
/etc/exports //The configuration file
/etc for the system to set the NFS network file /xinit.d //If the server is running in xinetd mode, the script should be placed in this directory
/etc/profile.d //A directory command or file that loads the system login program exists independently
/etc/rc.local // Stores the files that start automatically at boot (software compiled and installed through the source program)
chkconfig //It is generally used to manage the service installed by yum/rpm

write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325565324&siteId=291194637