0 root 1-499 Virtual user 500-65535 Normal userRoot:x:0:0:root:/root:/bin/bash/etc/passwd/etc/shadowUseradd Userdelpasswd chage usermod id su sudo visudoPwck FingerRm-f. *# ll /etc/skel/ -al to the user's home directoryCp-a. bash*/home/xx/# chown Xx:
The Linux character encoding defaults to UTF-8, which can be set to GBK if garbled1. Manually change the profile command:VI /etc/profileYou can also modify the/etc/sysconfig/i18n file, such aslang="en_US. UTF-8"LANG="zh_cn.gb18030 "There is another
Common Command Display Reference to the character set of the current environmentMethod One: cat/etc/sysconfig/i18n "SSH client tools best also utf-8, stay consistent" method two: Echo $LANGSet the character set for the current environmentMethod
This script is used to configure new Linux instances, such as disabling iptable, SElinux, and ipv6, optimizing the system kernel, and stopping unnecessary system services. This script is especially suitable for a large number of newly installed
The basic idea of Linux: 1. everything is a file. 2. it consists of a single program with a short cut purpose. 3. Combine the applet to complete the big task. 4. try to interact with users as little as possible. 5. Save the configuration information
Garbled characters in LinuxModify the/etc/sysconfig/i18n file, as shown in figureLANG = "en_US.UTF-8", xwindow displays the English interface,LANG = "zh_CN.GB18030", xwindow displays the Chinese interface.Another method is cp/etc/sysconfig/i18n $
How can we solve this problem if various Chinese characters are garbled in CentOS. This article describes common Garbled text and solutions.
1. The CentOS system accesses xxx.cn and Chinese garbled characters are foundSo we used the previous method:#
Author: stefsolu original address: http://hi.baidu.com/stefsolu/blog/item/4fe5a43280cfefa45fdf0ee4.html
Linux
Installation of the lower Character Set
Currently, encoding conversion is frequently encountered during project development.LinuxGenerally,
Centos6.5 modify the language of a common user, centos6.5 common userWhen installing centos, select the Chinese environment and create two new users, one isRootUser, one isTestUser. However, after the installation is complete, I want to modify the
LINUX Initialization Script and linux Initialization Script#! /Bin/bash###### The system first start configuretion #### for install#### Copy right by donglei ###############1. Configure sysctlMv/etc/sysctl. conf/etc/sysctl. bakEcho "#################
For Some reasons, the system installed without Chinese support, resulting in the subsequent application of Chinese block garbled phenomenon, the solution is very simple, of course, is not re-installed, only the following three steps can be done. 1,
There is a language option in the settings, you can select to modify the language, or modify the configuration file to edit the/etc/sysconfig/i18n file. the modification content is as follows: LANG = & quot; zh_CN.GB18030 & quot; SUPPORTED = & quot;
This script is used to configure new Linux instances, such as disabling iptable, SElinux, and ipv6, optimizing the system kernel, and stopping unnecessary system services. This script is especially suitable for a large number of newly installed
A new, minimized package installed CentOS 6.3 system, as a local Web server use, is now recording the entire process configuration NetEase 163 of the Yum Source1. download the repo file:Http://mirrors.163.com/.help/CentOS6-Base-163.repo2. back up
Solution # Back up the configuration file cp/etc/sysconfig/i18n/etc/sysconfig/i18n. bak # modify the configuration file vi/etc/sysconfig/i18n # change the content to LANG = "zh_CN.GB18030" LANGUAGE = "zh_CN.GB18030: zh_CN" SUPPORTED = "zh_CN.GB18030:
We usually need to configure and optimize many parameters when installing the new Linux system, while the installation of the server operating system is usually minimized, which is also the most stable in the production environment.
This script is
1. Configure the Networkcat/etc/resolv.conf//View DNSNETSTAT-RN//View GatewayVi/etc/sysconfig/network-scripts/ifcfg-eth0//Change network configurationonboot= "Yes"Bootproto=staticAdd in this directoryIpaddr= "IP"netmask= "Subnets"gateway=
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.