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

Madhubala's questions

Martin Hope
Madhubala
Asked: 2021-07-24 08:50:45 +0800 CST

dd 没有任何选项

  • 4

dd 命令在没有任何选项的情况下运行时会做什么?

[hannah@lenovo ~]$ dd
^C0+0 records in
0+0 records out
0 bytes copied, 7.71982 s, 0.0 kB/s

它会删除任何文件还是不用担心?谷歌搜索没有帮助

提前致谢

linux dd
  • 1 个回答
  • 175 Views
Martin Hope
Madhubala
Asked: 2020-12-09 03:40:08 +0800 CST

自定义windows终端

  • 5

如何在 Windows 终端中制作自己的配色方案?更具体地说:制作配色方案的正确格式是什么?

一点解释:

让我们以这个方案为例:

{
    "name" : "Campbell",

    "cursorColor": "#FFFFFF",
    "selectionBackground": "#FFFFFF",

    "background" : "#0C0C0C",
    "foreground" : "#CCCCCC",

    "black" : "#0C0C0C",
    "blue" : "#0037DA",
    "cyan" : "#3A96DD",
    "green" : "#13A10E",
    "purple" : "#881798",
    "red" : "#C50F1F",
    "white" : "#CCCCCC",
    "yellow" : "#C19C00",
    "brightBlack" : "#767676",
    "brightBlue" : "#3B78FF",
    "brightCyan" : "#61D6D6",
    "brightGreen" : "#16C60C",
    "brightPurple" : "#B4009E",
    "brightRed" : "#E74856",
    "brightWhite" : "#F2F2F2",
    "brightYellow" : "#F9F1A5"
},

name像, cursorColor, selectionBackground,background和这样的术语foreground是不言自明的,但是它之后的颜色顺序呢?!!它们是按任何顺序写的吗?如果我将brightRed{3rd line from bottom} 更改为其他颜色会发生什么变化?我找不到任何文章回答我的问题。提前致谢 !!

我已经搜索了一些相关文章以获得一些帮助:

自定义设置/颜色方案

自定义设置/配置文件设置

colors terminal
  • 2 个回答
  • 67 Views
Martin Hope
Madhubala
Asked: 2020-10-13 22:19:08 +0800 CST

如何按磁盘上存在的顺序打印分区列表(Manjaro linux)

  • 5

Sda 是这样分区的:

在此处输入图像描述

注意具体顺序:sda11 > sda6 > sda7 > sda9 > ...

想要以相同的顺序打印分区信息并将其存储在文本文件中。

我试过的 -

gdisk -l /dev/sda

