05 2017 档案
摘要:光复制几个代码到自己机器上跑是没有用的。要理解!公式理解有困难,就用图片辅助理解! MNIST中数字的表示方法 什么是one-ho...
阅读全文
摘要:~/bin适合放个人用户的 script /usr/local/bin存放系统中所有用户都可以使用的 script /usr/loc...
阅读全文
摘要:安装 sudo dpkg -i DEB_PACKAGE 卸载 sudo dpkg -r PACKAGE_NAME 重新配置已安装的包...
阅读全文
摘要:使用less查看 txt 文件之后,按\可以正则表达式来搜索: less phonelist.txt (232) 298-226...
阅读全文
摘要:?: Match an element zero or one time 例如: colou?r: color 或 co...
阅读全文
摘要:利用Linux 系统是自带的英语词典 /usr/share/dict/words grep -i '^..j.r$' /usr/sh...
阅读全文
摘要:任意字符(The Any Character) dot or period character: “.” grep -h '.zip...
阅读全文
摘要:新建一批 txt 文件: [me@linuxbox ~]$ ls /bin > dirlist-bin.txt[me@linuxbo...
阅读全文
摘要:touch命令有两个主要功能: 改变 timestamps新建空白文件 例如,不带任何参数地输入: touch file1 file...
阅读全文
摘要:The xargs command performs an interesting function. It accepts i...
阅读全文
摘要:以下面的命令为例: find ~ -type f -name 'foo*' -exec ls -l '{}' ';' 分面两部分,第...
阅读全文
摘要:-cmin n: 查找 exactly n 分钟前内容或属性被最后修过的文件-cnewer file: 查找内容或属性的最后修改时间...
阅读全文
摘要:例如,find -size +1M:查找大于 1 MB 的文件。其他参数: b: 512-byte blocks. This is ...
阅读全文
摘要:find -type d -name "dir_name" -type d是查找目录的参数,如果是查找其他的: -type b: ...
阅读全文
摘要:What is ppa? PPAs are for non standard software/updates. They ar...
阅读全文
摘要:1 HUP: hangup2 INIT: 相当于 Ctrl + c9 KILL15 TERM: Terminate (kill 的默...
阅读全文
摘要:命令格式: grep pattern [file...] When grep encounters a “pattern” in t...
阅读全文
摘要:Ctrl + u: 从光标所在位置一直删除到开头 Ctrl + k: 从光标所在位置一直删除到尾 Ctrl + b: 光标向后移动...
阅读全文
摘要:假设当前目录下有一个文件file name.txt。使用vim file name.txt是不能打开这个文件的,shell 默认会丢...
阅读全文
摘要:Linux 的 Shell 中可以使用的帮助命令有好几种: help command: get help for shell bui...
阅读全文
摘要:sudo apt-get install gnuplot 但是在 terminal 里面输入: gnuplot 提示 Termina...
阅读全文
摘要:ls /bin /usr/bin | sort | uniq | less 上面这条命令的实际效果是: 获得 ls /bin /us...
阅读全文
摘要:pipelines: command1 | command2 例如,ls -l /usr/bin | less,将输出结果作为 le...
阅读全文
摘要:ls -l /usr/bin > ls-output.txt 将输出结果重定向到 ls-output.txt 文件。注意:再次使用...
阅读全文
摘要:Hard link Hard link不能指向不在同一磁盘的文件Hard link不能指向目录Hard link与源文件几乎没有区别...
阅读全文
摘要:cp -a:连同属性和权限也一起复制 cp -i:如果不带该参数,默认覆盖同名文件而不会提醒。 cp -u:只拷贝符合以下条件的...
阅读全文
摘要:less filename:可以方便地查看文本文件
阅读全文
摘要:-rw-r--r-- 开头以“-”(a leading dash) 开头表示文件类型为 a regular file以”d”开头表示...
阅读全文
摘要:pwd:the current working directorycd -: return to the previous work...
阅读全文
摘要:直接使用系统的sudo apt-get install ruby2.0安装后,ruby -v显示ruby的版本依然是ruby 1.9...
阅读全文
摘要:pandas follows the numpy convention of raising an error when you t...
阅读全文
摘要:This is an introduction to pandas categorical data type, includi...
阅读全文
摘要:df.mean()等价于df.mean(0)。把轴向数据求平均,得到每列数据的平均值。 df.mean(1)按照另外一个axis的方...
阅读全文
摘要:df.loc[dates[0:1],'E']和df.loc[dates[0]:dates[1],'E']不同。 前者不包含**dat...
阅读全文
摘要:pandas.DataFrame.sort_index 用法 sort_index(axis=0, level=None, asce...
阅读全文
摘要:class pandas.Series(data=None, index=None, dtype=None, name=None, ...
阅读全文
摘要:欢迎使用Markdown编辑器写博客 本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦: M...
阅读全文