随笔分类 - 3-Shell命令笔记
Ubuntu系统使用过程中的相关命令学习。
摘要:dos2unix作用——实现DOS=>Unix text文件的转换。 通过管道实现目录下的文件格式转换: find . -name "*.*" | xargs dos2unix 注意:dos2unix 默认忽略二进制文件。
阅读全文
摘要:错误描述 解决方式 其中 8BAF9A6F`。
阅读全文
摘要:本人机器是windows x64,VS2013支持64位编译模块。 opencv编译安装步骤 1. 下载cmake x64 windows 版本,下载opencv 2.4.13,分别解压至A,B目录; 2. 进入A目录下bin目录,打开cmake GUI,分别指定opencv源码路径和生成工程的存储
阅读全文
摘要:#include #include #include #include typedet void Sigfunc(int); static void sig_user(int); static void sig_user1(int); Sigfunc *signal(int, Sigfunc*); pid_t pid = 0, pid1 = 0; int main() { s...
阅读全文
摘要:#查看系统内核/操作系统/CPU信息 uname -a #返回:内核名 主机名 Linux内核版本 内核编译日期 操作系统版本 CPU型号 硬件平台 GNU/Linux#查看系统是32位还是64位uname -m#返回:i386到i686是32位,是x86_64则是64位 #查看操作系统版本 head -n 1 /etc/issue #查看gcc或者g+...
阅读全文
摘要:如果你想在当前目录下 查找"hello,world!"字符串,可以这样: grep -rn "hello,world!" *
阅读全文
摘要:#数据库操作: #建立数据库 create database data_name #删除数据库 drop database data_name #查看: show databases; #表操作: #列出表 show tables; #创建表: create table TAB_NAME( id int(10) not null auto_increment primary key, name...
阅读全文
摘要:# 检查MySQL服务器系统进程 ~ ps -aux|grep mysql mysql 1103 0.0 0.3 492648 51780 ? Ssl 14:04 0:21 /usr/sbin/mysqld sharon 15918 0.0 0.0 15940 968 pts/4 S+ 21:36 0:00 grep --color=a...
阅读全文
摘要:A zombie is already dead, so you cannot kill it. To clean up a zombie, it must be waited on by its parent, so killing the parent should work to elimin
阅读全文
摘要:安装ssh: 查看ssh服务器是否启动: 查看到有ssh-aget和sshd同时都有时,配置正确。 修改ssh配置文件: 找到PermitRootLogin no一行,改为PermitRootLogin yes。完成! 重启、停止ssh服务:
阅读全文
摘要:查找: #找./下的所有txt文件,输出个数 find ./ -name "*.txt" | wc -l #查找并删除 find ./ -name "*.txt" -exec rm -f {} \;
阅读全文

浙公网安备 33010602011771号