码迷,mamicode.com
首页 >  
搜索关键字:history bash    ( 17894个结果
myeclipse如何恢复已删除的文件和代码
这是一篇分享技巧的文章:myeclipse恢复误删文件和代码 [ 恢复误删文件 ] 今天在写代码的时候,不小心把一个包给删除了,然后这个包下所有的文件都没了,相信很多人都有类似的经历, 幸好myeclipse给我们提供了一个很好用的功能: 选中项目 -> Restore from Local History.. -> 界面如下图 勾选要恢复的文件,点击Restore就可以了,就算...
分类:系统相关   时间:2014-05-04 00:25:53    阅读次数:515
〖Linux〗gun screen 配置文件
screen 默认使用 bash shell,一般情况下screen只用于android build,tmux则是我的日常使用多终端管理工具。# Default Shellshell "/bin/bash"# show status barhardstatus alwayslastline "%{b...
分类:系统相关   时间:2014-05-03 22:14:57    阅读次数:454
passwd-shadow文件
[root@rusky /]# vi /etc/passwdroot:x:0:0:Redhat5:/root:/bin/bashrusky:x:500:500::/home/rusky:/bin/bash1.root:x:0:0:Redhat5:/root:/bin/bash 共七组,由:隔开 na...
分类:其他好文   时间:2014-05-03 22:09:12    阅读次数:338
Shell 程序 输出重新定向
#!/bin/bash clear echo "" echo "Enter Your First Name:" read FirstName echo "Enter Your Last Name:" read LastName echo "$FirstName $LastName">trans.dat...
分类:其他好文   时间:2014-05-03 22:02:31    阅读次数:299
Linux 下vim 不能进行保存
折腾了一个中午,在终端输入  vim myProgram 然后编辑以下内容 #!/bin/bash clear echo "" echo "The Telephone Book" echo "" echo "1.Display A Telephone Number" ehco "2.Add A New Telephone Number" echo "" echo "Q Quit" ec...
分类:系统相关   时间:2014-05-03 21:26:33    阅读次数:483
一个简单 的Shell 显示程序
#!/bin/bash clear declare FirstName Greeting Greeting="Hello ," echo "" echo "Enter Your First Name:" read FirstName echo "$ Greeting $FirstName" 首先   vim  Print  回车 然后   i   进入插入状态 编辑以上代码,Esc 键...
分类:其他好文   时间:2014-05-03 21:05:20    阅读次数:283
《生活在Linux中》之:prefer function to alias in Bash
在Bash环境中,定义了alias替换有时会产生不是想要的替换:e.g:;而定义function则可以避免这种缺陷。...
分类:系统相关   时间:2014-05-03 15:21:39    阅读次数:319
Linux系统优化脚本
#!/bin/bash#thisscriptisonlyforCentOS6#checktheOSplatform=`uname-i`if[$platform!="x86_64"];thenecho"thisscriptisonlyfor64bitOperatingSystem!"exit1fiecho"theplatformisok"version=`lsb_release-r|awk‘{printsubstr($2,1,1)}‘`if[$version!=6];thenecho"thisscriptiso..
分类:系统相关   时间:2014-05-03 14:51:00    阅读次数:415
sed
sed‘s/^/\//g‘4行首增加指定字符提取网页中的播放地址:#!/bin/bash printf"enteryourdir:" readdir echo"$dirisxx" cd$dir echo`pwd` forfilein`ls.` do if[-d$file];then echo$file cd$file echo`pwd` tree`pwd`|grepplay|sed‘s/.*//g‘>11 tree`pwd`|grepplay|sed‘s/.*//g..
分类:其他好文   时间:2014-05-03 00:53:15    阅读次数:336
Ubuntu Sublime text 2 安装 SublimeClang
Instructionshereare not great.First shut down ST2.Make sure you use absolute paths for symlink:e.g.$ curl -kL http://xrl.us/pythonbrewinstall | bash$ ...
分类:其他好文   时间:2014-05-02 11:01:23    阅读次数:382
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!