常用命令行总结:
export http_proxy=http://192.168.0.2:7890
export https_proxy=http://192.168.0.2:7890
unset http_proxy
unset https_proxy
zip -r predict_images ./predict_images
scp m:~/xxx.zip ~/Downloads/xxx.zip
rm -rf *.json
mv from_path to_path
cp from_path to_path
nvtop
htop
nohup jupyter notebook --ip 0.0.0.0 --no-browser --allow-root > jupyter.log &
jupyter notebook --generate-config
jupyter notebook password
nohup python train.py >> train_logs/0601_13_classes_2.txt &
nohup tensorboard --logdir=./ --host=0.0.0.0 --port=8099 > tensorboard.log &
source activate dl
df -h
du -sh *
disk -l
history|grep build
du --max-dept 1 -h
mount -t ntfs-3g /dev/sdc1 /mobileHDD/
rsync -avzu --progress from_path to_path
source activate dl
conda list
find / -name "xxx"
fdisk -l
zip -r xxx.zip xxx -x "xxx/logs/*"
sudo rabbitmqctl list_users
sudo rabbitmq-server start
rabbitmqctl add_user chris 123
sudo rabbitmqctl status
rabbitmqctl set_user_tags chris administrator
rabbitmq-plugins enable rabbitmq_management
rsync -av --include='*.json' --exclude='*' username@remote:/remote_path/ /local_path/
sudo find . -name '*.txt' -exec rename 's/_questions.txt/.txt/' {} +
git clone --depth 1 --branch tag_name(0.1) xxxx.git
for i in {9010..9011};do sudo docker run -itd --net='host' -v /etc/localtime:/etc/localtime -v /media/moveDir/dxq/test/xxxx:/home/code -w /home/code/service --name "bs_$i" xxxx:v11 /bin/bash;done
sudo docker exec -it container_name /bin/bash
vi ~/.gitconfig
[http "https://github.com"]
proxy = http://172.0.0.1:7890
[http]
find ./ -mindepth 1 -maxdepth 1 -type d -exec du -ks {} + | awk '$1 <= 50' | cut -f 2-
find ./ -mindepth 1 -maxdepth 1 -type d -exec du -ks {} + | awk '$1 <= 50' | cut -f 2-| xargs -d \\n sudo rm -rf
tail -f xxx.txt
将目录下【递归】复制到另一个文件夹中
sudo find -maxdepth 3 -name '*.png' -exec cp -t ./all_images {} +
chown tom:users file