c盤清理的步驟是什么(如何清理C盤空間)
如何清理C盤空間怎么清理C盤的垃圾文件?每天上網(wǎng)會給電腦帶來很多臨時(shí)文件,這些垃圾文件不清理掉時(shí)間久了就會影響到電腦的運(yùn)行速度。那怎
2022/12/08
(資料圖片僅供參考)
#!/bin/bsahstarttime=`date +"%Y-%m-%d %H:%M:%S"`;echo "Start: $starttime";/app/ctgkafka/ctg_kafka_instance/13/icc-5gcmp-kafka-yl5/1/bin/kafka-reassign-partitions.sh --zookeeper 172.25.1.136:2181,172.25.1.53:2181,172.25.1.144:2181/ctgkafka/13/icc-5gcmp-kafka-yl5 --reassignment-json-file topic-reassignment.json --execute --throttle 10240000x=1while true;do if [ $x -gt 0 ]; then echo "1" >>/dev/null elif [ $x -eq 0 ] then date >>/opt/date.txt break fi x=`/app/ctgkafka/ctg_kafka_instance/13/icc-5gcmp-kafka-yl5/1/bin/kafka-reassign-partitions.sh --zookeeper 172.25.1.136:2181,172.25.1.53:2181,172.25.1.144:2181/ctgkafka/13/icc-5gcmp-kafka-yl5 --reassignment-json-file topic-reassignment.json --verify | grep "progress" |wc -l`doneendtime=`date +"%Y-%m-%d %H:%M:%S"`;echo "End: $endtime";echo "End: $endtime" >> /opt/date.txtstart_seconds=$(date --date="$starttime" +%s);end_seconds=$(date --date="$endtime" +%s);echo "本次運(yùn)行時(shí)間: "$((end_seconds-start_seconds))"s"
nohup sh date.sh > date.sh.log 2>&1 &
標(biāo)簽: 運(yùn)行時(shí)間