background picture of the home page

Think in Code

WSL自启动ssh

WSL自启动ssh服务 打开计算机管理 选择启动程序 程序路径:%windir%\System32\bash.exe 参数:-c "echo 密码|sudo -S service ssh start" 找到刚刚创建的任务,点击属性</

thumbnail of the cover of the post

Linux清理内存缓存

清空缓存 清空缓存 仅清除页面缓存(PageCache) sync; echo 1 > /proc/sys/vm/drop_caches 清除目录项和inode sync; echo 2 > /proc/sys/vm/drop_caches 清除页面缓存,目录项和inode sync; echo

thumbnail of the cover of the post

Linux安装zsh

安装 zsh是针对当前用户环境的,如果要设置主题,需要在 HOME 目录单独配置 # 安装zsh sudo apt install zsh # 安装 oh my zsh sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh

thumbnail of the cover of the post