- 博客(28)
- 资源 (1)
- 收藏
- 关注
原创 参数替换
${parameter-default}, ${parameter:-default}${parameter-default} -- 如果变量parameter没被声明, 那么就使用默认值.${parameter:-default} -- 如果变量parameter没被设置, 那么就使用默认值. ${parameter=default}, ${parameter:=defaul
2009-08-05 21:30:00 388
转载 mount命令详解
mount命令详解功能:加载指定的文件系统。语法:mount [-afFhnrvVw] [-L] [-o] [-t] [设备名] [加载点]用法说明:mount可将指定设备中指定的文件系统加载到Linux目录下(也就是装载点)。可将经常使用的设备写入文件/etc/fastab,以使系统在每次启动时自动加载。mount加载设备的信息记录在/etc/mtab文件中。使用umount命令卸载设备时,记录
2009-07-02 12:07:00 453
原创 Configuring the network Script
cat /etc/udev/rules.d/70-persistent-net.rules SUBSYSTEM=="net" - This tells Udev to ignore devices that are not network cards. ACTION=="add" - This tells Udev to ignore this rule for
2009-06-17 15:00:00 442
原创 locale -a
LC_ALL= locale languageLC_ALL= locale charmapLC_ALL= locale int_curr_symbolLC_ALL= locale int_prefix cat > /etc/profile # Begin /etc/profileexport LANG=_.# End /etc/profileEOF
2009-06-16 11:38:00 587
原创 /etc/inputrc
cat > /etc/inputrc # Begin /etc/inputrc# Modified by Chris Lynn # Allow the command prompt to wrap to the next lineset horizontal-scroll-mode Off# Enable 8bit inputset meta-flag Onset input-meta On# T
2009-06-14 18:46:00 547
原创 syslogd
The sysklogd script invokes the syslogd program with the -m 0 option. This option turns off the periodic timestamp mark that syslogd writes to the log files every 20 minutes by default. If you want to
2009-06-14 16:05:00 333
原创 case的用法
case "$1" in start) case "$UTC" in yes|true|1) echo "Setting system clock..." hwclock --hctosys --utc evaluate_retv
2009-06-10 10:28:00 313
转载 linuxclock
AUTHOR: Archaic archaic@remove-this.indy.rr.com>DATE: 2003-09-28LICENSE: GNU Free Documentation License http://www.gnu.org/licenses/fdl.txtSYNOPSIS: Explanation of timezones, UTC, and the TZ env
2009-06-10 10:13:00 481
转载 shell判断文件,目录是否存在或者具有权限
shell判断文件,目录是否存在或者具有权限 #!/bin/sh myPath="/var/log/httpd/" myFile="/var /log/httpd/access.log" #这里的-x 参数判断$myPath是否存在并且是否具有可执行权限 if [ ! -x "$myPath"]; then mkdir "$
2009-06-02 22:21:00 303
原创 linux run level
0: halt the computer1: single-user mode2: multi-user mode without networking3: multi-user mode with networking4: reserved for customization, otherwise does the same as 35: same as 4, it is usually use
2009-06-02 16:30:00 390
转载 LFS检查工具链检查
转自:http://www.linuxsir.org/bbs/showthread.php?t=244102 1.在做好 /tools -> /mnt/lfs/tools 下的第一遍工具链之后, chroot 之前, 检查 /tools 里是不是有宿主系统的影响,如果有,就是调整工具链失败,最好从调整工具链开始重来.checkpath.pass1代码:#!/bin/sh
2009-04-09 15:47:00 610
原创 ubuntu login session error
mkdtemp: private socket dir: Permission denied resolve: chmod 777 /tmp
2009-04-07 09:57:00 301
转载 windows 2003中IE无法更改安全级别
装了2003后上网一直提示安全问题,但在IE中的“Internet选项”对话框中选择“安全”标签,并把“该区域的安全级别”滚动条设置为“中”却一直不成功,始终处在高级别,不知怎样才能把它拉下来到中的位置。 解决办法:在添加删除程序--添加/删除windows组件中把" Internet Explorer 增强的安全配置"的勾去掉就可以了。 在VPS里边出现这
2009-02-26 18:11:00 830
转载 新职员上班后和老板的对话
转自http://topic.csdn.net/u/20081124/17/99a16811-89db-4ba4-82b7-d8f5fa85b50a.html 老板:万分欢迎,没有你我们的公司肯定大不一样! 职员:如果工作太累,搞不好我会辞职的。 老板:放心,我不会让这样的事情发生的! 职员:我双休日可以休息吗? 老板:当然了!这是底线! 职员:平
2009-02-21 14:40:00 388
转载 惠普前总裁孙振耀指点职业规划
http://topic.csdn.net/u/20081119/09/abe8c0a9-3033-40a8-9c26-61b7628f1ac5.html 我有个有趣的观察,外企公司多的是25-35岁的白领,40岁以上的员工很少,二三十岁的外企员工是意气风发的,但外企公司40岁附近的经理人是很尴尬的。我见过的40岁附近的外企经理人大多在一直跳槽,最后大多跳到民企,比方
2009-02-21 14:35:00 284
原创 LFS
辞去教书的工作到北京来,想换一个其他的工作。到了才知道找工作又多难:金融危机中企业天天裁员,到处都是有工作经验的人,这正是企业所需要的!金融危机下企业都变牛了。教书匠比木匠都难找工作!只好LFS---learn from scratch!!!!
2009-02-21 13:54:00 306
原创 const函数参数
const修饰参数为不可修改类文字量,常量和需要进行类型转换的参数只能传递给const的引,而不能传递给非const类型的引用参数 #include #include using namespace std;void print(const char &);int main(int argc, char *argv[]){ char a=a; int b=59
2007-10-08 18:44:00 567
转载 浅谈C中的malloc和free
浅谈C中的malloc和free 原帖及讨论:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=5&ID=82212在C语言的学习中,对内存管理这部分的知识掌握尤其重要!之前对C中的malloc()和free()两个函数的了解甚少,只知道大概该怎么用——就是malloc然后free就一切OK了。当然现在对这两个函数的体会也不见得多,不过对于本文章第三
2007-10-05 18:20:00 438
原创 对同一个time_T对象,gmtime()与localtime()产生相等的指针
#include #includeusing namespace std;int main (int argc, char *argv[]){ tm *ptm,*pltm; time_t tim_t; tim_t=time(NULL); ptm=gmtime(&tim_t); couttm_hourtm_mintm_sec pltm=localtime(&tim_t);c
2007-10-03 15:51:00 1478
原创 标准时间
摘自http://www.programfan.com/article/showarticle.asp?id=2798 摘要:本文从介绍基础概念入手,探讨了在C/C++中对日期和时间操作所用到的数据结构和函数,并对计时、时间的获取、时间的计算和显示格式等方面进行了阐述。本文还通过大量的实例向你展示了time.h头文件中声明的各种函数和数据结构的详细使用方法。关键字:UTC(世界标准时间)
2007-10-03 14:59:00 1667
转载 左值与右值
本文摘自:http://jiang5005.spaces.live.com/blog/cns!619F3DE8AB99988E!111.entry?action=post&wa=wsignin1.0 8月20日 C++中的左值和右值C++中的左值和右值1. 概念变量和文字常量都有存储区,并且有相关的类型,区别在于变量是可寻址的; 对于每个变量,都有2个值与
2007-10-03 12:10:00 407
原创 请空缓存
fflush(stdin);// 清空指定文件流缓冲区cin.ingore(streamsize_n=1,int_type_delim=traits_type::eof());cin.clear(); cin.sync(); cin.ignore(), cin.clear() -> C++cin.ignore() 是从当前位置忽略若干字符.cin.clear() 是清除当前缓冲区
2007-10-02 16:05:00 632
转载 标准C++的类型转换符:static_cast、dynamic_cast、reinterpret_cast和const_cast(转载)
标准C++的类型转换符:static_cast、dynamic_cast、reinterpret_cast和const_cast(转载)来源:CSDN 作者:新书城收集整理 发布时间:2006-8-2 C 风格(C-style)强制转型如下: (T) exdivssion // cast exdivssion to be of type T 函数风格(Functio
2007-10-01 15:21:00 366
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人