摘要: CPU进程使用率 ps -eo pid,pcpu,comm cpu线程使用率 ps -L -p <pid> -o pid,tid,pcpu,comm samba 查看文件的使用者: smbstatus | grep -i "filename" smbstatus | grep -i PID ➜ 0_ 阅读全文
posted @ 2023-12-20 17:37 丶Future 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 尽管Linux被认为是一个安全的操作系统,但其安全性与登录用户的密码强度一样。密码策略的存在是为了确保为用户设置一个强大的密码,作为一个Linux用户,你应该注意执行这些策略,使违规行为难以发生。你肯定不希望用户配置弱密码或容易猜测的密码,这些密码可以在几秒钟内被黑客强行破解。在这篇文章中,我们将触 阅读全文
posted @ 2023-10-20 18:21 丶Future 阅读(918) 评论(0) 推荐(0) 编辑
摘要: 在Linux上,你可以使用以下方法远程获取文件: 使用scp命令:scp命令用于在本地和远程系统之间进行文件传输。使用以下命令将远程文件下载到本地: scp username@remote_host:/path/to/remote/file /path/to/local/directory 将use 阅读全文
posted @ 2023-10-18 15:41 丶Future 阅读(670) 评论(0) 推荐(0) 编辑
摘要: 要使用命令抓取SSDP(Simple Service Discovery Protocol)数据包,你可以使用tcpdump工具来实现。以下是一些使用tcpdump的命令示例: 抓取所有的SSDP数据包: sudo tcpdump -i <interface> -s 0 -A 'udp port 1 阅读全文
posted @ 2023-10-18 15:10 丶Future 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 手动加载KCS 驱动: modprobe ipmi_si type=kcs ports=0xca2 regspacings=1 阅读全文
posted @ 2023-10-16 13:40 丶Future 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 一、fdisk -l (查看盘符) 二、fdisk /dev/mmcblk0 (对EMMC进行分区设置) 1、p (查看当前的分区) 2、d (删除分区) 3、n (新建分区) 4、w (保存设置并退出) 三、mkfs.ext4 (格式化分区) 四、mount /源地址 /目标地址(挂载分区) 五、 阅读全文
posted @ 2023-05-05 13:50 丶Future 阅读(903) 评论(0) 推荐(0) 编辑
摘要: 打开gedit /etc/default/grub 修改前: GRUB_DEFAULT=0GRUB_TIMEOUT_STYLE=hiddenGRUB_TIMEOUT=0GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`GR 阅读全文
posted @ 2022-06-28 15:14 丶Future 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 用户接口 所有GPIO接口都基于/sys/class/ GPIO /。 请求/释放 首先必须请求GPIO。所以如果我们想请求GPIQ 23,我们会这样做: root:/> echo 23 > /sys/class/gpio/export 如果此过程成功,您将得到一个 /sys/class/gpio/ 阅读全文
posted @ 2022-03-02 10:53 丶Future 阅读(1317) 评论(0) 推荐(0) 编辑
摘要: 服务器端代码 server.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/socket.h> #include <arpa/inet.h> #include 阅读全文
posted @ 2022-02-15 15:15 丶Future 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 一、安装cifs-utifs sudo apt-get install cifs-utils 二、列举指定IP地址所提供的共享文件夹列表 smbclient -L ${ip_addr} -U ${username}%${password} 三、挂载共享文件夹 sudo mount -t cifs / 阅读全文
posted @ 2022-02-14 17:14 丶Future 阅读(4746) 评论(0) 推荐(0) 编辑