linux
msephd
这个作者很懒,什么都没留下…
展开
-
Linux下命令行中的复制和粘贴
inux下在控制台使用命令行是很多的,在命令行里,可以用鼠标左键复制,按着左键开始选你想要复制的内容(背景是黑的,字是白的,灰色的框就是你选中的内容),然后再把左键松开,放到其他地方,点一下右键,松开,这样就粘贴好了。这个有时候是非常有用的,一开始可能不习惯,真的习惯了之后,到了别的地方也希望是这个样子的。另外,这个是复制和粘贴是可以跨工作区,linux默认的都有4个工作区。之前装LFS的时候转载 2012-02-20 12:28:31 · 45823 阅读 · 6 评论 -
The flag analysis of struct termios
struct termios { tcflag_t c_iflag; /*input mode flags */ tcflag_t c_oflag; /*output mode flags */ tcflag_tc_cflag; /*control mode flags */原创 2012-08-13 11:00:02 · 527 阅读 · 0 评论 -
extern usage of C language
C支持4种存储类型说明符: extern static register auto 这些说明符告诉编译程序应该怎样保存有关变量。存储类型说明符放在其修饰的变量生明之前,其一般形式是: ① storage_specifiertype var_name;*注* C89和C99均规定,typedef从造句方便上讲是存储类型说明符,而从通常的术语上讲不是存储类型说明符。原创 2012-08-13 11:08:01 · 1164 阅读 · 0 评论 -
The Detailed explanation of __initdata macro in linux kernel
The __init and __exit declarations are special kernel macrosdesigned to tell the kernel to flag these functions for special handling incases where they are compiled in statically rather than included转载 2012-08-13 11:05:45 · 710 阅读 · 0 评论 -
How to close firewall in Fedora
valid atfer restart open: chkconfig iptables on close: chkconfig iptables off or /sbin/chkconfig --level 2345 iptables off2) valid immediately and invalide after restart by service op转载 2012-06-28 17:08:23 · 945 阅读 · 0 评论 -
linux shell command usage
1) 在linux下,如何比较两个目录下的文件(目录比较命令) diff -r dir1 dir2 2)source命令的作用分类: bash 2006-04-21 15:32 6234人阅读 评论(2) 收藏 举报source命令的作用就是用来执行一个脚本,那么:source a.sh 同直接执行 ./a.sh 有什么不同呢,比如你在一个脚本里export原创 2012-05-24 16:26:52 · 4288 阅读 · 0 评论 -
How to uncompress files with suffix tar.xz
$xz -d ***.tar.xz$tar -xvf ***.tar转载 2012-03-22 17:22:39 · 468 阅读 · 0 评论 -
The distinct interpretation of the $(),${} between make and shell
1) In make $() = ${} To substitute a variable's value, write a dolar sign followed by the name of the variable in parentheses or braces: either '$(foo)' or '${foo}' is a valid reference原创 2012-03-30 11:14:19 · 527 阅读 · 0 评论 -
Linux系统下Shell命令行快捷键实用技巧
[摘要] 下文具体介绍了Linux系统下Shell命令行快捷键实用技巧. [关键字] Linux Shell 快捷键 实用技巧 # Ctrl + A - Go to the beginning of the line you are currently typing on # Ctrl + E - Go to the end of the lin转载 2012-03-28 15:09:09 · 437 阅读 · 0 评论 -
diff 命令输出格式说明
diff 的输出格式:change-command---> to-file-line> to-file-line…diff 命令的格式的使用方式如下:diff from-file to-fille如果按照输出的 change-command 去修改 from-file 则可以得到和 to-file 相同的档案内容lar exmaple: 8a转载 2012-03-27 13:12:12 · 2562 阅读 · 0 评论 -
The Detailed explanation of __setup macro in linux kernel
内核组件用__setup宏来注册关键字及相关联的处理函数,__setup宏在include/linux/init.h中定义,其原型如下:__setup(string,function_handler)#define __setup(str, fn) \ __setup_param(str, fn, fn, 0)转载 2012-08-13 11:03:37 · 898 阅读 · 0 评论