06 2020 档案
摘要:xxd和hexdump命令类似,都可以查看二进制文件. 安装xxd命令 yum install -y vim-common 查看xxd命令帮助 xxd -h xxd --help man xxd 使用命令查看文件 [root@localhost queue]# xxd id\:000000\,ori
阅读全文
摘要:hexdump是Linux下的一个二进制文件查看工具,它可以将二进制文件转换为ASCII、八进制、十进制、十六进制格式进行查看。 查看hexdump帮助: hexdump -hhexdump --helpman hexdump $ man hexdump NAME hexdump - display
阅读全文
摘要:最近在fedora中yum install gdb时报错: Failed to download metadata for repo 'fedora-modular'Error: Failed to download metadata for repo 'fedora-modular' 解决方案1:
阅读全文
摘要:#include <stdio.h> #include <string.h> int main() { printf("%ld\n",strlen("quit")); FILE *fp=NULL; char file[200]; char cc='\n'; fp=fopen("writefile.t
阅读全文
摘要:linux执行sh报错line 5: $'\r': command not found 解决方案: yum -y install dos2unix* dos2unix *.*
阅读全文
摘要:下载rpm包:http://rpmfind.net/linux/rpm2html/search.php?query=yum 最近手贱,卸载了fedora下的yum,装了半天装不上去,一直报错:error: Failed dependencies 如何解决? rpm -ivh 包名 --nodeps
阅读全文
摘要:errno、perror() 和 strerror() C 语言提供了 perror() 和 strerror() 函数来显示与 errno 相关的文本消息。 perror() 函数显示您传给它的字符串,后跟一个冒号、一个空格和当前 errno 值的文本表示形式。 strerror() 函数,返回一
阅读全文
摘要:早上用qq电脑管家杀了毒,下午用gcc编译好exe后执行exe程序就报错如下: 解决方法:卸载qq电脑管家,亲测有效。 但是之后还是会出现这种情况,装了win64的gcc还是不行,所以之后我就在VMWARE里的ubantu里写程序,就不会遇到这种情况
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc,char *argv[]) { if (argc == 1) { fprintf(stderr, "Error - One parameter i
阅读全文