随笔分类 - Linux
摘要:iconv 是 Linux 系统自带的用于转换文件编码的命令行工具。
阅读全文
摘要:安装yum仓库
以下以CentOS6为例,其他类似 安装Subversion 检测是否安装成功 参考 "How to Install Subversion 1.8.13 (SVN Client) on CentOS/RHEL 7/6/5 "
阅读全文
摘要:安装&配置 bash
wget http://memcached.org/latest O memcached.tar.gz
tar zxvf memcached.tar.gz
cd memcached
./configure prefix=/usr/local/memcached
make &...
阅读全文
摘要:1. 切换到用户主目录 2. 编辑或新建.bash_profile文件 3. 添加别名 命令别名设置语法: alias [别名]='[指令名称]' 注意:等号两边均无空格,指令名称中如有空格,需用引号包裹 例如: alias ll='ls -Alh' 4. 重载该配置文件 5. 查看当前所有别名设置
阅读全文
摘要:CommandActionNotesvim file +54open file and go to line 54any : command can be run using + on command linevim -O file1 file2open file1 and file2 side b...
阅读全文
摘要:Linux命令行技巧命令描述•apropos whatis显示和word相关的命令。 参见线程安全•man-t man | ps2pdf - > man.pdf生成一个PDF格式的帮助文件which command显示命令的完整路径名time command计算命令运行的时间•time cat开始计...
阅读全文
摘要:在Linux中有硬件时钟与系统时钟两种时钟。硬件时钟是指主机板上的时钟设备,也就是通常可在BIOS画面设定的时钟。系统时钟则是指kernel中的时钟。所有Linux相关指令与函数都是读取系统时钟的设定。因为存在两种不同的时钟,那么它们之间就会存在差异。当Linux启动时,系统时钟会去读取硬件时钟的设
阅读全文
摘要:Linux下用SVN进行更新等操作时,总是提示输入用户名和密码,很不方便。因此搜了下解决办法,总结如下:打开SVN配置文件:vim /home//.subversion/config找到如下代码:### Set store-passwords to 'no' to avoid storing passwords in the### auth/ area of your config directory. It defaults to 'yes',### but Subversion will never save your password to disk in
阅读全文
摘要:平时在安装或更新CentOS软件时,yum方式是最简单方便的,而系统默认到yum更新源地址不稳定,所以需要对更新源地址进行修改,国内一般用163或OSChina的比较快。yum更新源配置文件:/etc/yum.repos.d/CentOS-Base.repo1. 在修改前先备份该文件cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak2. 修改更新源配置文件(CentOS6地址,其他版本类似)vim打开配置文件:vim /etc/yum.repos.d/CentOS-Base.repo复制以下内容粘
阅读全文