You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					27 lines
				
				595 B
			
		
		
			
		
	
	
					27 lines
				
				595 B
			| 
											1 year ago
										 | == 将二进制文件以16进制形式显示 | ||
|  | [source,bash] | ||
|  | ---- | ||
|  | xxd 文件.zip > 文件.hex | ||
|  | ---- | ||
|  | 
 | ||
|  | == 文件比较 | ||
|  | [source,bash] | ||
|  | ---- | ||
|  | # 将 文件1 和 文件2 的比较结果输出到控制台中 | ||
|  | diff 文件1 文件2 | ||
|  | 
 | ||
|  | # 将 文件1 和 文件2 的比较结果输出到 diff.txt 文件中 | ||
|  | diff 文件1 文件2 > diff.txt | ||
|  | ---- | ||
|  | 
 | ||
|  | == vi 无法正常使用方向键和退回键 | ||
|  | [source,bash] | ||
|  | ---- | ||
|  | vi /etc/vim/vimrc.tiny | ||
|  | 
 | ||
|  | # 添加或修改以下内容 | ||
|  | set nocompatible  # 方向键 | ||
|  | set backspace=2   # 退回键 | ||
|  | 
 | ||
|  | # 保存并退出,重新运行 vi 后就可以正常使用方向键和退回键了 | ||
|  | ---- |