文章浏览阅读6.7k次,点赞2次,收藏45次。Linux提供了socket函数来允许程序员创建基于socket的服务端(server)/客户端(client)应用程序。需要分别开发对应的服务端server和客户端client的代码。_server端和client端...
2023-11-12 05:40 阅读 阅读全文lastb命令用于显示用户错误的登录列表,此指令可以发现系统的登录异常。单独执行lastb命令,它会读取位于/var/log目录下,名称为btmp的文件,并把该文件内容记录的登入失败的用户名单,全部显示出来。语法lastb(选项)(参数)选......
2023-10-10 01:50 阅读 阅读全文1、普通的根文件系统存放在flash中的某个分区。因此需要告知内核根文件系统存放在哪个分区中,同时需要知道根文件系统的rootfstype类型。见mount挂载分析_sydyh43的博客-CSDN博客2、设备启动阶段,在内核加载最后阶段,需要挂载......
2023-10-14 02:10 阅读 阅读全文进程间通信进程间具有独立性,那么进程间如何进行通信呢?操作系统会提供一个公共资源,进程间通过访问这个公共资源而实现进程间的通信。实现进程间通信的方式:管道消息队列共享内存信号量进程间通信的目的:数据传......
2023-10-14 13:26 阅读 阅读全文文章浏览阅读339次。标准C库函数带有缓冲区,效率执行效率高,在缓冲区中。然后一次性发送出去。而linux中的系统调用没有缓冲区,执行效率低。调用一次,读取一次,或者写入一次。网络通信的时候,就用linux系统IO,因为......
2024-01-12 20:19 阅读 阅读全文这里名称变掉了,但是我们理解还是sys_read其实在老版本的linux内核里面,确实还是sys_read,但是由于在09年,随着大批量的64位处理器的出现,很多用户在调用的时候,无法填充64位的系统调用,就会被黑客利用,导致系统奔溃和......
2023-10-13 07:37 阅读 阅读全文显示行号|选择喜欢的代码风格默认GitHubDuneLakeSidePlateauVibrantBlueEightiesTranquilfinger 命令用于查找并显示有关系统用户信息。finger 命令安装:-bash: finger: command not found#CentOS/RHEL 安装yum install finger* -y#Debian/Ubuntu 安装apt-get i..._./fingerpain......
2023-10-14 10:39 阅读 阅读全文系统进程:1.什么是进程?程序放置在储存媒体中(如硬盘、光盘、软盘、磁带等),为实体文件的形态存在。进程:程序被触发后,执行者的权限与属性、程序的程序码与所需数据等都会被载入内存中,操作系统并给予这个内......
2023-10-14 13:13 阅读 阅读全文1. 概述:mpstat 是 Multiprocessor Statistics 的缩写,是Linux实时系统监控工具。其报告与 CPU 的一些统计信息,这些信息存放在 /proc/stat 文件中。在多 CPUs 系统里,其不但能查看所有 CPU 的平均状况信息,而且能够查看特定 CPU 的信息。......
2023-10-13 11:37 阅读 阅读全文文章浏览阅读2.1k次,点赞2次,收藏19次。到目前为止我也做个5、6个嵌入式项目,但以往都是从零开始自己做,也就是毫无计划,想到那里做那里,有想法就会去实现,就这样导致我碰到了很多坑,也消耗了我许多时间,当然,......
2023-11-11 10:35 阅读 阅读全文