Linux practice engineer study Note 1: User Environment
Source: Internet
Author: User
Linux practice engineer Study Notes 1: user environment-general Linux technology-Linux technology and application information. The following is a detailed description. Original Author: junger
# Locale display system language environment parameters are saved in the/etc/sysconfig/i18n File
LANG
# Locale? A. view the Supported languages of the system.
# LANG = zh_CN.GB2312 enable the system to display data in Chinese
Kudzu is used to detect hardware
Services kudzu start re-Detects hardware, allowing the system to automatically identify new hardware
The hardware information is stored in the/etc/sysconfig/hwconf file.
Generated by kudzu
Modify the System Service Startup Script
Chkconfig kudzu? List checks the status of a service (including each level of 0 ~ 6 Status)
Setup Configuration System Service, a comprehensive Configuration Tool
Chkconfig? List | more check the status of all services in the system
All services are started through init
Some are started through the xinetd service, such as rsync.
Start rsync
Chkconfig rsync on
When the service xinetd restart is executed, the script/etc/init. d/xinetd is actually executed.
This script will check the configuration directory/etc/xinetd. d.
/Etc/rc0.d ~ The files in/etc/rc6.d are connected to specific services such as/etc/init. d/kudzu.
Starts with S and does not start with K.
/Etc/rc0.d ~ /Etc/rc6.d --- à rc. d/rc0.d ~ Rc6.d
Set the system service ntsysv command (same as setup)
How to disable selinux
/Usr/sbin/setenforce 0 close
/Usr/sbin/setenforce 1 Enabled
Or change it in/etc/selinux/config.
SELINUXTYPE = permissive disabled, or disabled
Use USB flash drives in Linux
# Ls/dev confirm that the device has been recognized
# Mount-o iocharset = gb2312/dev/sda1
Press ctrl + F to flip (or space) ctrl + B (roll up)
Ls-a: Show Hidden Files (Files starting)
File Permission rws s indicates the user who executes the program and temporarily has the same authority as the owner to execute the program.
The-r parameter of the cp-r source object indicates that the sub-directories are copied together.
Rm-I confirm deletion
-R: delete sub-Directories
-F force Delete
Du disk or directory space used
Df disk or directory available space
Cat> file1 is equivalent to the input text. After the input, ctrl + C or ctrl + D ends.
> A symbol is appended to the end of a file.> a symbol is used to create a new file.
Less: Scroll up and down File Content
Which searches for files in the directory set by $ PATH.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service