在 mac 的 terminal 下打开词典并查 blog
open dict://blog
要输入的命令有点长,于是在 ~/.zshrc 中添加函数
dict(){
open dict://$1
}
在 terminal 中可以这样查 dict blog
在 mac 的 terminal 下打开词典并查 blog
open dict://blog
要输入的命令有点长,于是在 ~/.zshrc 中添加函数
dict(){
open dict://$1
}
在 terminal 中可以这样查 dict blog
On branch master
Your branch and ‘origin/master’ have diverged,
and have 7 and 8 different commits each, respectively.
处理方法
git rebase origin/master
error_log off并不能关闭日志记录功能,它将日志文件写入一个文件名为off的文件中,如果你想关闭错误日志记录功能,应使用以下配置:
error_log /dev/null crit;
把存储位置设置到Linux的黑洞中去
vim 打开文件并跳到最后一行
vim + filename
vim 打开文件并跳到指定行
vim +n filename
vim 打开两个文件,并以 vsplit 显示
vim -O file1 file2
vim 打开两个文件,并以 split 显示
vim -o file1 file2
save all
:wqa
vim can open .zip, .tar.gz files, to prview the filenames in side the package.
对于 nfs server ,查看有哪些客户端连过来
showmount -a
linux desktop 当点击重启或关机,或通过命令,都会卡在
restarting system
shutting down system
解决办法:
centos 7 为例
编辑
sudo vim /etc/grub2.cfg
在启动项一行最后添加 reboot=bios
inux16 /boot/vmlinuz-3.10.0-123.el7.x86_64 root=UUID=e27de799-ef92-4a09-99cf-dde69fe13e88 ro vconsole.keymap=us crashkernel=auto vconsole.font=latarcyrheb-sun16 rhgb quiet reboot=bios
参考:http://linux.koolsolutions.com/2009/08/04/howto-fix-linux-hangfreeze-during-reboots-and-restarts/