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

An old man in the sea.'s questions

Martin Hope
An old man in the sea.
Asked: 2025-03-25 04:35:53 +0800 CST

为什么 ps 显示的 ruser 和 euser 进程与选项中所述的不同?

  • 6

在该命令的手册页中ps,我们有以下选项

   -U userlist
          Select by real user ID (RUID) or name.  It selects the processes whose real user  name  or  ID  is  in  the
          userlist list.  The real user ID identifies the user who created the process, see getuid(2).

   -u userlist
          Select  by effective user ID (EUID) or name.  This selects the processes whose effective user name or ID is
          in userlist.

          The effective user ID describes the user whose file  access  permissions  are  used  by  the  process  (see
          geteuid(2)).  Identical to U and --user.

然而,当我尝试

ps --forest -eo pid,ppid,ruser,euser,cputime,%mem,stat,comm -u example_username -U example_username

我仍然得到ruser与euser不同的流程example_username。

以下是一些示例:

   1255       1 root     root     00:00:00  0.0 Ss   cron
   1256       1 message+ message+ 00:00:02  0.0 Ss   dbus-daemon
   1261       1 gnome-r+ gnome-r+ 00:00:00  0.1 Ssl  gnome-remote-de
   1270       1 root     root     00:00:00  0.0 Sl   ecbd
   1278       1 polkitd  polkitd  00:00:01  0.0 Ssl  polkitd
   1281       1 nvidia-+ nvidia-+ 00:00:00  0.0 Ss   nvidia-persiste

-u和是什么类型的过滤器-U?

PS:我怀疑这些过滤器从属于该-e选项,即它们被该选项覆盖。这应该在手册页中明确说明,但我找不到有关它的任何信息...

bash
  • 1 个回答
  • 24 Views
Martin Hope
An old man in the sea.
Asked: 2025-03-13 06:04:26 +0800 CST

文件路径扩展包括父目录和当前目录?

  • 12

我已经读过几条关于.*在进行通配符时使用该模式的警告,因为它将包含当前目录和父目录。

我尝试echo .*过 和ls -l .*,我的 bash 只扩展到当前目录中的隐藏文件。由于 bash 负责执行 filapath 扩展,我假设它对所有其他命令都同样有效。

也许这只是早期 Bash 版本的问题...但是,我没有找到任何这方面的信息。

我的想法有什么问题?

bash
  • 1 个回答
  • 228 Views
Martin Hope
An old man in the sea.
Asked: 2025-01-24 14:37:35 +0800 CST

未找到 Chrome(命令)

  • 12

当我这样做时ps -e --forest,我得到以下输出:

在此处输入图片描述

而且,当我这样做的时候htop, 在此处输入图片描述

然而,当我这样做

  1. chrome,
  2. which chrome, 或者
  3. type chrome,

它们没有按预期工作……

我发现其中大多数的行为有些奇怪:

1.

Command 'chrome' not found, did you mean:
  command 'chroma' from deb golang-chroma (0.10.0-5ubuntu0.24.04.1)
  command 'chroma' from deb chroma (1.19-1ubuntu1)
Try: sudo apt install <deb name>
  1. 空行

  2. bash: type: chrome: not found

我有Version 132.0.6834.83 (Official Build) (64-bit)。

附录:这就是让我感到困惑的地方……当我用 htop 显示启动这些进程的命令时,我得到了

在此处输入图片描述

看来,这并非事实……

在此处输入图片描述

google-chrome
  • 1 个回答
  • 356 Views
Martin Hope
An old man in the sea.
Asked: 2024-09-10 04:58:38 +0800 CST

软件更新程序的升级按钮不起作用?

  • 5

在此处输入图片描述

当我按下升级按钮时,软件更新程序窗口就消失了。

另外,我也尝试过

sudo do-release-upgrade

但是,我收到以下消息:

Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.

尽管已经运行

sudo apt update
sudo apt upgrade

在进行升级时,我得到:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  libmagickcore-6.q16-dev vlc-plugin-qt libvlc5 vlc-data gsasl-common
  libvlccore9 libmagickwand-dev libheif1 vlc imagemagick vlc-bin vlc-l10n
  libopenexr-dev libopenexr25 libmagick++-6.q16-8 libpostproc55
  libmagickcore-6.q16-6-extra vlc-plugin-samba libgsasl7 libavcodec58
  libmagickwand-6.q16-6 vlc-plugin-notify libavutil56 imagemagick-6.q16
  libswscale5 redis-tools libmagickcore-6.q16-6 vlc-plugin-access-extra
  vlc-plugin-skins2 libgsl27 vlc-plugin-video-splitter libswresample3
  imagemagick-6-common vlc-plugin-video-output libmagickcore-6-arch-config
  libavformat58 heif-gdk-pixbuf libmagickwand-6-headers libgslcblas0
  libde265-0 libmagickwand-6.q16-dev libmagickcore-6-headers libvlc-bin
  vlc-plugin-base vlc-plugin-visualization
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
  apt apt-utils build-essential cpp g++ gcc libapt-pkg6.0 python3-update-manager shim-signed update-manager
  update-manager-core
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.

任何帮助都将不胜感激!

upgrade
  • 1 个回答
  • 41 Views
Martin Hope
An old man in the sea.
Asked: 2022-06-25 08:15:32 +0800 CST

安装了带有格式化分区选项的 Ubuntu 22.04

  • 0

我刚买了一台 Acer Nitro 5 AN515-57-76WE 笔记本电脑(没有操作系统),它的硬盘带有一些分区。但是,当我安装 Ubuntu 时,我选择了擦除磁盘和安装选项。后来,我在一个链接上读到(我再也找不到它了),我不应该格式化 UEFI 分区......不,我担心我做了一些非常糟糕的事情。

当我启动笔记本电脑时,我收到几条错误消息,然后是带有 Acer 徽标的主屏幕,而 Ubuntu 就在下方。

时不时地,当我在 Ubuntu 上工作时,笔记本电脑会停止(至少以图形方式)几秒钟......

这是我做的吗?在没有 UEFI 的情况下,我将来使用笔记本电脑可能会遇到什么问题?

partitioning
  • 1 个回答
  • 98 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