
Linux
文章平均质量分 66
capslk84
这个作者很懒,什么都没留下…
展开
-
shell入门的拦路虎:syntax error: unexpected end of file
之所以称作拦路虎,是因为这个问题困扰了一天。决定开始学习shell,在windows上用虚拟机装好redhat linux,完成网络配置,能与我的windows交互了。其它也不需要配。开始学习bash,每次测试代码都在windows下写好,然后传到linux上执行。在学习到if等流程控制的语法的时候,我遇见了第一个难题写的if的测试总是不正确:“if.sh: l...2009-10-21 17:03:22 · 204 阅读 · 0 评论 -
shell中使用FTP
FTP的命令行格式为:ftp -v -d -i -n -g [主机名] 其中 -v 显示远程服务器的所有响应信息; -n 限制ftp的自动登录,即不使用.n etrc文件。在shell中使用ftp 写道FTP_SERVER=10.56.235.1FTP_USER=ftpUserFTP_PASS=ftpPasswordFTP_DIR=/ftpUser/ftpFT...原创 2011-01-07 11:14:50 · 507 阅读 · 0 评论 -
bash shell数组模拟队列queue和shell数组使用技巧
一 shell数组操作模拟队列queue或者栈stackhttp://www.tech-recipes.com/rx/911/queue-and-stack-using-array/here is a series of operation on array,we can use these functions to implement a queue or stack tha...原创 2011-07-07 18:31:58 · 438 阅读 · 0 评论 -
top——交互界面使用图解
一 top命令输出结果详解top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器。在linux命令行输入top命令: [root@app3 ~]#toptop命名输出结果如下图所示:分为两部分——统计信息区和进程信息区 统计信息区前五行是系统整体的统计信息。 第一行信息,...2011-12-02 18:19:47 · 497 阅读 · 0 评论