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-759533

Alish's questions

Martin Hope
Alish
Asked: 2020-09-13 02:17:56 +0800 CST

是否有任何命令可以抑制冗余字符串?

  • 0

使用此命令find $FOAM_TUTORIALS -type f -name fvSchemes|xargs grep -rh div\(phi,U\)|sort,我得到:

    div(div(phi,U)) Gauss linear;
    div(div(phi,U)) Gauss linear;
    div(div(phi,U)) Gauss linear;
    div(phi,U)      bounded Gauss limitedLinear 0.2;
    div(phi,U)      bounded Gauss limitedLinear 0.2;
    div(phi,U)      bounded Gauss limitedLinear 0.2;
    div(phi,U)      bounded  Gauss limitedLinearV 1;
    div(phi,U)      bounded Gauss limitedLinearV 1;
    div(phi,U)      bounded Gauss limitedLinearV 1;
    div(phi,U)          bounded Gauss linear;
    div(phi,U)      bounded Gauss linear;
    div(phi,U)      bounded Gauss linear;
    div(phi,U)      bounded Gauss linear;
    div(phi,U)      bounded Gauss linear;
    div(phi,U)          bounded Gauss linearUpwind grad;
    div(phi,U)       bounded Gauss linearUpwind grad(U);
    div(phi,U)      bounded Gauss linearUpwind grad(U);
    div(phi,U)      bounded Gauss linearUpwind grad(U);
    div(phi,U)      bounded Gauss linearUpwind grad(U);
    div(phi,U)      bounded Gauss linearUpwind grad(U);
    div(phi,U)      bounded Gauss linearUpwind grad(U);
    div(phi,U)         bounded Gauss linearUpwind gradUConv;
    div(phi,U)         bounded Gauss linearUpwind gradUConv;
    div(phi,U)         bounded Gauss linearUpwind gradUConv;
    div(phi,U)         bounded Gauss linearUpwind gradUConv;
    div(phi,U)         bounded Gauss linearUpwind gradUConv;
    div(phi,U)         bounded Gauss linearUpwind gradUConv;
    div(phi,U)         bounded Gauss linearUpwind gradUConv;
    div(phi,U)         bounded Gauss linearUpwind gradUConv;
    div(phi,U)         bounded Gauss linearUpwind gradUConv;
    div(phi,U)      bounded Gauss linearUpwind gradUConv;
    div(phi,U)      bounded Gauss linearUpwind gradUConv;
    div(phi,U)      bounded Gauss linearUpwind gradUConv;
    div(phi,U)      bounded Gauss linearUpwind gradUConv;
    div(phi,U)      bounded Gauss linearUpwind gradUConv;
    div(phi,U)      bounded Gauss linearUpwind gradUConv;
    div(phi,U)      bounded Gauss linearUpwind gradUConv;
    div(phi,U)      bounded Gauss linearUpwind gradUConv;
    div(phi,U)      bounded Gauss linearUpwind gradUConv;
    div(phi,U)      bounded Gauss linearUpwind gradUConv;
    div(phi,U)      bounded Gauss linearUpwind gradUConv;
    div(phi,U)          bounded Gauss linearUpwind limited;
    div(phi,U)      bounded Gauss linearUpwind limited;
    div(phi,U)      bounded Gauss linearUpwind limited;
    div(phi,U)      bounded Gauss linearUpwind limited;
    div(phi,U)      bounded Gauss linearUpwind unlimited;
    div(phi,U)      bounded Gauss linearUpwind unlimited;
    div(phi,U)              bounded Gauss linearUpwindV grad(U);
    div(phi,U)              bounded Gauss linearUpwindV grad(U);
    div(phi,U)      bounded Gauss linearUpwindV grad(U);
    div(phi,U)      bounded Gauss linearUpwindV grad(U);
    div(phi,U)      bounded Gauss linearUpwindV grad(U);
    div(phi,U)      bounded Gauss linearUpwindV grad(U);
    div(phi,U)      bounded Gauss linearUpwindV grad(U);
    div(phi,U)      bounded Gauss linearUpwindV grad(U);
    div(phi,U)      bounded Gauss linearUpwindV grad(U);
    div(phi,U)      bounded Gauss localBlended linearUpwindV grad(U) linear;
    div(phi,U)      bounded Gauss LUST grad(U);
    div(phi,U)                    bounded Gauss upwind;
    div(phi,U)          bounded Gauss upwind;
    div(phi,U)          bounded Gauss upwind;
    div(phi,U)          bounded Gauss upwind;
    div(phi,U)          bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div(phi,U)      Gauss CoBlended
    div(phi,U)      Gauss cubic;
    div(phi,U)      Gauss cubic;
    div(phi,U)      Gauss DEShybrid
    div(phi,U)      Gauss DEShybrid
    div(phi,U)      Gauss limitedLinear 1;
    div(phi,U)          Gauss limitedLinearV 1;
    div(phi,U)          Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss limitedLinearV 1;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linear;
