View graphics card usage
nvidia-smiView hard disk usage
df -hl # Viewing the remaining disk space df -h # View the partition size of each root pathLaunch visdom
python -m wisdom.server
You can add parameters later, such as in port 9099, open in encrypted mode
python -m visdom.server -port 9010 -enable_login
View information corresponding to a process
ps -f PID_number
e.g.
ps -f 10010
View specified user login records
last username
File compression
Compressing a folder using zip
zip A.zip ./A/*
Unzip the folder using zip
unzip A.zip
View the number of files in a directory
ls -l | grep "^-" | wc -l
Batch copy files with specific file name
cp ~/train/dog.{1000..1399}.jpg ~/PycharmProjects/test/data/validation/dogs/
Delete files / folders
rm ./A/1.jpg # delete file
rm -Rf ./A/ # delete folder
View IP address
ifconfig -a
Adding ...
没有评论:
发表评论