命令行备忘录
1. hexo 1 2 3 4 5 $ hexo new 'post' $ hexo g $ hexo s $ hexo d $ hexo clean
2. Conda 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 $ conda create -n env_name python=3.6 $ conda activate env_name $ conda deactivate env_name $ conda env list 1. $ conda activate env_name 2. $ conda install ipykernel3. $ python -m ipykernel install --name env_name4. $ jupyter notebook 新建python,出现对应环境提示1. $ conda create -n new_env --clone old_env2. $ conda remove -n old_env --all
3. Linux 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 $ du -h --max -depth =1 dir -name $ du -sh * $ htop $ htop -u username $ cpulimit -l 50 -p pid $ rclone $ ls -l | grep "^-" | wc -l $ ls -lR | grep "^-" | wc -l $ ls -lR | grep "^-" | wc -l $ gzip –c filename > filename.gz $ gunzip –c filename.gz > filename $ head -n 10 filename $ tail -n 10 filename
4. CPU信息 1 2 3 4 5 6 7 8 9 10 Mac:$ sysctl machdep.cpu $ sysctl -n machdep.cpu.brand_string $ sysctl -n machdep.cpu.core_count $ sysctl -n machdep.cpu.thread_count Linux$ grep 'physical id' /proc/cpuinfo | sort -u $ grep 'core id' /proc/cpuinfo | sort -u | wc -l $ grep 'processor' /proc/cpuinfo | sort -u | wc -l