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

Tyler Shellberg's questions

Martin Hope
Tyler Shellberg
Asked: 2024-01-26 23:51:27 +0800 CST

导入的 wsl 实例包含所有者/组错误的文件夹,并且无法修改[重复]

  • 5
这个问题在这里已经有了答案:
无法更改 Ubuntu Bash for Windows 10 上的文件权限 (9 个答案)
昨天关门了。

我导入了一个 WSL 实例,以使我的开发环境与我同事的开发环境接近。

不幸的是,文件夹的所有者和组/mnt/c是创建该 wsl 实例的人。这意味着我什至无法cd进入它。

sudo chown,sudo chgrp甚至sudo chmod此文件夹上的所有操作都因“权限被拒绝”而失败。

tyler.shellberg@04-GT81BM2:/mnt$ ls -al
total 16
drwxr-xr-x  6 root         root         4096 Jan 25 08:44 .
drwxr-xr-x 19 root         root         4096 Jan 26 08:30 ..
drwxrwx---  1 not.me       not.me       4096 Jan 25 13:38 c

我可以做什么来解决这个问题?

ubuntu
  • 1 个回答
  • 24 Views
Martin Hope
Tyler Shellberg
Asked: 2022-05-21 07:22:09 +0800 CST

FISH - 如何从提示中隐藏主机名/计算机?

  • 5

对于上下文,我使用的是 FISH 3.1.0。

我查看了fish_config,但没有一个提示选项只是删除主机名/计算机,而其余部分保持不变。

有没有办法保留大部分默认提示,但只是在开始时删除该部分?

我只是使用默认提示。这里完全使用type fish_prompt:

fish_prompt is a function with definition
# Defined in /usr/share/fish/functions/fish_prompt.fish @ line 4
function fish_prompt --description 'Write out the prompt'
    set -l last_pipestatus $pipestatus
    set -l normal (set_color normal)

    # Color the prompt differently when we're root
    set -l color_cwd $fish_color_cwd
    set -l prefix
    set -l suffix '>'
    if contains -- $USER root toor
        if set -q fish_color_cwd_root
            set color_cwd $fish_color_cwd_root
        end
        set suffix '#'
    end

    # If we're running via SSH, change the host color.
    set -l color_host $fish_color_host
    if set -q SSH_TTY
        set color_host $fish_color_host_remote
    end

    # Write pipestatus
    set -l prompt_status (__fish_print_pipestatus " [" "]" "|" (set_color 
    $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus)

    echo -n -s (set_color $fish_color_user) "$USER" $normal @ (set_color 
    $color_host) (prompt_hostname) $normal ' ' (set_color $color_cwd) 
(prompt_pwd) $normal (fish_vcs_prompt) $normal $prompt_status $suffix " "                       
end
fish prompt
  • 1 个回答
  • 261 Views
Martin Hope
Tyler Shellberg
Asked: 2019-08-10 12:09:28 +0800 CST

有没有办法告诉 MATLAB 关闭/退出所有打开的可执行文件/MEX 文件?

  • 5

我目前正在从事一个使用 MATLAB 和 MEX 文件的项目。

我经常更改 MEX 源文件进行测试,然后用我新编译的文件替换这些文件。

然而,Windows 拒绝替换这些文件,因为 MATLAB 当前已将它们“打开”,尽管已退出调试过程。

所以我唯一的选择是完全关闭 MATLAB 应用程序,复制/替换 MEX 文件,然后重新打开 MATLAB。

这是一个痛苦。有什么办法吗?

windows matlab
  • 1 个回答
  • 54 Views
Martin Hope
Tyler Shellberg
Asked: 2019-06-22 12:36:29 +0800 CST

如何使用 cvs-fast-export 将 CVS 存储库转换为 GIT?

  • 9

作为另一种尝试,我正在尝试将 CVS 存储库转换为 GIT。推荐使用cvs-fast-export。唯一的问题是,我不知道该怎么做。我已经构建了它,但是我该如何调用它呢?这里解释了很多标志,但这比帮助更令人困惑。

是否有关于实际转换过程的简短解释?

存储库是远程的,我通常通过 SSH 进入。我不确定这个项目的文件夹结构是否正常。它大致是这样的:

  • (在远程服务器上)/somefolder/cvs/anotherfolder/

  • 包含:CVSROOT repo-I-want-to-clone-name

  • repo-I-want-to-clone-name 包含一个Attic, 以及,v后面的所有源代码文件。(没有 CVSROOT)

  • CVSROOT 包含一个Attic, cleanlog.sh, cvsignore, checkoutlist, checkoutlist,v, editinfo, editinfo,v, commmitinfo, loginfo, taginfo, 等等(这里没有像文件这样的源代码)

git cvs
  • 3 个回答
  • 3478 Views

Sidebar

Stats

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

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve