Graphics card
View graphics card usage
nvidia-smi
file
View the file usage in the current directory:
du -sh *
Write the last 3 lines of 03.txt to simple.txt (Note: If there is already simple.txt in the specified directory at this time, the contents will be overwritten)
tail -n 3 03.txt > simple.txt
If you want to append to the end of the simple.txt file
tail -n 3 03.txt >> simple.txt
Steps to unzip the .tar.xz file:
xz -d xxx.tar.xz
Then there will be xxx.tar file, then use
tar xvf xxx.tar
You can unpack.
Script hangs
nohup redirect task output
nohup ./test.sh > test.txt &
If it prompts permission denied, just enter the following command:
sudo chmod -R 777 某一目录
sshd has problems
See this article:
https://www.cnblogs.com/xiaoyangerlaoshi/p/6168411.html
Change the mirror source: (you can choose the best server)