操作系統
普通读者
这个作者很懒,什么都没留下…
展开
-
makefile
第一个makefile。原创 2016-04-10 20:05:16 · 334 阅读 · 0 评论 -
Linux 小奇妙 -- 解决Ubuntu 16.06不能输入汉字?
问题描述安装 sogoupinyin for linux配置 sogoupinyin 使用环境结果: linux不能输出汉字 (so sad…)My linux versionUbuntu `16.04. 1` Linux `4.4.0-45-generic`解决方案执行命令sudo apt install ibus-pinyinsudo ap...原创 2016-10-29 17:46:34 · 5273 阅读 · 0 评论 -
linux环境下安装wireshark
start to setupapt install wiresharkopen wireshark, error followssolve the problemvim /etc/wireshark/init.lua653 dofile(DATA_DIR.."console.lua")654 --dofile(DATA_DIR.."dtd_gen.lua")not...原创 2016-09-15 10:57:58 · 961 阅读 · 0 评论 -
boost序列化
本文介绍了,ubuntu平台下,boost序列化库的安装,编译,使用。原创 2016-04-19 14:44:33 · 723 阅读 · 0 评论 -
realloc 减少指针指向的内存
简介通过 realloc 实现 将字符串开头的空白符删除。示例代码#include <stdio.h>#include <stdlib.h>#include <string.h>char* nospace(char* str){ char* old = str; char* new = str; while(*o...原创 2017-02-09 15:37:20 · 694 阅读 · 0 评论 -
c++读取txt文件
有如下data.txt文件// how to read .txt file.2013001 2 6 8 14 15 24 25 62013002 3 1 16 18 22 28 30 122013003 1 22 23 26 27 28 33 92013004 4 6 10 16 20 27 32 8201300...原创 2016-10-28 18:53:33 · 1239 阅读 · 0 评论 -
strtok 分割字符串
strtok 原理/* Divide S into tokens separated by characters in DELIM. */extern char *strtok (char *__restrict __s, const char *__restrict __delim) __THROW __nonnull ((2));__END_NAMESPACE_STD...原创 2016-10-03 11:31:23 · 320 阅读 · 0 评论 -
c++ 简易文件读写操作
关于c++的文件操作,文件写入和文件读入。原创 2016-01-06 23:46:15 · 488 阅读 · 0 评论 -
STL finish 集合交、差、并、补运算
分析集合的运算嘛,使用链表啊;YOU are right. 不过,最近学了STL模板库,可不可以用模板做呢?YES.而且很容易想到STL set.whyset模板拥有强大的自动排序功能,减化排序与去重操作think,不需要你编写冗杂的排序与去重,是不是可以节约很多时间呢?节省了时间,赶紧去霸占篮球场啊(嘿嘿,我是詹皇的球迷哦)Follow is my code in...原创 2015-10-26 18:35:52 · 954 阅读 · 0 评论 -
c++ 流文件读写操作
使用fstream读写流文件原创 2015-10-17 18:25:32 · 559 阅读 · 0 评论 -
cmake
cmake资料。原创 2017-04-08 15:05:04 · 726 阅读 · 0 评论 -
ubuntu16.04 部署 hexo
步骤安装 node.js [1] # Using Ubuntu curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - sudo apt-get install -y nodejssetup npm [2]curl -L https://www.npmjs.com/install.sh | s...原创 2017-03-24 18:25:12 · 1449 阅读 · 0 评论 -
Linux -- 压缩
1.tar*.Z compress*.gz gzip*.bz2 bzip2*.tar tar打包,未压缩*.tar.gz tar打包,gzip 压缩(purpular)*.tar.bz2 tar打包,bzip2压缩————————————————————————————————gzip zcat 读取纯文本文档被压缩后的压缩文件原创 2016-07-30 20:30:24 · 360 阅读 · 0 评论 -
Linux -- 权限管理
1.FHSFilesystem Hierarchy Standard (FHS) :规范every特定目录下应该要放置what data 三层目录: /root-开机相关 /usr-unix software resource: 与软件安装/执行有关 /var-variable: 与系统运作过程有关根目录: / 分割槽越小越好 /bin ha原创 2016-07-30 20:35:08 · 310 阅读 · 0 评论 -
Linux -- 例行性工作排程
Linux例行性job排程: for these work 安排流程 crontab at 1. 例行性 log rotate logwatch bulid locate db build whatis db ... 2. 突发性job way --> /var/spool/at atd原创 2016-07-30 20:50:23 · 761 阅读 · 0 评论 -
Linux -- 程序管理
1.whatLinux,触发any event,系统都将她定义为一个程序,PID触发事件 Pragrom:binary pragrom 放置在实体磁盘中,透过用户的执行来触发。触发后加载到内存中成为iegeti。 Process:程序被触发后,执行者的权限与属性、程序的程序代码与所需数据等都会被加载内存中,操作系统并给予这个内存内的单元一个PIDbash ps -lfork a原创 2016-07-30 20:52:49 · 656 阅读 · 0 评论 -
Linux -- daemon
1.deamonservice: 系统为了提供功能必须提供的服务(系统 && 网络),needs 程序的运作 达成这个service的程序 called daemon for example. Loop例行性job排程service is crond这个daemondaemon. stand_alone : always exist 内存持续提供服务 super原创 2016-07-30 20:54:08 · 717 阅读 · 0 评论 -
Linux -- bash
shellmanagar计算机硬件的是 操作系统的核心(kernel) 通过shell跟核心沟通what is shell?case. music 1.硬件:声卡 2.核心管理:声卡芯片的驱动程序 3.应用程序:user输入指令 shell桥 指令 and 核心文字接口的shell 1.各家distribution一个样 2.远程原创 2016-07-30 20:15:09 · 313 阅读 · 0 评论 -
Linux -- 磁盘与文件系统
1.EXT2EXT2 filesystem based on 硬盘磁盘: 圆形的磁盘盘(record data) 机械手臂(可擦写磁盘盘上的data) 主轴马达(转动磁盘盘,let机械手臂的读取头在磁盘盘上读写数据)磁盘盘: Sector 512bytes sector组成一个circle,to be Cylinder,Cylinder是分割槽(partiti原创 2016-07-30 20:40:21 · 273 阅读 · 0 评论