shell
礼彬fly
这个作者很懒,什么都没留下…
展开
-
(6-2)shell编程 (2)
for循环:通过使用一个变量去遍历给定列表中的每个元素,在每次变量赋值时执行一次循环体,直至赋值完成所有元素退出循环。 -----------------------------------------格式 1 -----------------------------: 写法一: [root@baolibin shell]# vi for1.sh [root@baolibin shell]#原创 2015-04-20 14:31:33 · 1000 阅读 · 0 评论 -
(6-1)shell编程 (1)
1、shell编程的hello word! [root@baolibin shell]# pwd /usr/local/shell [root@baolibin shell]# vim hello.sh [root@baolibin shell]# chmod +x hello.sh [root@baolibin shell]# more hello.sh #!/bin/bash #hel原创 2015-04-20 14:30:34 · 669 阅读 · 0 评论 -
(1)Linux命令笔记
1、显示当前目录清单 ls 2、显示隐含文件 ls -a 3、长格式输出 ls -l 文件类型 文件权限 连接数 属主 属组 大小 日期 时间 文件名 d rwxr-xr-x. 11 hadoop hadoop 4096 3月 26 20:00 zookeeper 4、递归显示 ls -R 5、显示当前目录 pwd 6、创建文件夹 mkdir dir1 递归创建文件夹原创 2015-03-28 20:40:32 · 1065 阅读 · 0 评论