ILD

vim高亮当前word
2019-3-12
:set hlsearch然后按 * 或者 #

windows 10 连接 ubuntu 18.04 samba登录失败
2019-3-26
$ cat /etc/samba/smb.conf[global] workgroup = WORKGROUP security = user encrypt passwords = yes passdb backend = smbpasswd

-rdynamic -Wl,--no-as-needed 选项
2019-3-31
-rdynamicPass the flag ‘-export-dynamic’ to the ELF linker, on targets that supportit. This instructs the linker to add all symbols, not only used one

Git: Show commits that have touched specific text in a file
2019-4-15
If you want to find the commits that touched a specific text in a file, use git log -S 'text in the code' -- path/to/file.Here is an example, where th

GDB学习笔记1
2019-4-17
GDB可以做4种事情1 运行程序,设定影响它的任何事情。2 使程序停在特定的条件。3 当程序暂停时,检查发生了什么。4 改变程序。以便测试如何纠正bug。1 一个GDB例子$ gdb m4$ set width 70$ break m4_changequoteBreakpoint 1 at 0x62

grep只打印匹配的部分
2019-4-19
使用-o选项即可。-o, -only-matching:只打印匹配行中,匹配的部分。-h, -no-filename: 抑制输出行中的前缀文件名。参考:https://bytefreaks.net/gnulinux/bash/grep-print-only-the-words-of-the-line

rmmod失败定位过程
2019-4-20
想要卸载ath9k,但是失败,发现其refcnt为1,但是没有内核模块引用它。root@OpenWrt:/# lsmodath 18771 4 ath9k,ath9k_common,ath9k_hw,ath10k_coreath10k_core

IFS切割变量
2019-4-27
如果文件名有空格,那么ls赋值给变量,然后用for的时候,就会有问题。办法是设置IFS变量为换行,那么切割的时候,就按换行切割就能循环获得所有的文件名了。a=`ls -1`IFS=$'\n'for b in $a ; do echo process "$b" ffmpeg -i "$

make oldconfig的用途
2019-5-16
读取当前的.config文件,然后向用户弹出这些配置选项中的但是没有在.config中的选项给用户选择。当用户将配置移植到新的内核时,很有用。It reads the existing .config file and prompts the user for options in the curr

kbuild language
2019-5-17
配置数据库是依据配置选项树生成的。配置选项可以依赖另外一个选项,这些依赖用来决定这个选项是否可见。1 Menu entries大多数entries定义一个配置选项,但是其它一些entries用来组织它们,单个配置选项看起来像:config MODVERSIONS bool "Set version

Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.