我正在尝试以modprobe wireguardroot 身份登录,但失败了:
modprobe: ERROR: could not insert 'wireguard': Operation not permitted
Run Code Online (Sandbox Code Playgroud)
添加详细我又得到一行:
[root@localhost ben]# insmod /lib/modules/5.2.11-100.fc29.x86_64/extra/wireguard.ko.xz
insmod: ERROR: could not insert module /lib/modules/5.2.11-100.fc29.x86_64/extra/wireguard.ko.xz: Operation not permitted
Run Code Online (Sandbox Code Playgroud)
dkms 运行良好,没有错误。我也禁用了 selinux 并没有什么区别。我看不到任何东西journalctl日志。
查看手册页和谷歌没有发现任何东西。
我确实在以下内容中找到了这个有用的行dmesg:
Lockdown: modprobe: Loading of unsigned module is restricted; see man kernel_lockdown.7
Run Code Online (Sandbox Code Playgroud)
但是,该手册页不存在。
我该如何调试?关于下一步去哪里的任何指示?
在 tcsh 中,我有默认值:
prompt [%m:%c3] %n%#
Run Code Online (Sandbox Code Playgroud)
这给出了如下提示:
[woehler:hacking/c/hello] ajcarr%
Run Code Online (Sandbox Code Playgroud)
和
[woehler:~] ajcarr%
Run Code Online (Sandbox Code Playgroud)
换句话说,当前目录以及路径中它上面的下两个目录。
在 ksh93 或 bash 中,$HOMEby的替换~很容易,就像提取当前目录的名称一样,但我还没有找到一种方法来复制%c3tcsh的行为。目前在 ksh93 我有:
[ajcarr@Woehler] hello $
Run Code Online (Sandbox Code Playgroud)
和
[ajcarr@Woehler] ~ $
Run Code Online (Sandbox Code Playgroud)
有没有人对如何做到这一点有任何建议?
我正在尝试修改文本中的日期,其中有 as2016-Dec-24或2016-12-24,我必须像24/12/2016.
有什么方法可以sed -i用来做到这一点吗?
输入示例:
假日或纪念日 宗教团体日期 附加说明 *犹太新年(新年) 犹太教 2014 年 9 月 25 日 - 2014 年 9 月 26 日 为观察员指定的非工作日 Navaratri/Dassehra 印度教 2014 年 10 月 3 月
*赎罪日(赎罪日)犹太人 2014 年 10 月 4 日,观察员指定的非工作日
赞助会议 名称 地点 会议 日期 2017 IEEE Sensors Applications Symposium (SAS) United States 2017-03-13, 2017-03-14, 2017-03-15 2017 IEEE International Symposium on Medical Measurements and Applications (MeMeA) United States 2017-05 -07 至 2017-05-10 2017 …
我想打印一个包含 1 列列表值的文件,例如:
cat
dog
house
Run Code Online (Sandbox Code Playgroud)
但我想让文件像这样打印到另一个文件:
1 cat
2 dog
3 house
Run Code Online (Sandbox Code Playgroud)
我认为 awk 可以用来做这个吗?
你能提供命令来做到这一点吗?我知道我需要做这样的事情来打印文件:
awk -F '{ print $1 }'
Run Code Online (Sandbox Code Playgroud)
但我会做这样的事情:
int i
awk -F '{ print i, " " $1 }'
i++
Run Code Online (Sandbox Code Playgroud)
(把我的 awk 书留在工作中)
我有一个 web.txt 文件,其中包含:
youtube
facebook
google
Run Code Online (Sandbox Code Playgroud)
我的 sh 文件包含:
readarray web < web.txt
url = www.website.com
Run Code Online (Sandbox Code Playgroud)
我使用过的命令:
readarray web < web.txt
url = www."$web".com
ping url
Run Code Online (Sandbox Code Playgroud)
预期输出:
ping youtube.com
ping facebook.com
ping google.com
Run Code Online (Sandbox Code Playgroud)
正确的语法应该是什么?谢谢!
我正在运行 Parrot OS,当我打开一个终端时,我得到了这个。
bash: source: filename argument required
source: usage: source filename [arguments]
bash: source: filename argument required
source: usage: source filename [arguments]
Run Code Online (Sandbox Code Playgroud)
这是我的 .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
export PATH=~/.local/bin:/snap/bin:/usr/sandbox/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/share/games:/usr/local/sbin:/usr/sbin:/sbin:$PATH
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more …Run Code Online (Sandbox Code Playgroud) 我的目录中有一堆 csv 文件,我想从每一行中删除第二个逗号。例子:
输入:
53,900,1001,-45.4247,9.87187,541.65
75,900,0102,37.0896,4.24087,558.35
75,900,1101,37.3096,4.25814,561.65
46,901,0003,-51.3833,-20.2645,578.35
3,901,0003,-57.302,-23.0063,578.35
Run Code Online (Sandbox Code Playgroud)
期望的输出:
53,9001001,-45.4247,9.87187,541.65
75,9000102,37.0896,4.24087,558.35
75,9001101,37.3096,4.25814,561.65
46,9010003,-51.3833,-20.2645,578.35
3,9010003,-57.302,-23.0063,578.35
Run Code Online (Sandbox Code Playgroud)
这可以用 sed 实现吗?提前谢谢了!