摘要: 一:mkdir 创建目录 1:mkdir /a 在根目录下创建a目录 2:mkdir /a /b /c 在根目录下创建a,b,c目录 3:mkdir -p /test/a/b 加了参数P,如果根目录下没有test目录,也会创建成功 二: echo 显示一行文本 1:echo hello 在命令行输出 阅读全文
posted @ 2019-08-02 17:47 Be_your_own_hero 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 一 : mv 移动或者更改文件或文件夹 1:移动文件(将/test1下面的a.txt 文件移动到 /test2下面) mv /test1/a.txt /test2 2:改名(将/test2下面的a.txt文件重名名为 b.txt) mv /test2/a.txt /test2/b.txt 3:移动文 阅读全文
posted @ 2019-08-02 17:06 Be_your_own_hero 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 一 : cd(切换当前工作目录) 1. cd .. 返回上一级目录 2. cd / 返回到根目录 二 :ls (list) 列出当前目录下的文件和文件夹 1. ls -a 列出当前目录下所有文件和文件夹(包括隐藏文件和文件夹) [root@localhost /]# lsacedental all_ 阅读全文
posted @ 2019-08-02 13:24 Be_your_own_hero 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1:通过元素ID属性定位 driver.find_element_by_id("{}".format("元素id属性的值")) 2: 通过元素class属性定位 driver.find_element_by_class_name("{}".format("元素class属性的值")) 3:通过元素的 阅读全文
posted @ 2019-08-02 11:15 Be_your_own_hero 阅读(272) 评论(0) 推荐(0) 编辑