Chinaunix首页 | 论坛 | 博客
  • 博客访问: 950081
  • 博文数量: 194
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 2094
  • 用 户 组: 普通用户
  • 注册时间: 2018-11-02 11:19
文章分类

全部博文(194)

文章存档

2019年(162)

2018年(32)

我的朋友

发布时间:2019-11-13 08:55:58

在 Shell 中,用括号来表示数组,数组元素用"空格"符号分割开。定义数组的一般形式为:例如:或者还可以单独定义数组的各个分量:可以不使用连续的下标,而且下标的范围没有限制。读取数组元素值的一般格式是:例如:使用 @ 符号可以获取数组中的所有元素,例如:获取数组.........【阅读全文】

阅读(2248) | 评论(0) | 转发(0)

发布时间:2019-11-09 14:50:48

来啊,删我啊!$ touch test.txt$ chmod 777 test.txt$ ls -al test.txt-rwxrwxrwx 1 root root 13 Aug 31 15:03 test.txt$ rm test.txtrm: cannot remove ‘test.txt’: Operation not permittedi属性chattr +i test.txt$ lsattr test.txt----i--------e-- test.txtchattr -i test.txt文件属性.........【阅读全文】

阅读(2383) | 评论(0) | 转发(0)

发布时间:2019-11-05 08:43:16

获取可用命令行参数ct@ehbio:~/data$ man lsNAME ls - list directory contentsSYNOPSIS ls [OPTION]... [FILE]...DESCRIPTION List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort is specified. Mandatory arguments.........【阅读全文】

阅读(2285) | 评论(0) | 转发(0)

发布时间:2019-11-04 16:38:39

量子差异 六个阶段 ......【阅读全文】

阅读(2182) | 评论(0) | 转发(0)

发布时间:2019-11-04 16:28:35

实例#!/bin/bash# author:菜鸟教程# url:www.runoob.comecho "Shell 传递参数实例!";echo "执行的文件名:$0";echo "第一个参数为:$1";echo "第二个参数为:$2";echo "第三个参数为:$3";$ chmod +x test.sh $ ./test.sh 1 2 3Shell 传递参数实例!执行的文件名:./test.sh第一个参数为:1第二个参数.........【阅读全文】

阅读(5271) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册