
Linux
QueenieK
这个作者很懒,什么都没留下…
展开
-
shell和python判断集群文件是否存在
shell判断集群文件是否存在 shell判断Linux系统文件是否存在 # 这里的-f参数判断$file是否存在 在这里插入代码片`if [ ! -f "$file" ]; then echo "文件不存在!" fi hadoop内置提供了判断某个文件是否存在的命令: [iteblog@www.iteblog.com ~]$ hadoop fs -help ...... -test -[defsz] <path>:Answer various questions about &原创 2021-05-14 19:30:56 · 240 阅读 · 0 评论 -
anaconda环境切换
激活与退出anaconda环境 # 激活 anaconda 环境 source activate # 退出 anaconda 环境 source deactivate 查看所有的虚拟环境 conda env list原创 2021-03-22 20:06:23 · 4221 阅读 · 0 评论 -
Linux文件操作
1、pwd 查看当前所在目录 [kqq@localhost ~]$ pwd /home/kqq 2、mkdir 创建文件或目录 [kqq@localhost ~]$ mkdir test1 创建一个名为test1的文件 3、touch在文件下创建txt文档,命名为a [kqq@localhost ~]$ touch test/a.txt 4、写入a.txt文档 [原创 2017-07-02 19:58:24 · 213 阅读 · 0 评论