随笔分类 -  Linux相关

摘要:cmp比较二进制文件内容差异 cmp 命令逐字节比较两个文件内容。 一般用cmp命令比较二进制文件,diff命令比较文本文件。 1.如果两个文件内容完全,则cmp命令不显示任何内容。 2.若两个文件内容有差异,会显示第一个不同之处的字节数和行数编号。 语法 参数 阅读全文
posted @ 2023-10-18 15:59 starc的miao 阅读(137) 评论(0) 推荐(0)
摘要:必要分区 boot分区: 作用:引导分区,包含了系统启动的必要内核文件,即使根分区顺坏也能正常引导启动 一般这些文件所占空间在200M以下 分区建议:分区的时候可选100M-500M之间,如果空间足够用,建议分300-500M。避免由于长期使用的冗余文件塞满这个分区。 /分区(根分区): 作用:所有 阅读全文
posted @ 2023-10-17 11:18 starc的miao 阅读(451) 评论(0) 推荐(0)
摘要:【https://blog.csdn.net/zuihaobushi/article/details/90167362】 // 第一步:安装mingw32 sudo apt-get install mingw-w64 sudo apt-get install mingw-w64-tools sudo 阅读全文
posted @ 2023-09-21 08:42 starc的miao 阅读(957) 评论(0) 推荐(0)
摘要:git clone之后的仓库文件夹状态显示带锁,表示当前用户无权限 执行:sudo chown userName fileName 阅读全文
posted @ 2023-07-12 11:12 starc的miao 阅读(166) 评论(0) 推荐(0)
摘要:## Git & Tig - 相比于Git,Tig管理更加效率方便 ## 内存泄漏检查工具 - 【内存泄露检测工具(25款)】【https://www.cnblogs.com/findumars/p/5353538.html】 阅读全文
posted @ 2023-06-30 15:32 starc的miao 阅读(55) 评论(0) 推荐(0)
摘要:# ifconfig - ifconfig ens33 192.168.1.64 netmask 255.255.255.0 - 重启网卡 - service network restart #centos6 - systemctl restart network #centos7 # Nework 阅读全文
posted @ 2023-06-28 19:44 starc的miao 阅读(138) 评论(0) 推荐(0)
摘要:## df - df -T - df -h ## du - du -h --max-depth=1 file ## wc - wc -c file 阅读全文
posted @ 2023-06-27 10:09 starc的miao 阅读(17) 评论(0) 推荐(0)
摘要:新建用户 useradd -m starc passwd asdasd 将用户添加到sudo组 方法一 cd /etc/sudoers chmod u+w sudoers vim sudoers Line: root ALL=(ALL) ALL chmod u-w sudoers 方法二 userm 阅读全文
posted @ 2023-06-27 09:48 starc的miao 阅读(16) 评论(0) 推荐(0)
摘要:问题描述 操作系统由Windows改用Centos后,没有了串口工具的支持,只能够通过终端打印串口数据。 问题解决方法一 使用cat配合stty 链接【https://blog.51cto.com/zoomdy/5871650】 1.stty -F /dev/ttyUSB0 ispeed 11520 阅读全文
posted @ 2023-06-21 20:56 starc的miao 阅读(596) 评论(0) 推荐(0)
摘要:https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions 阅读全文
posted @ 2023-06-21 19:48 starc的miao 阅读(96) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/zidingyi321/article/details/112351177 阅读全文
posted @ 2023-06-19 17:50 starc的miao 阅读(61) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/1bab86143f1c 阅读全文
posted @ 2022-11-21 22:41 starc的miao 阅读(25) 评论(0) 推荐(0)
摘要:opencv安装 sudo apt-get install python3-opencv 源码安装https://blog.csdn.net/u011922698/article/details/123268143 pip3 install opencv-python #安装opencv pip3 阅读全文
posted @ 2022-11-21 04:19 starc的miao 阅读(587) 评论(0) 推荐(0)
摘要:yum install SDL 安装的是SDL2 include的文件也是SDL2 yum install xclock 中文教程:http://tjumyk.github.io/sdl-tutorial-cn/contents.html 编译命令:gcc -o demo main.c sdl2-c 阅读全文
posted @ 2022-11-20 20:27 starc的miao 阅读(532) 评论(0) 推荐(0)
摘要:桥接模式 NAT模式 仅主机模式 阅读全文
posted @ 2022-11-20 16:14 starc的miao 阅读(15) 评论(0) 推荐(0)
摘要:命令行连接WIFI 显示所有热点:nmcli dev wifi 连接选定的热点:nmcli dev wifi connect wifi_name password wifi_passwd 图形化连接WIFI nmtui 阅读全文
posted @ 2022-11-09 22:34 starc的miao 阅读(120) 评论(0) 推荐(0)
摘要:文档手册 gst-launch-1.0 BUG : $'\r': command not found 当我们执行 shell 脚本的时候提示’\r’: command not found,但是检查了很多次并没有发现什么问题。原因是 windows 下的换行符是\r\n,而 Linux 下的换行符是\ 阅读全文
posted @ 2022-11-09 22:12 starc的miao 阅读(493) 评论(0) 推荐(0)
摘要:安装QT5 apt install qt5-default qtcreator, 测试qmake -v 安装libopencv apt install libopencv-dev python-opencv 安装v4l2 apt install v4l-utils v4l2-ctl --list-d 阅读全文
posted @ 2022-11-05 03:54 starc的miao 阅读(203) 评论(0) 推荐(0)
摘要:步驟 1. 在Windows 10搜索框中輸入:cmd,右鍵單擊「以系統管理員身份執行」。 步驟 2. 在命令提示字元,輸入:diskpart,然後按Enter。 步驟 3. 輸入:list disk,列出所有可用的磁碟機,然後按Enter。 步驟 4. 輸入:select disk + disk 阅读全文
posted @ 2022-11-05 03:50 starc的miao 阅读(670) 评论(0) 推荐(0)
摘要:镜像地址 http://man.linuxde.net/download/CentOS http://mirrors.btte.net/centos/7/isos/x86_64/ http://mirrors.cn99.com/centos/7/isos/x86_64/ http://mirrors 阅读全文
posted @ 2022-10-31 10:55 starc的miao 阅读(230) 评论(0) 推荐(0)