timerring

Some Useful Commands to Share

January 30, 2025 · 0 min read · Page View:
Cheatsheet
Commands
If you have any questions, feel free to comment below. 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

<< prev | Random... Continue strolling The Iftop | next >>

If you find this blog useful and want to support my blog, need my skill for something, or have a coffee chat with me, feel free to: