随笔分类 -  linux 常用命令

讲诉关于常用的linux命令
摘要:I am using a SD to make a linux system based on f1c100s . but i found it failed that it couldn't run . so i wanted to do it again and there were two p 阅读全文
posted @ 2020-01-10 11:15 johnny_shi 阅读(180) 评论(0) 推荐(0)
摘要:在开机的时候有注意到空间不足。第二天重启的时候进入不了系统。 但是 ctrl + alt _F6 可以进入shell . 于是估计是空间不足导致进入不了系统。 找到哪里文件夹空间异常的大就可以解决问题。 du -h --max-depth=1 work/testing 类似如左边的方式找到文件夹。 阅读全文
posted @ 2016-10-11 13:36 johnny_shi 阅读(6084) 评论(0) 推荐(1)
摘要:一个同事设置之后不能上网。 根据经验DNS有问题。 所以就设置8.8.8.8 之后就好了 DONE 阅读全文
posted @ 2016-07-04 14:24 johnny_shi 阅读(2406) 评论(0) 推荐(0)
摘要:一 为什么需要使用虚拟内存 大家都知道,进程需要使用的代码和数据都放在内存中,比放在外存中要快很多。问题是内存空间太小了,不能满足进程的需求,而且现在都是多进程,情况更加糟糕。所以提出了虚拟内存,使得每个进程用于3G的独立用户内存空间和共享的1G内核内存空间。(每个进程都有自己的页表,才使得3G用户 阅读全文
posted @ 2016-06-22 14:03 johnny_shi 阅读(384) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-04-13 22:36 johnny_shi 阅读(462) 评论(0) 推荐(0)
摘要:uname -r3.13.0-43-generic 这个就是我在ubuntu12.04系统上内核版本ubuntu12.04系统源码的位置/usr/src/linux-headers-3.13.0-43-generic 阅读全文
posted @ 2015-07-02 13:28 johnny_shi 阅读(338) 评论(0) 推荐(0)
摘要:Unable to chmod /system/build.prop.: Read-only file system 只读文件系统 所以需要更改 使用下面的命令 mount -o remount,rw /dev/block/stl6 /system 设置完之后就恢复原来的状态 mount -o re 阅读全文
posted @ 2015-06-19 13:44 johnny_shi 阅读(1862) 评论(0) 推荐(0)
摘要:.tar解包:tar xvf FileName.tar打包:tar cvf FileName.tar DirName(注:tar是打包,不是压缩!)———————————————.gz解压1:gunzip FileName.gz解压2:gzip -d FileName.gz压缩:gzip FileN... 阅读全文
posted @ 2015-06-04 11:41 johnny_shi 阅读(952) 评论(0) 推荐(0)
摘要:第一次使用ubuntu的时候先使用这个命令 sudo passwd root然后就可以改密码了 阅读全文
posted @ 2015-05-15 13:48 johnny_shi 阅读(354) 评论(0) 推荐(0)
摘要:find *.tar.gz -exec tar zxvf '{}' \;//查找当前目录下的.tar.gz 的文件的 并发送给后面的命令执行find . -maxdepth 1 //查找当前目录下的文件并显示出来。find . -maxdepth 1 -type d//查找当前目录下的文件 find... 阅读全文
posted @ 2015-04-23 11:45 johnny_shi 阅读(859) 评论(0) 推荐(0)
摘要:find / -type f -name "*.log" | xargs grep "ERROR" 要查的目录 类型 什么样的文件下查找 要查找的内容 阅读全文
posted @ 2015-04-10 15:35 johnny_shi 阅读(135) 评论(0) 推荐(0)
摘要:du -sh * 查看当前目录下文件的大小 阅读全文
posted @ 2015-04-10 10:30 johnny_shi 阅读(188) 评论(0) 推荐(0)