find
正则查找
find
忽略大小写查找文件
find -iname ***
符号查找
静态库
nm libxvidcore.a
-n: sort
-u undefined-only
剪贴板 xclip
复制内容到剪贴板
echo “hello xclip” | xclip -selection c
建立别名
alias clip=”xclip -selection c”
版本管理 update-alternatives
1 | #命令最后的1和10是优先级,如果使用auto选择模式,系统将默认使用优先级高的 |
忽略输出
startkde >/dev/null 2>&1
Install Specific Package Version With Apt Command in Ubuntu
sudo apt install package_name=package_version
add user to sudo group
usermod -G sudo lull
check groups
cat /etc/group
if not in the sudoers file
https://blog.csdn.net/weixin_49192027/article/details/114702099
添加文件
/etc/sudoers.d/lull
1 | lull ALL=(root,lull) ALL |
Ubuntu-18.04 install GCC11
1 | add-apt-repository ppa:ubuntu-toolchain-r/test |
处理wsl与windows的code冲突
原生code使用wsl的code
1 | # ~/.profile |