linux系统-文件系统-常用命令
一 常用命令
1 查看分区情况:df [-h]
2 查看文件和目录的大小:du
3 查看文件的详细参数:stat
4 校验文件的md5的值:md5sum
5 检测修复文件系统:fsck,e2fsck(单用户模式卸载文件系统后执行)
二 添加硬盘的分区
1 划分分区:fdisk /dev/sdb
2 创建文件系统:mkfs.ext3 /d...
分类:
系统相关 时间:
2015-04-18 13:10:14
阅读次数:
195
1.git log 显示仓库的历史记录,默认显示所有记录, 1)git log -m,显示最近的几次提交,, 2)git log --pretty=oneline 显示提交hash和注释-p 按补丁格式显示每个更新之间的差异。--stat 显示每次更新的文件修改统计信息。--shortstat 只显...
分类:
其他好文 时间:
2015-04-18 09:55:50
阅读次数:
125
![在此输入图片描述][1] [1]: http://static.oschina.net/uploads/space/2015/0416/141131_3ChL_97044.png 脚本代码如下: ceph pg dump | awk ‘ /^pg_stat/ { col=1; while($col!="up") {col++}; col++ } /^[0-9...
分类:
其他好文 时间:
2015-04-16 15:57:06
阅读次数:
215
// hdu 3001 TSP问题的变形
// 这次到每个点最多两次,所以可以用三进制的类推
// dp[S][u]表示当前在u点访问状态为S时所得到的最小的开销
// 采用刷表法,即用当前的状态推出它所能转移的状态
// dp[S][u] 可以到达的状态为dp[S+state[v]][v](dist[u][v]!=inf)
// dp[S+state[v]][v] = max(dp[S+stat...
分类:
其他好文 时间:
2015-04-15 01:03:10
阅读次数:
148
import osimport timefilename = "test.txt"info = os.stat(filename)if time.time()-info.st_mtime > 600:#10分钟 print "done"else: print "modify"
分类:
编程语言 时间:
2015-04-14 17:59:57
阅读次数:
203
1. C++static has three methods to use.a. external no need to add static. but it is stored statically.b. internal need to add static. it si stored stat...
分类:
其他好文 时间:
2015-04-14 00:25:11
阅读次数:
230
Android手机统计手机流量:软件流量使用数据保存在 /proc/uid_stat/uid(用户id)/ 下面文件中...
分类:
移动开发 时间:
2015-04-13 09:39:26
阅读次数:
134
进程管理类的命令:pstree,ps,top,vmstat,htop,pmap pstree:查看进程树 ps:显示系统当前进程状态的命令 进程: 跟终端相关的进程 跟终端无关的进程 a:所有跟终端相关的进程 psa x:所有跟终端无关的进程 psx STAT: S:可中断睡眠 D:不..
分类:
系统相关 时间:
2015-04-12 06:54:39
阅读次数:
200
#!/bin/bashctime=`date +%x%T`monitor_dir=/home/jk/if [ ! -d $monitor_dir ]; then mkdir $monitor_dirficd $monitor_dirweb_stat_log=web.statusif [ ! -f $...
分类:
系统相关 时间:
2015-04-12 01:15:39
阅读次数:
158
1 package com.bjsxt.Thread.Demo; 2 public class ProducerConsumer { 3 /** 4 * 生产者与消费者 5 * @param args 6 */ 7 public stat...
分类:
编程语言 时间:
2015-04-10 19:31:02
阅读次数:
173