zoukankan      html  css  js  c++  java
  • Linux---man中文配置

    一、配置环境:


      1)软件包: man-pages-zh_CN-1.5.tar.gz
      2)下载地址:http://down1.chinaunix.net/distfiles/man-pages-zh_CN-1.5.tar.gz  


    二、汉化前

    [root@te]# man ls 
    LS(1)      User Commands         LS(1)   NAME 
                 ls - list directory contents  
    SYNOPSIS 
                 ls [OPTION]... [FILE]...  
    DESCRIPTION 
                 List    information    about    the FILEs (the current directory by default).    Sort entries alphabetically if none of               -cftuvSUX nor --sort.  
                 Mandatory arguments to long options are mandatory for short options too.  
                 -a, --all 
                                do not ignore entries starting with .  
                 -A, --almost-all 
                                do not list implied . and .. 

    三、汉化步骤:

      1、安装之前,运行locale命令来查看自己的语言环境是什么,主要有影响的是LC_ALL,LC_CTYPE和LANG变量的值。命令如下:

    [root@localhost ~]# locale
    LANG=zh_CN.UTF-8
    LC_CTYPE="zh_CN.UTF-8"
    LC_NUMERIC="zh_CN.UTF-8"
    LC_TIME="zh_CN.UTF-8"
    LC_COLLATE="zh_CN.UTF-8"
    LC_MONETARY="zh_CN.UTF-8"
    LC_MESSAGES="zh_CN.UTF-8"
    LC_PAPER="zh_CN.UTF-8"
    LC_NAME="zh_CN.UTF-8"
    LC_ADDRESS="zh_CN.UTF-8"
    LC_TELEPHONE="zh_CN.UTF-8"
    LC_MEASUREMENT="zh_CN.UTF-8"
    LC_IDENTIFICATION="zh_CN.UTF-8"
    LC_ALL=


      1、下载汉化版本:wget http://down1.chinaunix.net/distfiles/man-pages-zh_CN-1.5.tar.gz 

      2、解压:tar zxvf man-pages-zh_CN-1.5.tar.gz 

      3、执行命令:make u8 && make install-u8 (如果语言环境是zh_CN.UTF-8,可以运行make u8 && make install-u8;如果语言环境是GB2312,GBK或者GB18030,可以运行make gb && make install-gb;这里笔者的应用环境是zh_CN.UTF-8,运行make u8 && make install-u8即可汉化man手册页)
      4、执行命令:man man,验收成果

  • 相关阅读:
    排序算法(I)冒泡排序
    C#常用类string
    HashMap----工作原理
    Java计算字符串中字母出现的次数
    数据库优化
    线程和进程的区别(详细)
    SpringMVC工作原理
    jsp运行原理及运行过程
    一个公告
    SR
  • 原文地址:https://www.cnblogs.com/tianzhiyi/p/5282916.html
Copyright © 2011-2022 走看看