
shell命令
mikejson
记录学习和工作中的点点滴滴。
展开
-
Ubuntu Netplan修改网卡配置
Ubuntu Netplan修改网卡配置原创 2023-02-28 10:50:59 · 1709 阅读 · 0 评论 -
Openwrt使用Hexdump 查看分区内容
Openwrt中有时候需要查看分区里面的内容,如下命令:查看分区root@OpenWrt:/# cat /proc/mtddev: size erasesize namemtd0: 00040000 00010000 “u-boot”mtd1: 00010000 00010000 “u-boot-env”mtd2: 00630000 00010000 “rootfs”mtd3: 00400000 00010000 “rootfs_data”mtd4: 00160原创 2021-10-25 16:16:26 · 2560 阅读 · 0 评论 -
Ubuntu系统下的dos2unix和tofrodos
Ubuntu下默认没有安装dos2unix工具,但是有一个替代工具——tofrodos。安装:sudo apt-get install tofrodos实际上它安装了两个工具:todos(相当于unix2dos),和fromdos(相当于dos2unix)安装完即可,现在你已经可以进行文本格式的转换啦。比如: todos test.cpp (即unix2dos test.cpp)fromdos test.cpp (即dos2unix test.cpp)...原创 2021-09-23 10:15:05 · 655 阅读 · 0 评论 -
linux strip的使用方法及注意事项
/home # file hellohello: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-uClibc.so.0, with debug_info, not strippedstrip之前文件大小/home # ls -l hello-rwxrwxr-x 1 hxy hxy 18932 May 19 07:20 hellostrip之前的函数符号原创 2021-05-19 16:56:33 · 1155 阅读 · 0 评论 -
Linux命令在目录里面查找关键字
在linux目录中查找关键字原创 2021-05-18 15:16:39 · 1636 阅读 · 0 评论 -
MySQL在Linux下的常用命令
MySQL在Linux下的常用命令1.连接本机上的MySQLmysql -u用户名 -p用户密码2.连接到远程主机上的MySQLmysql -h主机地址 -u用户名 -p用户密码3.显示多少个数据库show databases;4.创建数据库create database 数据库名字;5.选择数据库use 数据库名字;6.删除数据库drop database 数据库名字;7.显示表选中数据库的所有表名show tables;8.显示某个表具体结构describe 表名;9.原创 2021-05-07 08:49:57 · 88 阅读 · 0 评论