ubuntu study notes 02

1. The difference between sudo sh and sudo bash sh

Run "sh" as a super user. The sh utility is a command language interpreter.
Run "bash" as a super user. Bash is a shell or command language interpreter. Bash is a sh-compatible shell.

2. The dir instruction

Enter the folder under the current path of dir

3. Delete folder instruction

sudo rm -r folder name
sudo rm -rf /usr/local/***

4. cp instruction/copy instruction

The cp command is used to copy files or folders. It has two main forms

Usage 1: Copy a file
$ cp [option] src-file target-file

Usage 2: Copy multiple files, the target is a folder
$ cp [option] src-file1 src-file2… target-directory

5. Check the nvidia driver version

nvidia-smi
my version is 455.45.01

6. Check the system kernel

View the kernel list sudo dpkg --get-selections |grep linux-image
View the currently used kernel uname -r
mine is 4.15.0-129-generic

7, check the gcc version

gcc -v
mine is 5.4.0

Guess you like

Origin blog.csdn.net/LemonShy2019/article/details/114982197