二、文件级的操作1、查看文件大小: ls -lah2、查看文件行数:wc -l 文件名3、强制删除文件夹:rm -r 文件夹4、查看文件全路径:pwd5、查看文件大小:ll 文件路径 -h 或者 ls -l 文件路径 -h6、取一个文件的前几行:head -n 行数 文件名7、查找文件中内容:se....
分类:
系统相关 时间:
2015-08-06 13:03:53
阅读次数:
139
书上的这个例子需要在ubuntu的低版本的系统才支持,现在基本上都不支持了,想实现也很简单自己写一个脚本先备份再删除。alias也只是做了一次替换alias rm='cp $@ ~/backup; rm $@' rm text.txt被转换成了cp$@ ~/backup; rm $@ text.t....
分类:
系统相关 时间:
2015-08-05 19:51:25
阅读次数:
189
1. 下载ext2fswget http://prdownloads.sourceforge.net/e2fsprogs/e2fsprogs-1.42.9.tar.gz2. 下载ext3grepwgethttp://ext3grep.googlecode.com/files/ext3grep-0.1...
分类:
其他好文 时间:
2015-08-04 14:56:56
阅读次数:
104
最近在导师写网络带宽分配的仿真程序,期间产生了大量临时文件,怎么用rm指令删除这些临时文件而不删除其他特定的文件呢?
比如下面是临时文件:
temp101 temp102 temp103 temp104 temp105
temp201 temp202 temp203 temp204 temp205
temp301 temp302 temp303 temp304 temp305
temp4...
分类:
系统相关 时间:
2015-08-04 13:41:24
阅读次数:
123
001_Linux常用命令 之ls、mkdir、cd、pwd、rmdir、rm、cp、mv、ln
===================== 正 文 ===============================
××××××目录及文件命令××××××
1.ls
ls [选项] [文件或目录]
选项:
-a ----显示所有文件,包括隐藏文件
...
分类:
系统相关 时间:
2015-08-01 23:38:54
阅读次数:
226
docker-ubuntu-vnc-desktop From Docker Index docker?pull?dorowu/ubuntu-desktop-lxde-vnc Build yourself git?clone?https://github.com/fcwu/docker-ubuntu-vnc-desktop.git
docker?build?--rm?-t?d...
分类:
系统相关 时间:
2015-08-01 10:11:46
阅读次数:
1076
1) 远程仓库相关命令检出仓库:$ git clone git://github.com/jquery/jquery.git查看远程仓库:$ git remote -v添加远程仓库:$ git remote add [name] [url]删除远程仓库:$ git remote rm [name]修...
分类:
其他好文 时间:
2015-07-31 16:09:09
阅读次数:
101
npm命令参数很多,但是日常工作中真正能使用的那就是那么几个,这里简单的概括了一些我们日常使用频率比较高的命令参数.1. 安装/卸载命令 install,Uninstall , rm 包安装分两种:本地和全局,两者区别简单理解就是使用范围不同,本地仅限指定的工程下使用,而全局可以应用于node...
分类:
其他好文 时间:
2015-07-31 10:19:02
阅读次数:
159
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Reflection;namespace RM.Web{ /// /// 用于dbnull的数据转...
分类:
数据库 时间:
2015-07-31 09:00:12
阅读次数:
134