生如夏花的博客

专注于工业物联网行业数据采集,嵌入式Linux系统裁剪,5G智慧网关软件开发等

uptime

告诉当前用户系统的运行时长。

用法:uptime [options]

# ubuntu
$ uptime
09:39:24 up 266 days, 15:14,  9 users,  load average: 0.04, 0.11, 0.15
$ nproc
80
# busybox
$ uptime
01:39:51 up  8:39,  load average: 0.71, 0.72, 0.69
$ nproc
1

vim 配置文件

下面是vim的配置文件,使用时需要将其拷贝到用户目录下,然后安装vundle插件管理器(git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim),最后启动vim执行PluginInstall

当前已经配置的插件有NerdTreeYCMALEairline

编写Recipe

规则中的recipe由一条或多条shell命令组成, 并会按照顺序执行。

通常,这些命令执行的结果就是更新target

Linux用户可以使用多种不同的shell程序,但Makefile中的recipe是由/bin/sh来解释。