随笔分类 -  linux

摘要:via https://www.cnblogs.com/love-DanDan/p/18401136 如何创建和管理自定义systemd服务 创建和管理自定义 systemd 服务是 Linux 系统管理中的一项重要技能。systemd 是一种初始化系统和服务管理器,广泛应用于现代 Linux 发行 阅读全文
posted @ 2025-02-17 19:28 scott_h 阅读(22) 评论(0) 推荐(0) 编辑
摘要:参考 linux 内核启动Initramfs与initrd 及其挂载 制作initramfs/initrd镜像 bing search linux how to decompress initrd.img file How to Extract initrd/initramfs to View Co 阅读全文
posted @ 2024-12-23 10:57 scott_h 阅读(206) 评论(0) 推荐(0) 编辑
摘要:查看 Linux 发行版名称和版本号的 8 种方法 via https://zhuanlan.zhihu.com/p/36253769 via: https://www.2daygeek.com/check-find-linux-distribution-name-and-version/ 作者:M 阅读全文
posted @ 2023-11-13 17:10 scott_h 阅读(39) 评论(0) 推荐(0) 编辑
摘要:0. 选用 VMWare 个人免费版player 配置网络 个人免费版player 网络连接 1.配置成=》【桥接模式】 2.勾选【复制网络连接状态】 ps. workstation 自带VMTools,可以拖拽,移动文件。 1. 安装samba 1.更新当前软件。 sudo apt-get upg 阅读全文
posted @ 2023-11-09 19:29 scott_h 阅读(43) 评论(0) 推荐(0) 编辑
摘要:在生产环境中测试 发现程序无法运行,所以要分析一下 ./mentester: /lib/libtinfo.so6: no uersion information available (required by ,/mentester) ./mentester' /lib/libncursesso.b: 阅读全文
posted @ 2023-11-08 22:02 scott_h 阅读(117) 评论(0) 推荐(0) 编辑
摘要://check gcc version, gcc already installed gcc -v g++ -v install g++ sudo apt-get install g++ install cmake and cmake-gui sudo apt-get install cmake s 阅读全文
posted @ 2023-11-04 17:54 scott_h 编辑
摘要:使用平台 linux 下载 http://valgrind.org/ 文档 http://valgrind.org/docs/manual/manual.html 博客 https://www.oschina.net/translate/valgrind memcheck https://blog. 阅读全文
posted @ 2019-05-24 10:17 scott_h 阅读(321) 评论(0) 推荐(0) 编辑
摘要:`df`命令查看挂在的U盘和硬盘,ssd 右边可以看到路径 阅读全文
posted @ 2018-10-07 14:39 scott_h 阅读(2075) 评论(0) 推荐(0) 编辑
摘要:"c++17 filesystem, regex 遍历目录" cpp include include include include include //linux 精确度s, us gettimeofday() include include include using namespace std 阅读全文
posted @ 2018-09-05 03:29 scott_h 编辑
摘要:"Linux(C/C++)下的文件操作open、fopen与freopen" open是linux下的底层系统调用函数,fopen与freopen c/c++下的标准I/O库函数,带输入/输出缓冲。 linxu下的fopen是open的封装函数,fopen最终还是要调用底层的系统调用open。 所以 阅读全文
posted @ 2018-09-04 19:32 scott_h 阅读(1954) 评论(0) 推荐(0) 编辑
摘要:"Linux时钟精度:毫秒?微妙?纳秒?" 阅读全文
posted @ 2018-09-04 18:07 scott_h 阅读(1242) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/lidp/archive/2010/03/02/1696447.html 一般下载一个网站目录 wget 下载整个网站,或者特定目录 需要下载某个目录下面的所有文件。命令如下 wget c r np k L p www.xxx.org/pub/path/ 阅读全文
posted @ 2018-08-22 09:47 scott_h 阅读(2217) 评论(0) 推荐(0) 编辑
摘要:有下面几种常用选择: IBus拼音:sudo apt get install ibus pinyin IBUS五笔:sudo apt get install ibus table wubi 谷歌拼音输入法:sudo apt get install ibus googlepinyin Sun拼音输入法 阅读全文
posted @ 2018-07-31 14:15 scott_h 阅读(25345) 评论(0) 推荐(1) 编辑
摘要:sudo vim /etc/NetworkManager/NetworkManager.conf 将 修改成 可以通过ifconfig, ip address(推荐新版) 得到网卡名。 lo 本地loopback 回环地址名字 另外的是网卡名,我的是enp0s31f6 如果改成默认 dhcp ifa 阅读全文
posted @ 2017-10-19 15:08 scott_h 阅读(4737) 评论(0) 推荐(0) 编辑
摘要:https://linux.cn/article 8782 1.html 1. apt get 安装( 在线) 会帮我把所有的依赖包都一起安装 安装xxx 。如果带有参数,那么 d 表示仅下载 , f 表示强制安装 卸载xxx sh apt get autoremove xxx` 要移除的软件包名 阅读全文
posted @ 2017-08-29 00:31 scott_h 阅读(314) 评论(0) 推荐(0) 编辑
摘要:```bash who who am i ssh scott@192.168.1.105 ps aux | grep pts/8 pwd // where are you? Page 205 mkdir -p dir1/dir2/dir3/dir4/dir5 rm -r dir1 //deleted all directory (include subDirec... 阅读全文
posted @ 2017-05-24 09:56 scott_h 阅读(224) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示