Linux user configuration file

In Linux (and general UNIX), there are countless "user" program. The most common type of user configuration file is /etc/lynx.cfg. This is a well-known text browser lynx profile. Through this document, you can define a proxy server to use the character set and so on. The following code sample shows a portion of lynx.cfg file, modify this code can change the Linux system proxy settings. By default, these settings apply to all users in their shell in the run lynx, unless a user by specifying --cfg = "mylynx.cfg" reset the default configuration file.

/etc/lynx.cfg proxy server settings

.h1 proxy

.h2 HTTP_PROXY

.h2 HTTPS_PROXY

.h2 FTP_PROXY

.h2 GOPHER_PROXY

.h2 NEWS_PROXY

.h2 NNTP_PROXY

# Lynx version 2.2 and beyond supports the use of proxy servers that can act as

# firewall gateways and caching servers. They are preferable to the older

# gateway servers. Each protocol used by Lynx can be mapped separately using

# PROTOCOL_proxy environment variables (see Lynx Users Guide). If you have

# not set them externally, you can set them at run time via this configuration file.

# They will not override external settings. The no_proxy variable can be used

# to inhibit proxying to selected regions of the Web (see below). Note that on

# VMS these proxy variables are set as process logicals rather than symbols, to

# preserve lowercasing, and will outlive the Lynx image.

#

.ex 15

http_proxy:http://proxy3.in.ibm.com:80/

ftp_proxy:http://proxy3.in.ibm.com:80/

#http_proxy:http://penguin.in.ibm.com:8080

#ftp_proxy:http://penguin.in.ibm.com:8080/

.h2 NO_PROXY

# The no_proxy variable can be a comma-separated list of strings defining

# no-proxy zones in the DNS domain name space.  If a tail substring of the

# domain-path for a host matches one of these strings, transactions with that

# node will not be proxied.

.ex

no_proxy:demiurge.in.ibm.com, demiurge

 

Change profile

When you change the configuration file, if the program is not controlled by the system administrator or the kernel, it is necessary to ensure that restarted the program using that configuration. Ordinary users usually do not start or stop system and permissions / or daemon.

Kernel

更改内核中的配置文件会立即影响到系统。例如,更改 passwd 文件以增加用户将立即使该用户变为可用。而且任何 Linux 系统的 /proc/sys 目录中都有一些内核可调参数。只有超级用户可以得到对所有这些文件的写访问权力;其它用户只有只读访问权力。此目录中文件的分类的方式和 Linux 内核源代码的分类方式一样。此目录中的每个文件都代表一个内核数据结构,这些数据结构可以被动态地修改,从而改变系统性能。

注意:在更改其中任何文件的任何值之前,您应该确保自己全面了解该文件,以避免对系统造成不可修复的损害。

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11109386.html