![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
serryu
这个作者很懒,什么都没留下…
展开
-
Linux系统编程学习01
1.GCC使用gcc -E hello.c -o hello.i gcc -c hello.i -o hello.o gcc -2.GDB使用常用命令: 1. list(l) 显示附近代码 2. next(n) 执行下一条命令 3. print(p) 打印变量或语句 4. backtrace(bt) 显示函数栈 5. finish 退出函数 6. break 添加断点原创 2017-02-03 21:07:41 · 184 阅读 · 0 评论 -
函数getopt()及其他参数
getopt():用来解析命令行参数#include<unistd.h> extern char * optarg; extern int optind; extern int opterro; extern int optopt;getopt(int argc, char ** argv, char *options) 按照字符串options提供的选项在参数列表原创 2017-02-05 20:42:49 · 317 阅读 · 0 评论 -
C语言实现Linux cp命令
1.分析所需功能文件到文件(参数:两个文件名) 1.文件到文件的复制 2.文件到文件的硬链接(-l) 3.文件到文件的软链接(-s)文件到目录(参数:一个文件名,一个目录名) 1.文件到目录的复制 2.新目录下建立文件硬链接(-l) 3.新目录下建立文件软链接(-s)目录到目录 1.目录的递归复制(-r)2. 功能函数的实现文件到文件的复制copyF2F(char * src原创 2017-02-05 22:12:14 · 4479 阅读 · 1 评论