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