AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-565196

Kong's questions

Martin Hope
Kong
Asked: 2021-08-11 04:04:50 +0800 CST

在 google chrome 或 firefox 中禁用抗锯齿

  • 0

我安装gnome-tweaks并禁用了抗锯齿,但它没有更改 google chrome 或 firefox 中的字体。如何在 google chrome 或 firefox 中禁用抗锯齿功能?

20.04
  • 1 个回答
  • 1543 Views
Martin Hope
Kong
Asked: 2021-07-29 15:06:36 +0800 CST

如何杀死多个进程?

  • 0

有没有办法杀死多个进程?例如

kill -9 49855 49856

我尝试过使用类似的命令,pkill但它们需要一个模式并且不允许多个 pid 输入。

kill
  • 1 个回答
  • 530 Views
Martin Hope
Kong
Asked: 2021-07-10 13:50:02 +0800 CST

查找 -exec rm -r 打印删除

  • 2

我正在尝试删除数 TB 的文件夹,并希望看到这些内容实际上已被删除。目前,该命令

find . -name "labelled_point_clouds" -type "d" -exec rm -r {} +

没有显示任何内容,我将等待几天不知道它是否在做某事。我怎样才能让命令也输出它删除的每个文件夹?

command-line
  • 1 个回答
  • 1527 Views
Martin Hope
Kong
Asked: 2021-05-19 05:15:34 +0800 CST

如何将命令输出写入文本文件但不执行它们?

  • 0

如何在不执行命令的情况下将任何命令的输出重定向到文本文件?例如,我想在运行之前确认会被压缩的文件

zip -r point_clouds.zip data/*/*/point_clouds

通过将输出写入文本文件,例如

zip -r point_clouds.zip data/*/*/point_clouds | tee test.txt

或删除操作

find . -name "*.tif" -type 'f' -size -160k | tee test.txt

command-line
  • 1 个回答
  • 136 Views
Martin Hope
Kong
Asked: 2021-04-02 06:44:44 +0800 CST

如何压缩特定的命名文件夹?

  • 0

我有如下所示的目录结构。我想创建一个仅包含point_clouds. 我尝试使用通配符,但它不起作用。

blender:~/data$ zip -r test.zip *point_clouds

如何仅压缩point_clouds子文件夹但保持结构相同?我不需要其他非压缩子文件夹。

data/
    Kallax_Shelf_Drawer/
        sequence1/
        sequence2/
        sequence3/
           dev3/
           frames/
           point_clouds/
    Lack_Coffee_Table/
        sequence1/
        sequence2/
        sequence3/
           dev3/
           frames/
           point_clouds/
    Lack_TV_Bench/
        sequence1/
        sequence2/
        sequence3/
           dev3/
           frames/
           point_clouds/
    Lack_Side_Table/
        sequence1/
        sequence2/
        sequence3/
           dev3/
           frames/
           point_clouds/
zip
  • 1 个回答
  • 42 Views
Martin Hope
Kong
Asked: 2021-02-18 14:59:04 +0800 CST

如何使用双通配符移动多个文件夹?

  • 0

我正在尝试移动所有中间有数字 1 的文件夹(glove.6B.60d.txt)和(model)

mv "./*.txt)(1)(m*" "/home/e1"

但我收到错误消息

mv: cannot stat './*.txt)(1)(m*': No such file or directory

我究竟做错了什么?我在同一个文件夹

在此处输入图像描述

mv
  • 2 个回答
  • 369 Views
Martin Hope
Kong
Asked: 2020-12-01 06:29:49 +0800 CST

通过删除子字符串重命名文件夹

  • 0

我有一个文件夹列表video_0001 video_0002 video_0003...如何将它们全部重命名为0001 0002 0003...?我试过了

mv video_{0001..0003} {0001..0003}但它不起作用

rename
  • 3 个回答
  • 196 Views
Martin Hope
Kong
Asked: 2020-07-29 01:26:32 +0800 CST

ffmpeg - 并排连接 5 个视频

  • 1

如何使用 ffmpeg 并排连接 5 个视频?有人也可以请解释一下命令。我只知道如何编写 python,并且很难理解更复杂的 ffmpeg 命令。例如,下面的这个脚本从左到右和从上到下连接视频,但我如何阅读命令?

ffmpeg -i input0 -i input1 -i input2 -i input3 -filter_complex \
"[0:v][1:v]hstack[top]; \
 [2:v][3:v]hstack[bottom]; \
 [top][bottom]vstack,format=yuv420p[v]; \
 [0:a][1:a][2:a][3:a]amerge=inputs=4[a]" \
-map "[v]" -map "[a]" -ac 2 output.mp4

是[0:v]指第 0 行到第 v-1 行吗?

hstack该命令应用于哪些变量[0:v][1:v]hstack[top]?为什么不是hstack(input0,input1)?

