码迷,mamicode.com
首页 > 系统相关
linux 中文件的操作
1.打开文件 open; 格式:int open(const char * pathname, int flags,mode_t mode); 例:创建文件 fd = open("test.txt", O_CREATE|0777); if(fd == -1){ ...
分类:系统相关   时间:2015-01-03 22:19:08    阅读次数:223
Linux 正则表达式小入门
正则表达式 入门...
分类:系统相关   时间:2015-01-03 21:06:15    阅读次数:204
Eclipse sdk manager无法下载
1.上图SDK Manager 的 Tools ->Options打开SDK Manager的Settings,     选中“Force https://… sources to be fetched using http://…”,     强制使用http协议。 2.改hosts文件。     Windows在C:\WINDOWS\system32\drivers\etc目录下,...
分类:系统相关   时间:2015-01-03 21:06:00    阅读次数:171
linux包的相关命令
apt-cache search package 搜索包 apt-cache show package 获取包的相关信息,如说明、大小、版本等 sudo apt-get install package 安装包 sudo apt-get install package - - reinstal...
分类:系统相关   时间:2015-01-03 19:50:25    阅读次数:218
Ubuntu14.04使用samba服务器共享Home目录
这里记录一下,以Ubuntu 14.04为例。 1.安装samba服务器。 sudo apt-get install samba 2.修改配置文件 sudo vim /etc/samba/smb.conf 然后找到home目录共享的部分,大概是190-214行,将前面的注释去掉,如下: # Un-c...
分类:系统相关   时间:2015-01-03 19:49:00    阅读次数:253
ubuntu下导入kali源
Kali-Linux之前的渗透神器BackTrack是基于Ubuntu的,界面比较友好,字体渲染看起来也比较舒服(也可能是本人用惯了 Ubuntu的缘故)。后来官方终止BackTrack,开发Kali-Linux来替代BackTrack,功能更强大。Kali-Linux同 Ubuntu一样,基于De...
分类:系统相关   时间:2015-01-03 19:49:45    阅读次数:524
如何保持SSH连接的linux服务器不断线
windows系统 使用SecureCRT连接远程服务器,在会话选项 -> 终端设置中勾选“发送协议 NO-OP”。 使用putty连接远程服务器,找到Connection -> Seconds between keepalives ( 0 to turn off ), 默认为0,改为60。...
分类:系统相关   时间:2015-01-03 18:42:57    阅读次数:1465
进程退出
系统调用: exit_group exit  exit_group 调用do_group_exit  终止整个线程组 exit 终止某一个线程 wait 调用: do_wait -》do_wait_thread-》wait_consider_task-》wait_task_zombie-》release_task...
分类:系统相关   时间:2015-01-03 18:41:01    阅读次数:262
linux的find指令详解。
引用:http://os.51cto.com/art/200908/141411.htmhttp://www.oschina.net/translate/15-practical-linux-find-command-exampleshttp://www.oschina.net/translate/...
分类:系统相关   时间:2015-01-03 18:37:17    阅读次数:216
用Vs2013+VELT进行Linux开发:Hello World
快乐虾http://blog.csdn.net/lights_joy/欢迎转载,但请保留作者信息本文适用于vs2013 + Visual EmbedLinux Tools 0.1.11.1    什么是VELTVELT的全称是Visual EmbedLinuxTools,它是一个与visual gdb类似的visual studio插件,用以辅助完成Linux开发。利用这个插件,将可以在visua...
分类:系统相关   时间:2015-01-03 17:27:07    阅读次数:295
Axure 7.0 mac Yosemite 不能打开的问题
使用下面这个新版就OK了,  下载地址:http://cdn1.axure.com/AxureRP-Pro-Setup-RC.dmg 注册码 我也是在网上找的。 Axure7用户名: aaa Axure7密钥:2GQrt5XHYY7SBK/4b22Gm4Dh8alaR0/0k3gEN5h7FkVPIn8oG3uphlOeytIajxGU...
分类:系统相关   时间:2015-01-03 17:24:06    阅读次数:270
Linux IPC机制:消息队列示例
程序msg1.c用于接收消息 #include #include #include #include #include #include struct my_msg_st { long int my_msg_type; char some_text[BUFSIZ]; }; int main() { int running = 1; int msg...
分类:系统相关   时间:2015-01-03 17:23:46    阅读次数:262
linux 计算器 bc
bc计算器是linux自带的计算器,方便好用...
分类:系统相关   时间:2015-01-03 17:24:52    阅读次数:340
《Linux Shell脚本攻略》 笔记 第一章:Shell起步基础
《Linux Shell脚本攻略》 笔记 第一章:Shell起步基础 1、变量:在bash中,每一个变量的值都是字符串。无论你给变量赋值时,有没有使用引号,值都会以字符串的形式存储。 2、var=value; //赋值操作 var = value; //相等操作 3、获取字符串的长度 [ycy@localhost ~]$ var=yang [ycy@localhost ~...
分类:系统相关   时间:2015-01-03 17:21:47    阅读次数:215
《Linux Shell脚本攻略》 笔记 第二章:常用命令
《Linux Shell脚本攻略》 笔记 第二章:常用命令 1、cat      cat -s //多个空白行压缩成一个       cat *.txt | tr -s '\n'   //移除空白行      cat -n //加行号 2、find 沿着文件层次结构向下遍历,匹配符合条件的文件,并执行相应的操作。 eg: find ./ ! -name "*.txt" -...
分类:系统相关   时间:2015-01-03 17:23:34    阅读次数:273
《Linux Shell脚本攻略》 笔记 第三章:文件操作
《Linux Shell脚本攻略》 笔记 第三章:文件操作 1、生产任意大小的文件 [root@localhost dd_test]# [root@localhost dd_test]# dd if=/dev/zero of=junk.data bs=1k count=10 10+0 records in 10+0 records out 10240 bytes (10 kB...
分类:系统相关   时间:2015-01-03 17:21:34    阅读次数:213
《Linux Shell脚本攻略》 笔记 第四章:高效文本处理
《Linux Shell脚本攻略》 笔记 第四章:高效文本处理 1、IP地址的正则表达式: [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} 2、grep用法 //在多级目录中对文本进行递归检索 [root@localhost program_test]# grep "yang" ./ -Rn ./test.txt:6:laoyang...
分类:系统相关   时间:2015-01-03 17:22:52    阅读次数:323
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!