//    div(phi,U)      Gauss linear;
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,U)          Gauss linearUpwind limited;
    div(phi,U)          Gauss linearUpwind limited;
    div(phi,U)      Gauss linearUpwind limited;
    div(phi,U)      Gauss linearUpwindV grad(U);
    div(phi,U)      Gauss LUST grad(U);
    div(phi,U)      Gauss LUST grad(U);
    div(phi,U)      Gauss LUST grad(U);
    div(phi,U)      Gauss LUST grad(U);
    div(phi,U)      Gauss LUST grad(U);
    div(phi,U)      Gauss LUST grad(U);
    div(phi,U)      Gauss LUST grad(U);
    div(phi,U)      Gauss LUST grad(U);
    div(phi,U)      Gauss LUST grad(U);
    div(phi,U)      Gauss LUST grad(U);
//    div(phi,U)      Gauss LUST grad(U);// linear;
    div(phi,U)      Gauss LUST unlimitedGrad(U);
    div(phi,U)      Gauss skewCorrected linear;
    div(phi,U)          Gauss upwind;
    div(phi,U)          Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;
//    div(phi,U)      Gauss upwind;
//    div(phi,U)      Gauss upwind;
//    div(phi,U)      Gauss upwind;
//    div(phi,U)      Gauss upwind;
//    div(phi,U)      Gauss upwind;
    div(phi,U)      Gauss upwind;//linearUpwind grad(U);
    div(phi,U)      Gauss vanLeerV;

我希望冗余行只显示一次,如下所示:

div(phi,U)      bounded Gauss limitedLinear 0.2;
div(phi,U)      bounded Gauss limitedLinearV 1;
div(phi,U)      bounded Gauss linear;
div(phi,U)      bounded Gauss linearUpwind grad;
div(phi,U)      bounded Gauss linearUpwind grad(U);
div(phi,U)      bounded Gauss linearUpwind gradUConv;
div(phi,U)      bounded Gauss linearUpwind limited;
div(phi,U)      bounded Gauss linearUpwind unlimited;
div(phi,U)      bounded Gauss linearUpwindV grad(U);
div(phi,U)      bounded Gauss localBlended linearUpwindV grad(U) linear;
div(phi,U)      bounded Gauss LUST grad(U);
div(phi,U)      bounded Gauss upwind;
div(phi,U)      Gauss CoBlended 0.01 limitedLinearV 1 0.05 linearUpwind grad(U);
div(phi,U)      Gauss cubic;
div(phi,U)      Gauss DEShybrid linear linearUpwind grad(U) hmax 0.65 1 0.028 0 1 1;
div(phi,U)      Gauss DEShybrid linear linearUpwind grad(U) hmax 0.65 1 1 0 1 1;
div(phi,U)      Gauss limitedLinear 1;
"div\(phi.*,U.*\)" Gauss limitedLinearV 1;
div(phi,U)      Gauss limitedLinearV 1;
div(phi,U)      Gauss linear;
div(phi,U)      Gauss linearUpwind grad(U);
div(phi,U)      Gauss linearUpwind limited;
div(phi,U)      Gauss linearUpwindV grad(U);
div(phi,U)      Gauss LUST grad(U);
div(phi,U)      Gauss LUST unlimitedGrad(U);
div(phi,U)      Gauss skewCorrected linear;
"div\(phi.*,U.*\)" Gauss upwind;
div(phi,U)      Gauss upwind;
div(phi,U)      Gauss vanLeerV;
command-line text-processing
  • 1 个回答
  • 77 Views