ffmpeg
  • 1 个回答
  • 951 Views
Martin Hope
Kong
Asked: 2020-07-28 03:09:08 +0800 CST

cmake - 如何设置 CUDA_cublas_LIBRARY 的路径?

  • 0

我正在尝试安装此https://github.com/NVlabs/ssn_superpixels但在步骤中收到以下错误cmake ..

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_LIBRARY (ADVANCED)
    linked by target "caffe" in directory /home/haziq/ASTAR/scripts/ssn_superpixels/lib/video_prop_networks/lib/caffe/src/caffe

然后我尝试搜索该库并找到一个libcublas.so.9.1和libcublas.so.9.1.85.

(base) haziq@mdeep:~/ASTAR/scripts/ssncaffe$ ls /usr/lib/x86_64-linux-gnu/libcublas.so.9.1
libcublas.so.9.1     libcublas.so.9.1.85

我现在如何告诉 CMake 到 CUDA_cublas_LIBRARY 的路径?命令

cmake .. CUDA_cublas_LIBRARY=/usr/lib/x86_64-linux-gnu/libcublas.so.9.1

不工作?

cmake
  • 1 个回答
  • 1324 Views
Martin Hope
Kong
Asked: 2020-07-22 09:04:36 +0800 CST

g++:错误:/usr/lib64/atlas/libsatlas.so:没有这样的文件或目录

  • 0

我正在尝试编译此代码https://thoth.inrialpes.fr/src/deepmatching/这应该与运行make命令一样简单,但出现错误

g++:错误:/usr/lib64/atlas/libsatlas.so:没有这样的文件或目录

我在网上读到这是因为我缺少 atlas 库所以尝试运行该命令pip install atlas但仍然遇到相同的错误。我可以就如何解决这个问题获得一些建议。

software-installation python libraries
  • 1 个回答
  • 665 Views
Martin Hope
Kong
Asked: 2019-12-27 19:31:27 +0800 CST

我可以互换使用 conda 和 pip3 来安装 Python 包吗?

  • 2

我不明白为什么有些 Python 包是使用安装的,conda而有些是使用pip3.

这些只是来自不同开发人员的不同安装程序但做同样的事情吗?

我可以互换使用它们来安装 Python 包吗?

例如:

conda create -n mtl python=3.6 anaconda
conda activate mtl
conda install pytorch torchvision cudatoolkit=10.1 -c pytorch
pip3 install opencv-python
python pip conda
  • 1 个回答
  • 5423 Views
Martin Hope
Kong
Asked: 2019-11-02 07:25:03 +0800 CST

如何将所有文件夹复制到同一目录中?

  • 3

如果我有数千个名为a/ b/ c/etc 的文件夹,我如何多次复制它们及其内容,以便为复制的文件夹赋予不同的名称,例如a-copy1/ b-copy1/ c-copy1/ ... a-copy12/ b-copy12/ c-copy12/

16.04
  • 4 个回答
  • 568 Views
Martin Hope
Kong
Asked: 2019-05-28 03:52:46 +0800 CST

Linux - 关闭屏幕会话终止进程

  • 0

我是新手,所以如果我使用了错误的术语,我深表歉意。

我正在使用 Linux 并使用 ssh 功能连接到我的学校工作站。如果我运行一个程序并关闭终端,程序就会停止。我在询问 ubuntu 时读到我应该使用屏幕功能。但是,当我关闭屏幕时出现错误并且进程停止运行。我仍然可以重新连接到屏幕。

linux screen XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server "localhost:11.0"       after 4570 requests (4570 known processed) with 192 events remaining.
ssh gnu-screen
  • 1 个回答
  • 870 Views
Martin Hope
Kong
Asked: 2019-02-09 05:08:30 +0800 CST

pip3 只安装在我的环境中吗?

  • 0

如果我使用命令创建了一个虚拟环境virtualenv venv然后我激活它source venv/bin/activate,我的终端现在看起来像这样

(venv) haziq@vita-workstation2:~$ 

安装包现在只安装在我的环境中还是全局安装?例子

pip3 install numpy
pip virtualenv
  • 1 个回答
  • 329 Views
Martin Hope
Kong
Asked: 2018-12-02 16:06:02 +0800 CST

如何将多个文件夹移动到另一个目录?[复制]

  • 2
这个问题在这里已经有了答案:
如何一次将多个文件移动到特定的目标目录? (14 个回答)
3年前关闭。

如何将多个文件夹移动到另一个目录?例如,我想将文件夹 000/ 001/ 002/ 移动到 train/000/ train/002 train/003。有没有我可以使用的简单命令

mv --from 000/ 001/ 002/ --to train/000/ train/002 train/003
command-line mv
  • 2 个回答
  • 18673 Views
