随笔分类 - shell
摘要:``` bash set -x EDITOR vim set -x fish_color_search_match --background='444' set -x LD_LIBRARY_PATH ".:/home/hzh/soft/my-bin:$LD_LIBRARY_PATH" set -l
阅读全文
摘要:rsync支持本机目录之间,也支持网络计算机之间的可续传、可压缩的拷贝。 使用方法 格式: rsync SOURCE/ DESTINATION/ 或 rsync OPTION SOURCE DESTINATION。 网络拷贝时,rsync基本和scp的用法差不多,例:rsync -vhlPr -e
阅读全文
摘要:ctrl + d 快捷键会退出终端的解决方案 fish shell 只需要在 ~/.config/fish/config.fish 里添加 bind \cd delete-char bash shell 设置 set -o ignoreeof 或 export IGNOREEOF=99999999
阅读全文
摘要:####关于 fd-find 的说明 在我自己的博客 find in linux 里我错误的以为fd-find不能查找不带后缀的文件,也错误的以为 --changed-within 不能查找文件。 我都错了,fd能找所有的文件,有些文件你找不到是因为fd主动忽略了hidden file及git (.
阅读全文
摘要:执行: dpkg -x eosio_2.0.7-1-ubuntu-18.04_amd64.deb dist-folder 或者用ar来打开: 先看看里面有什么文件: ar t eosio_2.0.7-1-ubuntu-18.04_amd64.deb 比如有: debian-binarycontrol
阅读全文
摘要:https://vitux.com/install-nfs-server-and-client-on-ubuntu/ https://help.ubuntu.com/community/SettingUpNFSHowTo quick start: nfs目录提供方即为nfs server,一下配置s
阅读全文
摘要:被删除的文件位于: .local/share/Trash, 恢复的话,需要自己去目录手动拷贝回原位置,如何得到原位置,查看 .local/share/Trash/info 目录下的信息文件。 For Ubuntu 18.04 and newer, use gio. For older version
阅读全文
摘要:将循环依赖的所有包放到同一个命令行里一起安装,如: libnss3-nssdb_3.28.4-0ubuntu0.14.04.4_all.deb 和 libnss3_3.28.4-0ubuntu0.14.04.4_amd64.deb 之间就是相互循环依赖,单独安装其中一个始终报错(依赖另外一个),将他
阅读全文
摘要:Write a service file and place it in /etc/systemd/system/beforeshuttingdown.service code: Your program or script must be executable. 脚本或者程序(mycommand)
阅读全文
摘要:推荐第一个: https://github.com/spf13/spf13-vim https://github.com/Spacevim/Spacevim https://github.com/JBakamovic/yavide linux 下阅读代码还有个收费软件: scitools under
阅读全文
摘要:安装: 安装完毕后,可能没法关机及logout,可以使用如下安装: 如果还是不能关机和logout,则用下面的试试: 如果需要看是否要移除 clipit,它可能带有不安全因素。 如果由于ubuntu版本太老而无法用apt-get安装,可以先加入: lxde 下交换ctrl及caps lock的方法:
阅读全文
摘要:Add the below line (with tweaks) to the end of /etc/crontab: At 23:30 (11:30 PM), the kiosk will shut down. No matter what user is logged in, the shut
阅读全文
摘要:第一步: run the command(s) below: (编辑如下文件) Add the following line, save and then close. (在文件中加上下面这句) Reboot, and you're set. 第二步: Thanks to Gunnar Hjalma
阅读全文
摘要:先安装 sudo apt-get install sysstat 然后: mpstat -u 2 5
阅读全文
摘要:fish的可视化配置命令: $ fish_config 另外,fish还有个叫 oh-my-fish 的外观美化插件,见: https://github.com/oh-my-fish/oh-my-fish fish 很好的资源列表: https://github.com/JorgeBucaran/a
阅读全文
摘要:0:表示键盘输入(stdin) 1:表示标准输出(stdout),系统默认是1 2:表示错误输出(stderr) "command >/dev/null 2>&1 &" 与 "command 1>/dev/null 2>&1 &" 的意思一样 1) command: 表示shell命令或者为一个可执
阅读全文
摘要:原文: http://linuxfire.com.cn/~lily/awk.html 简体中文版由bones7456 (http://li2z.cn)整理. 原文:应该是 http://phi.sinica.edu.tw/aspac/reports/94/94011/ 但是原文很乱. 说明:之前也是
阅读全文
摘要:实地在shell里执行下如下命令就知道区别了: 很明显,exec是对每个找到的文件执行一次命令。从这里可以看出exec的缺点是每处理一个文件/目录,都要启动一次命令,效率不好; 格式麻烦,必须用 {} 做文件的代位符,必须用 "\;" 作为命令的结束符,书写不便。 xargs是把所有找到的文件名一股
阅读全文
浙公网安备 33010602011771号