## 使用DVD做APT源

```
sudo apt-cdrom add
```
## Fcitx-pinyin
在使用dvd做源时,没有这个包,
使用网络镜像源可以安装此包

```
sudo apt-get install fcitx fcitx-pinyin fcitx-sunpinyin
```


 

dmidecode |less
dmidecode -s
dmidecode --type

 

 

cmd2 >file  发送标准错误到file
cmd>file2>&1  发送标准错误和标准输出到file
cmd&>>file   附加标准错误和标准输出到file
cmd>f1 2>f2   标准输出到f1,标准错误到f2
cmd|tee files  cmd的输出到标准输出和文件
cmd2>&1|tee files :cmd的标准输出和错误到输出和文件



cmd& :execute cmd in background
cmd1;cmd2 :在一行执行多个命令
{cmd1;cmd2} 在当前shell下执行命令作为组

(cmd1;cmd2) 在子shell下执行命令作为组    
cmd1 |cmd2 :cmd1 的输出作为cmd2的输入
cmd1’cmd2‘ : cmd2的输出作为cmd1的参数
cmd1 && cmd2:and  短路 ,cmd1失败,cmd2从不执行
cmd1 || cmd2 :or 短路  cmd1成功,cmd2从不执行
!cmd:如果命令退出是非零,产生0

 

 


//复制num字节从source位置到目的位置 ,
void * memmove ( void * destination, const void * source, size_t num );
/* memmove example */
#include <stdio.h>
#include <string.h>

int main ()
{
  char str[] = "memmove can be very useful......";
  memmove (str+20,str+15,11);
  puts (str);
  return 0;
}

 

## 命令工具
hexedit
hexdump

## vi命令
vi -b  :%!xxd  :%!xxd -r
1,$:文件的所有行
x,y:x到y的行
x:y:x到y的行,当前行设置为x
0:top of file
.:current line
num:num line
$:last line
x-n:n lines before x
x+n:n lines after x
: enters command-line mode,
% matches whole file as a range,
! filters that range through an external command, xxd is that external shell command
Execute Unix command in a shell. If address is specified, use the
lines contained in address as standard input to command, and
replace the lines with the output and error output.

 

fat32

winhex打开sd卡
簇:最小的存储单元
hexedit命令
DBR(DOS boot record)
FFFFFF0F F8FFFF0F
磁头:255
柱面:不能跳跃的
保留+FAT1+FAT2+数据
ndisasm 编译程序

fcitx-pinyin_不执行