![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
coderALEX
这个作者很懒,什么都没留下…
展开
-
Hexo博客部署github使用ssh key
前言以前每次使用Hexo 发布文章然后部署到github的时候总是要使用账号密码,今天终于解决了这个问题正文Github 使用 ssh key 相关页面生成ssh key,如果已经有了,跳过这一步ssh-keygen -t rsa -b 4096 -C "your_email@example.com"将ssh key 添加到 Github 上key的文件一般在~/.ssh/id_...原创 2019-12-27 17:35:26 · 1016 阅读 · 0 评论 -
Linux grep 命令 文件内容搜索
在写Linux服务器上的一些程序时,偶尔会碰到需要搜索某个字段是否存在于某个文件中,为了实现这个目的,我们可以使用grep命令以下是两种通用的使用方法:从文件中搜索目标字符串eg: 从file.txt中搜索string: grep string file.txt搜索目录下文件内的目标字符串eg:从当前目录下搜索string grep -nr string *详...原创 2018-11-26 21:53:30 · 705 阅读 · 0 评论 -
c++ 内存管理库:Boost shared_ptr 例子(example)
工作中需要写一个cpp,但是因为我的水平太差,leader为了避免我写的程序内存泄漏要求我使用boost shared_ptr以下是构建一个demo的过程/home/a.cpp:#include <iostream>#include <boost/shared_ptr.hpp>class implementation{public: ~impleme...原创 2018-11-26 22:06:11 · 351 阅读 · 0 评论 -
关于Linux下关闭进程
在Linux下写C++程序的过程中,有时需要关闭程序,但这种行为对程序状态有一些要求,以下进行总结原创 2019-03-01 12:08:09 · 6322 阅读 · 0 评论