
linux
ningguixin
喜欢游泳嘿嘿
展开
-
解决redhat9 【tab】键无法自动提示
即 在 .bash_profile or etc/profile(所有用户有效) 里加if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi原创 2012-07-09 10:36:24 · 772 阅读 · 0 评论 -
Linux清除正在写的文件内容(比如nohup.out)
cp /dev/null nohup.out 清理正在写入的文件不用停止应用。原创 2012-07-12 11:23:07 · 3892 阅读 · 0 评论 -
linux环境变量
.bash_profile和.bashrc的什么区别及启动过程 .bash_profile和.bashrc的什么区别 /etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设转载 2012-08-05 00:03:13 · 625 阅读 · 0 评论 -
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such fi
[root@web-server php]# /etc/init.d/httpd restartshell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory该错误表示 getcwd 命令无法定位到当前工作目录。一般来说是因原创 2012-08-06 10:35:09 · 14510 阅读 · 0 评论 -
ubuntu 设置静态ip
可以使用ifconfig eth0 inet up 192.168.0.1 这样来配置不过重启后就会自动消除的固定的话就在/etc/network/inteface文件里面配置allow-hotplug eth0 #我在我虚拟机是添了这行的auto eth0iface eth0 inet static address 192.168.0.32netmask 192xxx原创 2012-07-30 15:32:23 · 589 阅读 · 0 评论 -
AIX的tar错误:0511-194 Reached end-of-file before expected
经过查看,发现系统限制了单个文件的大小: 输入"ulimit -f"命令检查当前文件大小限制,可通过改 /etc/security/limits 文件中的以下行来设置为无限制: default: fsize = -1 为使 /etc/security/limits 文件的更改生效,用户必须注销当前登录会话并重新登录. 另外:无论 ulimit 设置原创 2012-09-06 16:00:29 · 3534 阅读 · 0 评论 -
linux 常用命令(一直更新)
1.查看cpu状态:uptime 、 top 、sar 2 5、 要用putty工具查看 topas2.创建用户组和用户:groupadd "所属用户组"useradd -g "所属用户组(一般为root)"原创 2012-11-29 13:57:12 · 457 阅读 · 0 评论 -
linux之sed用法
sed是一个很好的文件处理工具,本身是一个管道命令,主要是以行为单位进行处理,可以将数据行进行替换、删除、新增、选取等特定工作,下面先了解一下sed的用法sed命令行格式为: sed [-nefri] ‘command’ 输入文本 常用选项: -n∶使用安静(silent)模式。在一般 sed 的用法中,所有来自 STDIN的资料一般都会转载 2013-11-16 09:20:09 · 581 阅读 · 0 评论 -
解决ntp的错误no server suitable for synchronization found
解决ntp的错误 no server suitable for synchronization found当用ntpdate -d 来查询时会发现导致 no server suitable for synchronization found 的错误的信息有以下2个:错误1.Server dropped: Strata too high在ntp客户端运行ntpdate s转载 2014-11-06 10:00:10 · 11029 阅读 · 1 评论