Linux文件传输

SCP

1
2
3
4
5
推送
scp -P 2233 /home/abc.tar.gz root@123.123.123.123:/root/abc.tar.gz

拉取
scp -P 2223 -p root@10.23.185.16:/remote/test.tar.gz /local/test.tar.gz
阅读更多

Hexo

打包并推送到远程仓库

1
$ hexo clean && hexo g && git add . && git commit -m 'change' && git push origin master
阅读更多

Shell

查看当前Shell

1
2
3
$ echo $SHELL
$ echo $0
$ ps -p $$
阅读更多