linux
文章平均质量分 53
troublelee
哈哈,我是个傻瓜
展开
-
linux看内存使用
linux看内存使用原创 2022-10-25 16:34:11 · 421 阅读 · 2 评论 -
tcpdump使用(转)
tcpdump主要选项类型host, net, port方向src, dst, src or dst, src and dst协议ip, tcp, udp, arp, rarp, ether, fddi逻辑and, or, not 或者 &&, ||, !选项-i指定网卡, -n显示ip, -A文本显示-c抓包数, -x/-...原创 2010-06-11 17:40:34 · 141 阅读 · 0 评论 -
spinlock中不允许休眠调度 转
http://blog.csdn.net/unbutun/archive/2010/07/15/5738313.aspx spinlock的使用,由于开始时不太了解,开发内核模块时,出了问题,调试了好多天,后来才发现,原来在lock的代码里,调用的内核api中,执行了schedule!!!!转发这篇文章以此来警醒我的无知 Linux系统提供的内核同步机制有很多种。 spi...原创 2011-06-14 22:55:13 · 441 阅读 · 0 评论 -
linux socket学习
1. unix sock中,unix_find_socket_byname中使用sock_hold是为了在连接和发送消息时,增加对对端sk的引用,避免对端sk忽然退出了 2. 加入hlist,intert里仅是 sock_hold 增加对sock的引用。另外就是基本功能:将节点增加到hlist的头 3. remove时不用list参数,是因为remove的动作很简单...原创 2011-06-12 23:47:28 · 182 阅读 · 0 评论 -
linux 操作
1.如何锁定用户:passwd -l username //lock the account如何对用户解除锁定:passwd -u username //unlock the account 2. sshi服务器端的/etc/ssh/sshd_config把PasswordAuthentication设成yes重启ssh服务...2011-01-10 16:21:08 · 105 阅读 · 0 评论 -
shell基础
shell基本命令:1. lsof 列表所有已打开的文件。这里的文件是广义的文件,在linux里,所有命令、进程都可以是文件。lsof -i:8080 使用8080端口的程序。要注意用户权限,一般用root来执行。 ls, mv, cp, rm等命令有参数长度限制,使用 xargs 来执行: ls | xargs rm 设置系统时间: date -s '' ; clo...原创 2010-12-07 13:54:16 · 77 阅读 · 0 评论 -
tcl/tk/expect(转)
Tcl pronounced "tickle", is a fairly simple and straight forward computer language similar to a shell language. Tcl stands for Tool Command Language.Tk is a ...原创 2010-10-09 13:58:40 · 245 阅读 · 0 评论 -
字符编码
unicode 家族:ucs-2,ucs-4对应 utf-16,utf-32ucs-2,ucs-4 指的每个字符对应的代码点,而utf-16,utf-32 则是这些代码点存储在计算机的格式,主要是分为高字节和低字节两种(big endian , little endian)。字符0xabcd,如果存储为 AB CD,则称为Big Endian; 如果存储为 CD AB,则称为...2009-11-27 08:51:04 · 116 阅读 · 0 评论 -
solaris学习记录
资料:http://wiki.developers.sun.com.cn/index.php/Opensolaris_chinese_faq Solaris 10 系统维护 1.当前的使用中切换Shell的话,方法很简单,可以在命令行中输入:#bash //切换至bash如果需要永久性的改变默认的shell,则需要修改/etc/passwd文件。打开passwd,...2009-03-23 16:23:01 · 84 阅读 · 0 评论 -
ubuntu虚拟机初装时需注意问题 2-字体设置和网卡设置
1.字体设置与美化(1)设置字体文件夹:/etc/fonts/fonts.conf, /usr/share/fonts /usr/share/X11/fonts /usr/local/share/fonts ~/.fonts在这里增加字体文件夹,一般放在用户主目录下较方便,如/home/****/.fonts,也可以增加文件夹,如/home/****/.font原创 2009-12-10 23:18:00 · 744 阅读 · 0 评论 -
ubuntu虚拟机初装时需注意问题
1.装时选择英语语言,把网线拔了,安装速度将提高5倍,只需10分钟。2.装vmware-tools时,一般使用默认,其中有一项是是否使用共享文件夹(vmic),默认是不使用,这项可以改为使用。3.安装vmware-tools之后的鼠标问题:修改配置文件 /etc/X11/xorg.conf 文件,找到并修改内容: Section "InputDevice" Identifier "Configur原创 2008-04-19 10:34:00 · 462 阅读 · 0 评论