![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux/Windows
iteye_15147
这个作者很懒,什么都没留下…
展开
-
Mount point挂载点, Andrew File System
[size=small]A mount point is a directory in a file system where additional information is logically connected from a storage location outside the operating system’s root drive and partition.[url]...原创 2016-01-20 15:11:20 · 181 阅读 · 0 评论 -
给shell脚本传参数Passing arguments to a shell script
[size=small][b]Simple explanation[/b]$0 is the name of the command$1 first parameter$2 second parameter$3 third parameter etc. etc$# total number of parameters$@ all the parameters will ...原创 2016-01-26 18:34:50 · 217 阅读 · 0 评论 -
创建带有当前时间戳的目录
mkdir "test`date +"%y-%m-%d-%H:%M"`" The result is created a file named: test14-01-12-22:03.注意,"`"是与"~"一起的同一个键, 不是单引号, 另外, date与+符号之间有空格.原创 2014-01-13 11:36:31 · 903 阅读 · 0 评论 -
Linux 常用命令
[size=medium][b]Linux查看一台服务器有多少个cpu、每个cpu有几个核心、每个核心有几个线程[/b]查看物理cpu个数grep 'physical id' /proc/cpuinfo | sort -u | wc -l查看每个cpu核心数量grep 'core id' /proc/cpuinfo | sort -u | wc -l查看...原创 2014-04-16 10:04:55 · 245 阅读 · 0 评论 -
硬链接和软链接的区别和联系
首先要弄清楚,在Linux系统中,内核为每一个新创建的文件分配一个Inode(索引结点),每个文件都有一个惟一的inode号。文件属性保存在索引结点里,在访问文件时,索引结点被复制到内存在,从而实现文件的快速访问。 链接是一种在共享文件和访问它的用户的若干目录项之间建立联系的一种方法。Linux中包括两种链接:硬链接(Hard Link)和软链接(Soft Link),软链接又称为符号...原创 2014-05-14 14:30:35 · 201 阅读 · 0 评论 -
Linux vi 命令大全
[size=medium]Vim (vi) 是Linux中功能强大的编辑工具。VI 是visual edit 的缩写 文本编辑器是所有计算机系统中最常用的一种工具。UNIX下的编辑器有ex, sed和vi等,其中,使用最为广泛的是vi,而vi命令繁多,以下稍做总结, 1 VI有3中主要的模式:1.1 Normal mode:当进入vi时,默认的模式就是normal mode...原创 2014-05-14 14:38:42 · 139 阅读 · 0 评论 -
taskkill命令
windows命令行下强制关闭所有chrome进程[code="html"]taskkill /F /FI "IMAGENAME eq chrome.exe"[/code]原创 2017-01-12 13:51:58 · 362 阅读 · 0 评论 -
Linux如何显示文件指定行数的内容
[size=small]1. grep命令,比sed命令好用[url]http://www.cnblogs.com/end/archive/2012/02/21/2360965.html[/url]grep -n -C 100 "hello" a.log > searchResult.txt上面命令实现了多个功能:1)查找文件a.log中包含的关键词hello的内容2)结果...原创 2017-03-21 20:12:17 · 1494 阅读 · 0 评论 -
Linux环境(Environment)设置相关命令
参考链接:http://www.cyberciti.biz/faq/set-environment-variable-linux/http://bash.cyberciti.biz/guide/Variables#Commonly_Used_Shell_Variables 列出所有系统环境变量To see all system variables, type the fol...原创 2014-08-24 17:20:04 · 1354 阅读 · 0 评论