add en/Development-And-Common-Documents/Commonly_Combination_Commands.md.

Signed-off-by: 康艳红 <731193006@qq.com>
This commit is contained in:
康艳红 2023-03-23 08:45:02 +00:00 committed by Gitee
parent 480acbb0e8
commit 74b32fa788
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,42 @@
# <center>Common combination commands</center
#### <center>Author: stranger</center
#### <center>2022-04-23 00:16:10</center
Not much content yet, will update to this as soon as I have collected useful commands
1. Install the header file
```
sudo apt install linux-headers-`uname -r`
```
2. update the boot
```
sudo update-grub
```
3. Check if a package is installed
```
dpkg -l|grep 包名或者是包名里包含的部分字符
```
4. synchronize the time of dual systems
```
sudo timedatectl set-local-rtc 1
sudo hwclock --localtime --systohc
```
5. merge two files (merge file1.txt and file2.txt into file.txt)
```
cat file1.txt file2.txt > file.txt
```