备查
-
查看文件及文件夹个数
- 当前文件夹下文件个数
ls -l |grep "^-"|wc -l
- 当前文件夹及子文件夹下文件个数
ls -lR|grep "^-"|wc -l
- 当前文件夹及子文件夹下文件夹个数
ls -lR|grep "^d"|wc -l
- 当前文件夹下文件个数
-
后台运行程序
- python+输出log
nohup python -u test.py > out.log 2>&1 &
- sh+不输出log
nohup sh **.sh > /dev/null 2>&1 &
- python+输出log
-
vim相关
**- 显示与隐藏行号
:set number
:set nonumber
- 显示与隐藏行号
-
解决-bash: /usr/bin/cp: Argument list too long
find source/ -name "*.txt" -exec mv {} target \;
-
linux apt包名搜索:
apt-cache search 内容
-
服务器上配置jupyter notebook
https://blog.youkuaiyun.com/feilong_csdn/article/details/90677233
虚拟环境中配置https://blog.youkuaiyun.com/weixin_40539892/article/details/80940885
打开notebooknohup jupyter notebook --ip=10.77.30.135 >output 2>&1 &