小编vin*_*nt 的帖子

可变路径问题:未找到 conda 命令

正确安装Anaconda后。我想在完成安装后执行以下操作。我在安装 anaconda 时忘记这样做了:

export PATH="/root/anaconda3/bin"
conda --version
conda command not found
Run Code Online (Sandbox Code Playgroud)

然后我打开

gedit /root/.bashrc 
Run Code Online (Sandbox Code Playgroud)

我在文件末尾添加

export PATH="/root/anaconda3/bin"
Run Code Online (Sandbox Code Playgroud)

但我仍然得到

conda --version
conda command not found
Run Code Online (Sandbox Code Playgroud)

EDIT1: gedit /root/.bashrc

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace …
Run Code Online (Sandbox Code Playgroud)

bash paths conda anaconda

30
推荐指数
2
解决办法
25万
查看次数

删除垃圾箱中的文件时参数列表太长

我有大约 1,000,000 张 png 图片要从我的垃圾箱中删除。我试过:

  1. rm -rf /home/ahmed/.local/share/Trash/*

  2. find . -name '*' | xargs rm -v

我得到以下

bash: /usr/bin/find: Argument list too long
Run Code Online (Sandbox Code Playgroud)

bash delete trash

2
推荐指数
1
解决办法
1493
查看次数

标签 统计

bash ×2

anaconda ×1

conda ×1

delete ×1

paths ×1

trash ×1