随笔分类 -  linux

摘要:1、PATH=$PATH:/testdir1这种设置方法,只对当前的shell生效,对子shell不生效2、export PATH=$PATH:/testdir2这种设置方法,只对当前的shell生效,对子shell不生效3、修改/etc/profile 加上导入变量语句: export aa=bb... 阅读全文
posted @ 2012-09-20 00:04 brookin 阅读(1695) 评论(0) 推荐(0)
摘要:Xshell. Shortcut key DescriptionAlt + N Same as New on the File menu.Alt + O Same as Open on the File menu.Alt + C Same as Close on the File menu.Alt + Enter Changes to Full Screen view.Alt + D Moves the keyboard focus to the Address bar.Alt + Right Same as Next on the Window menu.Alt + Left Same as 阅读全文
posted @ 2012-09-12 11:17 brookin 阅读(973) 评论(0) 推荐(0)
摘要:ping mirrorlist.centos.org 发现ping不通。怀疑是dns设置问题修改dns配置:vi /etc/resolv.conf直接指定一个dns服务器即可echo "nameserver 8.8.8.8" >> /etc/resolv.conf搞定,ping www.baidu.com 顺畅了,yum可以用了!备注:删除 /etc/resolv.conf 里面有问题的dns服务器。文件/etc/resolv.conf 配置DNS 客户,它包含了主机的域名搜索顺序和DNS服务器的地址,每一行应包含一个关键字和一个或多个的由空格隔开的参数。下面是 阅读全文
posted @ 2012-09-05 14:44 brookin 阅读(1447) 评论(1) 推荐(0)