![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux学习
ccnacyq
这个作者很懒,什么都没留下…
展开
-
CentOS 的 服务管理,systemctl 的花式命令大全
CentOS 7 上 服务管理systemctl 的用法 一、使用systemctl管理服务 在 centos7中, 可以使用systemctl显示,启动,停止和重启指定服务,操作简单易用。 它整合了chkconfig与service功能于一体。 原服务都安装在 /usr/lib/systemd/system/ 1.1 命名格式 systemctl cmd service_name.service 其中: * cmd 指命令名称 * service_name 指的是服务名称 * .serv原创 2020-07-26 15:18:38 · 153 阅读 · 0 评论 -
linux学习笔记一, c语言程序的编译链接
以下以hello.c为例 1.编译 gcc -c hello.c 2.链接 gcc -o hello hello.o 3.运行 ./hello 也可以使用便捷方式,将编译链接的代码合到一起 gcc -o hello hell.c 静态庫的编译链接,前面编译到.o文件步骤一样 重点: ar -r hello.a hello1.o hell原创 2016-12-25 23:50:38 · 203 阅读 · 0 评论 -
linux学习笔记二,文件操作
在一般的文件操作中,一般分为三个步骤,打开文件、操作文件、关闭文件。下面我们就安装这三个步骤讲解: 一、打开文件。 #include #include #include int open(const char *path, int oflags); int open( const char *path, int oflags, mode_t mode); 参数说明, pa原创 2016-12-28 00:01:07 · 245 阅读 · 0 评论 -
Linux学习笔记三,标准I/O库
这次记录的都是一些基础I/O库函数 1、fopen、fclose 2、fread、fwrite 3、fflush-- 4、fseek-- 5、fgetc、getc、getchar 6、fputc、putc、getchar 7、fgets、gets 8、printf、fprintf和sprintf 9、scanf、fscanf和sscanf 下面一一讲解各个庫函数。原创 2016-12-28 21:28:13 · 310 阅读 · 0 评论