摘要:
git log 查看 提交历史默认不用任何参数的话,git log 会按提交时间列出所有的更新,最近的更新排在最上面。 git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Crese
阅读全文
posted @ 2018-08-06 18:32
宅女士
阅读(524)
推荐(0)
摘要:
一、解压initramfs.img 如果文件模式是 gzip compressed data解压文件的命令是: 如果文件模式是 xz compressed data解压文件的命令是: 2、查看initramfs.img中的文件 二、压缩 initramfs.img: initramfs.img 加载
阅读全文
posted @ 2018-08-02 15:44
宅女士
阅读(4262)
推荐(0)
摘要:
# vim get_ip.py #python get_ip.py ('Routing IP Address:', '192.xx.xx.xx') 参考文献:http://blog.51cto.com/sunday208/1875822
阅读全文
posted @ 2018-07-30 10:09
宅女士
阅读(778)
推荐(0)
摘要:
一、python下载网址: http://www.python.org/ftp/python/ 二、python的交叉编译依赖openssl ,openssl的下载网址: https://www.openssl.org/source/old/ 三、编译:1、交叉编译 openssl-1.0.2g 2
阅读全文
posted @ 2018-07-25 13:28
宅女士
阅读(2966)
推荐(0)
摘要:
LWP::UserAgent是一个模拟用户浏览器的类,在使用的时候需要遵守以下几步: 1、引入模块 2、创建一个LWP::UserAgent的对象 3、设置这个对象的相关参数 4、创建HTTP::Request实例 5、发送请求 6、返回HTTP::Response对象。 1、引入模块 2、创建一个
阅读全文
posted @ 2018-07-24 14:20
宅女士
阅读(1267)
推荐(1)
摘要:
执行测试命令之前,一定先清除缓存:# echo 3> /proc/sys/vm/drop_caches SD卡读取的速度# echo 3> /proc/sys/vm/drop_caches # time dd if=/dev/mmcblk0 of=/dev/null bs=1M count=500
阅读全文
posted @ 2018-07-20 11:02
宅女士
阅读(2565)
推荐(0)
摘要:
ln: operation not permitted 在挂载的磁盘上建立软链接提示没有操作权限 例如: ln -s aa bb1ln:aa operation not permitted 原因是: 挂载的磁盘是fat32分区格式,不支持链接 解决方案: 把U盘格式化为ext2/3/4就可以了
阅读全文
posted @ 2018-07-19 14:27
宅女士
阅读(1053)
推荐(0)
摘要:
一、交叉编译libudev下载udev-182.tar.xz 下载网址:https://mirrors.edge.kernel.org/pub/linux/utils/kernel/hotplug/ #tar -xvf udev-182.tar.xz# cd udev-182 # mkdir build # export PATH=/gcc-linaro-7.2.1-2017.11-x86_64...
阅读全文
posted @ 2018-07-18 14:05
宅女士
阅读(6871)
推荐(0)
摘要:
#!/bin/bash ## 声明变量 declare -A color # 定义颜色 # bc_color : background color color[red]="\e[1;31m" color[green]="\e[1;32m" color[yellow]="\e[1;33m" color[blue]="\e[1;34m" color[purple]="\e[1;35m" color[...
阅读全文
posted @ 2018-07-18 11:05
宅女士
阅读(2708)
推荐(0)
摘要:
awk -F[分隔符] ‘/搜索的字符串/{print $0}’ awk 命令不加-F选项,默认分隔符是空格 例如:搜索系统空间使用的大小: 1、搜索系统根目录使用的空间大小 #df -h |awk '/sda2/{print $4}' 2、提取系统使用空间的整数部分 #df -h |awk '/s
阅读全文
posted @ 2018-07-11 11:40
宅女士
阅读(656)
推荐(0)