Martin Hope
Kong
Asked: 2018-11-30 09:55:47 +0800 CST

使用换行符从 shell 脚本运行 python 脚本

  • 2

我有一个要从 shell 脚本运行的 python 代码。这个有效

python train.py --dataset './datasets/lausanne' --timestep 30 --obs_len 8 --loader_num_workers 1 --num_epochs 100 --batch_size 16 --embedding_dim 64 --h_dim 32 --num_layers 1 --mlp_dim 64 --dropout 0 --batch_norm 0 --learning_rate 0.0001 --output_dir './models' --print_every 100 --checkpoint_every 100 --checkpoint_name 'cnnlstm' --checkpoint_start_from None --restore_from_checkpoint 1 --use_gpu 1 --gpu_num '0'

但是这个没有。我只想将命令拆分为多行。

python train.py \
# Dataset options
--dataset './datasets/lausanne' --timestep 30 --obs_len 8 --loader_num_workers 1 \
# Optimization
--num_epochs 100 --batch_size 16 \
# Model options
--embedding_dim 64 --h_dim 32 --num_layers 1 --mlp_dim 64 --dropout 0 --batch_norm 0 --learning_rate 0.0001 \
# Output
--output_dir './models' --print_every 100 --checkpoint_every 100 --checkpoint_name 'cnnlstm' --checkpoint_start_from None --restore_from_checkpoint 1 \
# Misc
--use_gpu 1 --gpu_num '0'
scripts python bash
  • 1 个回答
  • 2510 Views
Martin Hope
Kong
Asked: 2018-11-30 03:19:55 +0800 CST

rsync 不工作

  • 0

使用 rsync 时如何排除文件夹?

rsync -i /home/kong/.ssh/id_rsantu --exclude /media/kong/Elements/sgan/dataset/ /media/kong/Elements/sgan/ kongserver@35.123.456.78:~/

这就是我得到的信息。但是我进入服务器并没有看到复制的文件。

skipping directory .
<f..T...... id_rsantu

我包括了 --exclude= 但它仍在复制,/media/kong/Elements/sgan/dataset/因为我看到了

<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012818.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012819.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012820.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012821.png
rsync
  • 1 个回答
  • 1530 Views
Martin Hope
Kong
Asked: 2018-11-28 15:27:59 +0800 CST

LD_LIBRARY_PATH 和 PATH 在哪里?

  • 1

我输入 echo$LD_LIBRARY_PATH并得到了/usr/local/cuda-9.0/lib64,但是当我检查我的 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
case $- in
    *i*) ;;
      *) return;;
esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
    xterm-color|*-256color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
        # We have color support; assume it's compliant with Ecma-48
        # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
        # a case would tend to support setf rather than setaf.)
        color_prompt=yes
    else
        color_prompt=
    fi
fi

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi

# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi

# added by Anaconda3 installer
export PATH="/home/kong/anaconda3/bin:$PATH"
                                                                                                                                                                                          120,1         Bot
environment-variables bashrc
  • 1 个回答
  • 1954 Views
Martin Hope
Kong
Asked: 2018-08-21 21:05:45 +0800 CST

pip install <dot> 是什么意思?

  • 5

我正在安装这个https://github.com/wkentaro/pytorch-fcn。它告诉我执行此指令。

git clone https://github.com/wkentaro/pytorch-fcn.git
cd pytorch-fcn
pip install .

是什么pip install .意思?只需键入 dot 我正在运行哪个文件夹或文件?setup.py?

pip
  • 1 个回答
  • 7378 Views
Martin Hope
Kong
Asked: 2017-09-05 23:41:45 +0800 CST

“/”中没有剩余空间,但“/home”中剩余很多空间[重复]

  • 0
这个问题在这里已经有了答案:
如何在 /boot 中释放更多空间? (23 个回答)
5年前关闭。

我安装了 ubuntu 并按照指南将 20gb 放入“/”,其余(150gb)放入“/home”。现在我刚刚发现 ubuntu 中安装的很多东西通常会转到“/”而不是“/home”。我还有很多东西要安装。

那么 '/home' 有什么意义呢?我该如何解决 ?我应该将 150gb 从 '/home' 转移到 / 吗?

Filesystem      Size  Used Avail Use% Mounted on
udev            7.8G     0  7.8G   0% /dev
tmpfs           1.6G  9.5M  1.6G   1% /run
/dev/sda6        19G   16G  1.8G  91% /
tmpfs           7.8G  676K  7.8G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/sda2        96M   29M   68M  31% /boot/efi
/dev/sda8       159G  1.1G  150G   1% /home
tmpfs           1.6G   56K  1.6G   1% /run/user/1000

什么是 /boot ?它不是“/”或“/home”

partitioning
  • 1 个回答
  • 491 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve