Some Useful Commands to Share
January 30, 2025 · 0 min read · Page View:
If you have any questions, feel free to comment below. Click the block can copy the code.
And if you think it's helpful to you, just click on the ads which can support this site. Thanks!
Some good commands to share.
Note: This post will be updated regularly.
Query the network command iftop -Pn
GPU #
You can checkout the device here:
lspci | grep NVIDIA
check CUDA version #
nvcc --version
nvcc -V
cat /usr/local/cuda/version.txt
check cuDNN version #
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
import torch
print(torch.__version__)
print(torch.version.cuda)
print(torch.backends.cudnn.version())
docker #
# check the disk usage of docker
docker system df
# if the build cache is too large, you should clean it
docker system prune -a
If you want to follow my updates, or have a coffee chat with me, feel free to connect with me: