码迷,mamicode.com
首页 >  
搜索关键字:linux基本命令—— cat more w who pwd    ( 37061个结果
ubuntu在终端使用的常用命令
1.ubuntu系统显示IP地址:ifconfig2.ubuntu系统文件命令:cat:显示文本文件内容,全部文本。格式:cat filenamemore:显示文件内容,分页显示,回车逐行下翻。格式:more filenameless:显示文件内容,分页显示,可往上翻。格式:lessfilename...
分类:其他好文   时间:2014-07-09 19:58:20    阅读次数:243
如何用苹果终端运行程序
1.vim xx.c 新建文件2.进去之后点i 再输入C代码3.按ESC退出 shift+: 再输入wq,可退出C编译4.输入 cc xx.c可进行编译连接5.输入./a.out 输出运行结果其他运行小指令rm xx.c 清除ls 文件夹pwd 该环境的运行目录cd xx 跳转到xx文件夹wq保.....
分类:移动开发   时间:2014-07-09 15:30:11    阅读次数:239
mac终端的基础指令
pwd 打印工作目录 ls 显示当前目录下文件夹和文件 cd 切换路径或目录 esc 切换工作环境 vim 建立 :wq 保存并退出 cc 编译 cc -e 只编译到预处理完 rm 删除 ./a.out 执行 ls -a 隐藏文件也会显示在mac中 怎么把关键字的颜色变成不同的颜色。输入...
分类:其他好文   时间:2014-07-09 15:25:00    阅读次数:210
Prototype and Constructor in JavaScript
The concept of prototype in JavaScript is very confusing, especially to those who come with a C++/JAVA/... background. As an OOP langauge, JavaScript is very different from the languages with class. I...
分类:编程语言   时间:2014-07-09 12:55:02    阅读次数:253
POJ2886 Who Gets the Most Candies? 【线段树】+【单点更新】+【模拟】+【反素数】
Who Gets the Most Candies? Time Limit: 5000MS   Memory Limit: 131072K Total Submissions: 9416   Accepted: 2868 Case Time Limit: 2000MS Description N children are s...
分类:其他好文   时间:2014-07-09 12:46:35    阅读次数:234
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
linux基本命令
1.新安装一台RHEL6.x或CentOS6.x虚拟机1)关闭防火墙、SELinux[root@localhost~]#serviceiptablesstop//关闭防火墙iptables:清除防火墙规则:[确定]iptables:将链设置为政策ACCEPT:filter[确定]iptables:正在卸载模块:[确定][root@localhost~]#chkconfigiptablesoff[root@..
分类:系统相关   时间:2014-07-08 10:10:44    阅读次数:298
Linux基础知识-1
1.Linux可以看成是由四个部门组成:内核,用户界面,文件结构,工具2.Linux终端可以分成四类:串行终端,物理终端,虚拟终端,图形终端使用tty命令查看当前登录的终端Who命令查看当前登录的用户和占用的tty号码3.如果在查看系统中出现乱码,可以用exportLANG=US_en解决4.相对路..
分类:系统相关   时间:2014-07-08 09:04:50    阅读次数:297
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!