Common Linux system commands

Common Linux system commands

Some basic command line instructions were used in downloading anconda on the Linux server and in the operation process, and temporarily recorded. The follow-up supplement is still here, and the classification will be carried out after the content is more.

ls The file directory under the current path
cd Go to a certain directory, generally give the absolute path
wget -c URL to download things from the URL link to the current path
pwd View the current path Shows the absolute path
nvidia-smi View the GPU usage, pay attention to the root directory under
nvcc --version View cuda version
cp dir1 / file dir2 copy the file path to the next dir2 dir1 path
lspci | grep -i nvidia NVIDIA graphics card to view information
ps -f -p pid to see the process belongs to which user, pid is the process ID
kill pid kills the process, pid is the process number
nohup command & background running process, command is the command
scp [email protected]:/home/work/source.txt /home/work/ to server xxx.xxx. Copy source.txt in x.xx to the local /home/work. Note that it is not connected to the server.
logout Log out of the server
env to view environment variables

Guess you like

Origin blog.csdn.net/qq_35898332/article/details/110148878