[manjaro@manjaro-10ahs0wn00 ~]$ sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 500118192 sectors, 238.5 GiB
Model: Lexar 256GB SSD 
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): F07CA5E4-85FA-F247-855D-4DB101931C1C
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 500118158
Partitions will be aligned on 1-sector boundaries
Total free space is 135154 sectors (66.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1        19255304       500118143   229.3 GiB   8300  STATE
   2         2117638         2183173   32.0 MiB    7F00  KERN-A
   3        10866696        19255303   4.0 GiB     7F01  ROOT-A
   4         2183174         2248709   32.0 MiB    7F00  KERN-B
   5         2478088        10866695   4.0 GiB     7F01  ROOT-B
   6           16448           16448   512 bytes   7F00  KERN-C
   7           16456         2113607   1024.0 MiB  7F01  ROOT-C
   8         2248712         2281479   16.0 MiB    8300  OEM
   9         2113608         2113608   512 bytes   7F02  reserved
  10         2113609         2113609   512 bytes   7F02  reserved
  11              64           16447   8.0 MiB     FFFF  RWFW
  12         2412552         2478087   32.0 MiB    EF00  EFI-SYSTEM

fdisk -l /dev/sda

[manjaro@manjaro-10ahs0wn00 ~]$ sudo fdisk -l /dev/sda
[sudo] password for manjaro: 
Disk /dev/sda: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: Lexar 256GB SSD 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: F07CA5E4-85FA-F247-855D-4DB101931C1C

Device        Start       End   Sectors   Size Type
/dev/sda1  19255304 500118143 480862840 229.3G Linux filesystem
/dev/sda2   2117638   2183173     65536    32M ChromeOS kernel
/dev/sda3  10866696  19255303   8388608     4G ChromeOS root fs
/dev/sda4   2183174   2248709     65536    32M ChromeOS kernel
/dev/sda5   2478088  10866695   8388608     4G ChromeOS root fs
/dev/sda6     16448     16448         1   512B ChromeOS kernel
/dev/sda7     16456   2113607   2097152     1G ChromeOS root fs
/dev/sda8   2248712   2281479     32768    16M Linux filesystem
/dev/sda9   2113608   2113608         1   512B ChromeOS reserved
/dev/sda10  2113609   2113609         1   512B ChromeOS reserved
/dev/sda11       64     16447     16384     8M unknown
/dev/sda12  2412552   2478087     65536    32M EFI System

Partition table entries are not in disk order.

sfdisk -d /dev/sda

[manjaro@manjaro-10ahs0wn00 ~]$ sudo sfdisk -d /dev/sda
[sudo] password for manjaro: 
label: gpt
label-id: F07CA5E4-85FA-F247-855D-4DB101931C1C
device: /dev/sda
unit: sectors
first-lba: 34
last-lba: 500118158
sector-size: 512

/dev/sda1 : start=    19255304, size=   480862840, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=0D2E3A01-7890-074A-9801-9407ED8D90E3, name="STATE"
/dev/sda2 : start=     2117638, size=       65536, type=FE3A2A5D-4F32-41A7-B725-ACCC3285A309, uuid=417541BD-8D79-A34C-AE63-CB8B79BE3D03, name="KERN-A", attrs="GUID:48,49,50,51,52,53,54,55"
/dev/sda3 : start=    10866696, size=     8388608, type=3CB8E202-3B7E-47DD-8A3C-7FF2A13CFCEC, uuid=C9D9828E-5FC8-9A42-A6A0-6E64FF8F3383, name="ROOT-A"
/dev/sda4 : start=     2183174, size=       65536, type=FE3A2A5D-4F32-41A7-B725-ACCC3285A309, uuid=3E6C72E3-744D-1B40-825D-570F4D1CB0DF, name="KERN-B", attrs="GUID:52,53,54,55"
/dev/sda5 : start=     2478088, size=     8388608, type=3CB8E202-3B7E-47DD-8A3C-7FF2A13CFCEC, uuid=4393B767-9292-3E4F-BC6A-FFCB3BB76B4C, name="ROOT-B"
/dev/sda6 : start=       16448, size=           1, type=FE3A2A5D-4F32-41A7-B725-ACCC3285A309, uuid=A2E8DF92-A885-D64A-9DCE-109DFD3A912D, name="KERN-C", attrs="GUID:52,53,54,55"
/dev/sda7 : start=       16456, size=     2097152, type=3CB8E202-3B7E-47DD-8A3C-7FF2A13CFCEC, uuid=105C4E07-0CD3-9A4D-8C31-E3D75A0B80AF, name="ROOT-C"
/dev/sda8 : start=     2248712, size=       32768, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=D80BFCAD-4771-6C48-9DBB-0ADFBE10DBF1, name="OEM"
/dev/sda9 : start=     2113608, size=           1, type=2E0A753D-9E48-43B0-8337-B15192CB1B5E, uuid=6D272F77-489E-E94A-B903-59BFD612F648, name="reserved"
/dev/sda10 : start=     2113609, size=           1, type=2E0A753D-9E48-43B0-8337-B15192CB1B5E, uuid=E0C92DB9-1C4D-9B4C-92C6-D002B685E39C, name="reserved"
/dev/sda11 : start=          64, size=       16384, type=CAB6E88E-ABF3-4102-A07A-D4BB9BE3C1D3, uuid=E9016D9E-426D-434E-ABA0-614273D7BA5A, name="RWFW"
/dev/sda12 : start=     2412552, size=       65536, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=EE625F5C-40D7-614D-80A3-0C4DA423711B, name="EFI-SYSTEM"

sfdisk /dev/sda

[manjaro@manjaro-10ahs0wn00 ~]$ sudo sfdisk /dev/sda

Welcome to sfdisk (util-linux 2.36).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Checking that no-one is using this disk right now ... OK

Disk /dev/sda: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: Lexar 256GB SSD 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: F07CA5E4-85FA-F247-855D-4DB101931C1C

Old situation:

Device        Start       End   Sectors   Size Type
/dev/sda1  19255304 500118143 480862840 229.3G Linux filesystem
/dev/sda2   2117638   2183173     65536    32M ChromeOS kernel
/dev/sda3  10866696  19255303   8388608     4G ChromeOS root fs
/dev/sda4   2183174   2248709     65536    32M ChromeOS kernel
/dev/sda5   2478088  10866695   8388608     4G ChromeOS root fs
/dev/sda6     16448     16448         1   512B ChromeOS kernel
/dev/sda7     16456   2113607   2097152     1G ChromeOS root fs
/dev/sda8   2248712   2281479     32768    16M Linux filesystem
/dev/sda9   2113608   2113608         1   512B ChromeOS reserved
/dev/sda10  2113609   2113609         1   512B ChromeOS reserved
/dev/sda11       64     16447     16384     8M unknown
/dev/sda12  2412552   2478087     65536    32M EFI System

Partition table entries are not in disk order.

Type 'help' to get more information.

>>> ^C

sfdisk -l /dev/sda

[manjaro@manjaro-10ahs0wn00 ~]$ sudo sfdisk -l /dev/sda
[sudo] password for manjaro: 
Disk /dev/sda: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: Lexar 256GB SSD 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: F07CA5E4-85FA-F247-855D-4DB101931C1C

Device        Start       End   Sectors   Size Type
/dev/sda1  19255304 500118143 480862840 229.3G Linux filesystem
/dev/sda2   2117638   2183173     65536    32M ChromeOS kernel
/dev/sda3  10866696  19255303   8388608     4G ChromeOS root fs
/dev/sda4   2183174   2248709     65536    32M ChromeOS kernel
/dev/sda5   2478088  10866695   8388608     4G ChromeOS root fs
/dev/sda6     16448     16448         1   512B ChromeOS kernel
/dev/sda7     16456   2113607   2097152     1G ChromeOS root fs
/dev/sda8   2248712   2281479     32768    16M Linux filesystem
/dev/sda9   2113608   2113608         1   512B ChromeOS reserved
/dev/sda10  2113609   2113609         1   512B ChromeOS reserved
/dev/sda11       64     16447     16384     8M unknown
/dev/sda12  2412552   2478087     65536    32M EFI System

Partition table entries are not in disk order.

从输出中可以清楚地看出,我尝试过的所有命令都按顺序排列分区编号,而不是显示分区的实际顺序,即 11>6>7>9>...

使用 Manjaro linux

我的问题是如何以相同的顺序打印分区?

linux hard-drive
  • 1 个回答
  • 1684 Views
Martin Hope
Madhubala
Asked: 2020-09-23 07:24:20 +0800 CST

无法在 Windows 10 上安装 virtualbox

  • 5

Windows 在尝试安装 virtualbox 时显示此错误消息

在此处输入图像描述

从这个官方链接下载的virtualbox

窗户规格

版 Windows 10 Enterprise Insider Preview

2004 版

操作系统版本 20215.1000

体验 Windows 功能体验包 120.22800.0.0

能够安装其他程序没有任何问题。

了解更多带我到此页面

如何通过覆盖此错误来安装 virtualbox?

windows virtualbox
  • 1 个回答
  • 376 Views
Martin Hope
Madhubala
Asked: 2020-04-09 05:06:25 +0800 CST

用于 Linux 的 Wget 错误 bash Windows 子系统

  • 10

尝试使用 wget 下载时出现 WSL 错误

 wget -O quotefile.txt "https://www.google.com"

输出

Will not apply HSTS. The HSTS database must be a regular and non-world-writable file.
ERROR: could not open HSTS store at '/home/atul/.wget-hsts'. HSTS will be disabled.
--2020-04-08 12:47:43--  https://www.google.com/
Resolving www.google.com (www.google.com)... 2404:6800:4002:80f::2004, 172.217.166.196
Connecting to www.google.com (www.google.com)|2404:6800:4002:80f::2004|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘quotefile.txt’

quotefile.txt                     [ <=>                                              ]  14.68K  --.-KB/s    in 0.002s

2020-04-08 12:47:45 (6.43 MB/s) - ‘quotefile.txt’ saved [15029]

为什么我收到此错误

Will not apply HSTS. The HSTS database must be a regular and non-world-writable file.
ERROR: could not open HSTS store at '/home/atul/.wget-hsts'. HSTS will be disabled.

以及如何解决这个问题?

重新安装后我遇到了这个问题。之前我使用的是 Windows 10 Pro 版本 19035,但现在我使用的是 Windows 10 Pro 版本 1909。

linux ubuntu
  • 2 个回答
  • 8310 Views
Martin Hope
Madhubala
Asked: 2020-01-23 08:32:46 +0800 CST

ImageMagick:如何添加叠加在图片上的多行文本?文本被截断

  • 5

代码 -

convert -size 2000x1000 xc:none -gravity center \
    -stroke yellow -pointsize 50 -font Courier-BoldOblique -strokewidth 3 -annotate +100+100 caption:'Conflict is the gadfly of thought. It stirs us to observation and memory. It instigates to invention. It shocks us out of sheeplike passivity, and sets us at noting and contriving' \
    -blur 0x25 -level 0%,50% \
    -fill white -stroke none -annotate +100+100 caption:'Conflict is the gadfly of thought. It stirs us to observation and memory. It instigates to invention. It shocks us out of sheeplike passivity, and sets us at noting and contriving' \
    1.jpg  +swap -gravity center -geometry +0-3 \
    -composite  Walpaperquote.jpg

输出 :

Walpaperquote.jpg

我的问题是:我怎样才能使完整的文本出现?哪里出了问题?

提前感谢您的帮助!尝试了很多方法,但无法弄清楚如何正确设置!我对 ImageMagick 很陌生!

bash imagemagick
  • 1 个回答
  • 730 Views
Martin Hope
Madhubala
Asked: 2020-01-18 19:22:00 +0800 CST

在 linux 上创建 Windows PE 的可启动 USB

  • 13

如何在 Linux 上使用 Windows PE ISO 创建可启动 USB?

注意 - 任何支持从 linux 创建可引导 USB 的 Web 上可用的 Windows PE ISO 都会有所帮助(请同时提及步骤或参考)。

背景 - 我有 Hiren 的 BootCD PE,想从 Linux 创建一个可引导的 USB。遵循这个,但问题是所有答案都指的是 ISO 中不再存在的 HBCD 文件夹。(我注意到一个奇怪的事情,即使 menu.lst 文件也指的是 HBCD 文件夹)

其他指南需要 Windows 来创建可启动 USB,但目前我只能访问 Linux(并尝试对无法启动的窗口进行故障排除)

直接从使用 unetbootin 创建的 USB 引导没有帮助。

我不喜欢喝葡萄酒,所以不使用它们的答案会很有帮助。

提前致谢!!!

windows-10 boot
  • 2 个回答
  • 6978 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