码迷,mamicode.com
首页 >  
搜索关键字:cat 大众点评    ( 24258个结果
hadoop dfs常用命令
hadoop dfs -cat xxxhadoop dfs -ls [xxx]hadoop dfs -rm xxx删除目录及其内容hadoop dfs -rmr xxx 查看子目录数、文件数及大小hadoop dfs -count xxx 查看目录大小hadoop dfs -du xxxhadoop...
分类:其他好文   时间:2014-07-12 00:22:25    阅读次数:164
generate ascii table
$ cat ascii.sh dec_count=0while [ $dec_count -lt 256 ]do echo -e "\x$(echo "ibase=10;obase=16;$dec_count" | bc)\c" dec_count=$((dec_coun...
分类:其他好文   时间:2014-07-11 22:42:50    阅读次数:496
Linux Cat命令主要三大功能
Linux Cat命令主要有三大功能:1,Cat命令一次显示整个文件。$ cat filename2,Cat命令从键盘创建一个文件。$ cat > filename只能创建新文件,不能编辑已有文件。3,Cat命令将几个文件合并为一个文件。$ cat file1 file2 > file参数:-n 或...
分类:系统相关   时间:2014-07-11 09:15:14    阅读次数:466
linux命令
1. 查看内核版本命令: 1) [root@q1test01 ~]# cat /proc/version Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com)(gcc version 3.4.4 20050721 (R...
分类:系统相关   时间:2014-07-09 21:14:16    阅读次数:346
ubuntu在终端使用的常用命令
1.ubuntu系统显示IP地址:ifconfig2.ubuntu系统文件命令:cat:显示文本文件内容,全部文本。格式:cat filenamemore:显示文件内容,分页显示,回车逐行下翻。格式:more filenameless:显示文件内容,分页显示,可往上翻。格式:lessfilename...
分类:其他好文   时间:2014-07-09 19:58:20    阅读次数:243
linux服务器禁ping
[root@localhost~]#cat/proc/sys/net/ipv4/icmp_echo_ignore_all查看icmp_echo_ignore_all的值0是允许ping1是禁止ping修改为icmp_echo_ignore_all的值为1这个只是在内存生效,重启就恢复0[root@localhost~]#echo"1">/proc/sys/net/ipv4/icmp_echo_ignore_all然后ping下这台..
分类:系统相关   时间:2014-07-09 08:55:34    阅读次数:260
在脚本中生成配置文件
其实是个输入输出重定向的简单应用,cat>>/tmp/example.conf<<EOF >Inputathere >Youcanentermultiplelines >AndscriptisendofEOFlikebelow >EOF输出重定向到某配置文件,配置文件的内容来自输入重定向<<表示此处即文件,而非类似于>>的追..
分类:其他好文   时间:2014-07-09 08:20:57    阅读次数:188
构造函数初始化器
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication2 { classProgram { staticvoidMain(string[]args) { catc=newcat("萌萌");//先执行cat(strings,inti)构造函数 Console.WriteLi..
分类:其他好文   时间:2014-07-09 08:05:19    阅读次数:184
在Ubuntu下配置运行Hadoop2.4.0单节点配置
还没有修改hosts,请先按前文修改。 还没安装java的,请按照前文配置。 (1)增加用户并设立公钥: sudo addgroup hadoop sudo adduser --ingroup hadoop hduser su - hduser cat $HOME/.ssh/id_rsa.pub >...
分类:其他好文   时间:2014-07-08 22:57:08    阅读次数:329
linux下查看文件内容cat,more,less
1. 查看文件内容常用的命令 cat : 由第一行显示文件内容 tac: 从最后一行开始显示,与cat相反 nl : 文件内容和行号一起输出 more: 一页一页显示 less: 与more类似,可以往前翻页 head: 取头部几行 tail: 取尾部几行 od: 以二进制方式读取文件内容...
分类:系统相关   时间:2014-07-08 21:30:55    阅读次数:253
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!