forked from openkylin/docs
add en/Development-And-Common-Documents/Commonly_Combination_Commands.md.
Signed-off-by: 康艳红 <731193006@qq.com>
This commit is contained in:
parent
480acbb0e8
commit
74b32fa788
|
@ -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
|
||||
|
||||
```
|
Loading…
Reference in New Issue