Martin Hope
Alish
Asked: 2020-04-30 01:03:52 +0800 CST

为什么不浏览时接收率不为零?

  • 1

当我没有打开浏览器并且没有更新或下载任何其他文件时,系统监视器仍然显示非零接收率,如下所示。为什么? 在此处输入图像描述

networking internet 18.04
  • 1 个回答
  • 59 Views
Martin Hope
Alish
Asked: 2020-01-26 02:34:42 +0800 CST

nohup 和 mpirun 有什么冲突吗?

  • 1

我想在 ubuntu 台式计算机上开始一个大型模拟。我可以物理(非远程)访问这台 PC。此模拟可能需要数周时间。启动进程的命令是:

mpirun -np 100 icoFoam -parallel | tee log

icoFoam可执行文件在哪里,-parallel需要作为它的选项。
此命令在终端中打印数据。有时终端关闭或操作系统在长时间模拟期间随机注销,因此,进程终止。我试图通过几个替代命令来解决这个问题:

nohup mpirun -np 100 icoFoam -parallel > log  & 
nohup mpirun -np 100 icoFoam -parallel > log  & disown & 
nohup mpirun -np 100 icoFoam -parallel | tee log & disown & 
nohup mpirun -np 100 icoFoam -parallel | tee log & disown & > /dev/null 2>& 1 & nohup mpirun -np 100 icoFoam -parallel > /dev/null 2>& 1  &
systemd-run --scope --user mpirun -np 100 icoFoam -parallel | tee log &
systemd-run --scope --user mpirun -np 100 icoFoam -parallel | tee log & disown &
systemd-run --scope --user nohup mpirun -np 100 icoFoam -parallel | tee log & disown &
tmux

结果
除了 form tmux,使用这些命令中的任何一个,当我关闭终端时,进程都会终止。
tmux当我从我的用户帐户注销时也会终止。

我的发现

  1. 作为最简单的解决方法,我混合了nohup和disown(从这里)。
  2. 我猜想包括 , 在内的命令由于关闭终端(从这里)而tee被终止。因此,我使用重定向到日志文件或(从这里),这两者也都通过关闭终端而终止。 SIGPIPE/dev/null
  3. 我也检查了systemd-run。但它也可以通过关闭终端来终止。
  4. 为了查看程序是否安装了自己的处理程序,我执行了这个:

    nohup mpirun -np 100 icoFoam -parallel > log  &
    grep Sig /proc/$!/status
    

    哪个返回

    SigIgn: 0000000000000000
    

    因此,我猜是这种情况,即mpirun安装了自己的处理程序来覆盖nohup(从这里)的保护。

  5. 我不知道是否可以发送自定义处理程序以mpirun不覆盖nohup.

我的问题
我想执行以下命令,以便只要终端未关闭,它就会在终端中打印输出,并且不会通过关闭终端或从用户帐户注销来终止该过程。

mpirun -np 100 icoFoam -parallel

操作系统:Ubuntu 18.04
可执行文件:OpenFOAM
mpirun(Open MPI):2.1.1

更新
通过注销,我的意思是按注销按钮(图像),而不是锁定屏幕(super+L) 在此处输入图像描述

先感谢您。

gnome-terminal logout signal 18.04 mpi
  • 3 个回答
  • 1167 Views
Martin Hope
Alish
Asked: 2020-01-04 09:02:58 +0800 CST

freecad 窗口变得透明

  • 0

最近,我的freecad遇到了一个奇怪的透明问题。当我打开它时,没有问题(图片)。但是当我选择去一个特定的工作场所时,比如说part,窗口变得透明,所以我的桌面在 freecad 背面可见(这是我的桌面,这是 freecad 窗口)。
我已删除并重新安装它,但问题仍然存在。我还必须提到,这不是不透明的问题,可以通过以下方式从终端控制:sh -c 'xprop...

command-line transparency cad 18.04 free-software
  • 1 个回答
  • 135 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