- 博客(6)
- 资源 (3)
- 收藏
- 关注
原创 Ping to Determine MTU along a route
IP header at least 20 bytesICMP header 8 bytesIn Ethernet, the largest MTU is 1500, so we can at most try 1472.Unix commandping dest_ip -s 1472 -M do-M: MTU discovery choice, valid choice: do (don't fragment bit will be 1), dont, want...Change MTU
2010-11-27 21:45:00 1170
原创 脚本中export不起作用的原因分析
<br />#!bin/bashexport PATH=$PATH:/usr/lib/java/jreexport PATH=$PATH:/usr/lib/java/bin<br />---path<br />结果发现直接运行./ path 没起到效果, 后来发现原来机制是这样: 类似于局部变量,从当前shell中运行脚本path,是先创建一个子进程shell 然后运行脚本程序,然后子进程退出,返回父进程shell,因此子shell中对环境变量的改变并不影响父进程看到的环境变量.<br /> <br
2010-11-27 12:33:00 11339
原创 useful links for Unix and Linux beginners
how to use quote?basic bash programming
2010-11-26 12:38:00 777
原创 declare variables inside switch
<br />when declare varibles or objects inside a switch statement, brackets are needed.<br />example<br />switch(a){ case 1: { char* filename="data.txt"; break; } case 2: {...} default:break;}<br />otherwise you'll get "crosses initi
2010-11-25 22:39:00 661
原创 Linux commands note
copy local file to remote serverscp filename user@server:new_filenamescp -r dir user@server:new_dirit will make one connection from local to remotecopy remote file to localscp user@server:dir/file_name local_dir/new_filenamedefault dir is current worki
2010-11-09 00:20:00 631
原创 Eclipse, Dev C++不能使用count做为全局变量
<br />偶尔使用eclipse run C++, 学生写的一个简单的程序,编译器居然不认识全局变量count, 试了下DEV也不行, 只有Visual Studio可以.<br />原来Eclipse中是不能用count作为全局变量的,好像是关键字.
2010-11-04 23:35:00 1884
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人