据我所知,该hosts文件是帮助在计算机网络中寻址网络节点的几种系统工具之一。但里面应该有什么?当我默认安装 Ubuntu 时
127.0.0.1 localhost
Run Code Online (Sandbox Code Playgroud)
将在那里。为什么?
/etc/hosts在 Cassandra 等 JVM 系统的情况下如何工作?我已按照他们网站上的说明进行操作。命令ls /usr/local/hdf5返回
bin include lib share
Run Code Online (Sandbox Code Playgroud)
但
dpkg -s hdf5
dpkg-query: package 'hdf5' is not installed and no information is available
Run Code Online (Sandbox Code Playgroud)
为什么?我从这里下载了 https://www.hdfgroup.org/HDF5/release/obtainsrc.html#conf 然后我按照安装文件说明,从 make 到 make install。我如何确定是否安装了 HDF5?
我的过程信息:
lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 158
Model name: Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
Stepping: 9
CPU MHz: 1036.788
CPU max MHz: 3500,0000
CPU min MHz: 800,0000
BogoMIPS: 6000.00
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 6144K
NUMA node0 CPU(s): 0-3 …Run Code Online (Sandbox Code Playgroud) 我正在尝试将我的 Corosync 密钥从我的台式机复制到我的笔记本电脑。
sudo scp /etc/corosync/authkey mm-HP-Elit@192.168.0.10:~
Run Code Online (Sandbox Code Playgroud)
我得到的是这个
ssh: connect to host 192.168.0.10 port 22: No route to host
lost connection
Run Code Online (Sandbox Code Playgroud)
他们俩在我家使用相同的路由器。
从我的桌面,我正在 ping 笔记本电脑
ping 192.168.0.10
PING 192.168.0.10 (192.168.0.10) 56(84) bytes of data.
64 bytes from 192.168.0.10: icmp_seq=1 ttl=64 time=1.29 ms
64 bytes from 192.168.0.10: icmp_seq=2 ttl=64 time=1.08 ms
64 bytes from 192.168.0.10: icmp_seq=3 ttl=64 time=1.03 ms
64 bytes from 192.168.0.10: icmp_seq=4 ttl=64 time=1.05 ms
^C
--- 192.168.0.10 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, …Run Code Online (Sandbox Code Playgroud) 我在 VM VirtualBox 上安装了 Kali Linux(我的主机是 Ubuntu 18.04)。我是 Kali 的新手,但两个链接的问题与我的问题无关。当我尝试升级 Kali 时
apt upgrade
926 upgraded, 81 newly installed, 0 to remove and 4 not upgraded.
Need to get 1,503 MB of archives.
After this operation, 622 MB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.
root@kali:~# df -H
Filesystem Size Used Avail Use% Mounted on
udev 4.2G 0 4.2G 0% /dev
tmpfs 837M 9.8M 827M 2% /run
/dev/mapper/kali--vg-root 12G 11G 250M …Run Code Online (Sandbox Code Playgroud) 我有一个 f77 文件,它是在 SunSparc 机器上创建的。我知道每条记录包含 5 个实数和一个整数。有什么办法可以在我的 Ubuntu 16.04 Intel little-endian 机器上解压该文件?我给出了一部分十六进制转储
00000000 00 00 00 18 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000010 00 00 00 00 00 00 00 00 ff ff ff ff 00 00 00 18 |................|
00000020 00 00 00 18 3f 00 00 00 00 00 00 00 3c 23 d7 0a |....?.......<#..|
00000030 00 00 00 00 3c 23 d7 0a 00 00 00 01 00 …Run Code Online (Sandbox Code Playgroud) 我想安全地擦除我的 SSD(在 Ubuntu 18.04 上)
\n\n我愿意
\n\nsudo time hdparm --user-master u --security-erase mypassword /dev/sda\nRun Code Online (Sandbox Code Playgroud)\n\n我收到此错误消息
\n\n/dev/sda:\n Issuing SECURITY_ERASE command, password="mypassword", user=user\nSG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 04 51 40 00 21 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\nSG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 04 51 40 01 21 04 00 …Run Code Online (Sandbox Code Playgroud) 我 按照 gpg 教程加密了 netrc 文件 。我编辑了我的
~/.profile
Run Code Online (Sandbox Code Playgroud)
像这样
if test -f $HOME/.gpg-agent-info && \
kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/null; then
GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info | cut -c 16-`
else
# No, gpg-agent not available; start gpg-agent
eval `gpg-agent --daemon --no-grab --write-env-file $HOME/.gpg-agent-info`
fi
export GPG_TTY=`tty`
export GPG_AGENT_INFO
Run Code Online (Sandbox Code Playgroud)
这是ls为了./gnupg
~/.gnupg$ ls
openpgp-revocs.d private-keys-v1.d pubring.kbx pubring.kbx~ random_seed trustdb.gpg
Run Code Online (Sandbox Code Playgroud)
它不起作用,当我重新启动 Ubuntu 时,会弹出错误消息,表明我已经有一个 gpg-agent 正在运行。如何检查并解决这个问题?
eval `gpg-agent --daemon --no-grab $HOME/.gpg-agent-info`
gpg-agent: a gpg-agent is already running - not starting …Run Code Online (Sandbox Code Playgroud) 这应该是微不足道的,但似乎并非如此。我格式化了我的 comp 并安装了 conda(我已经习惯了这个打包工具)
pip install awscli --upgrade --user
Requirement already up-to-date: awscli in ./.local/lib/python3.7/site-packages (1.16.313)
Run Code Online (Sandbox Code Playgroud)
但现在我有问题
aws --version
Command 'aws' not found, but can be installed with:
sudo snap install aws-cli # version 1.16.266, or
sudo apt install awscli
Run Code Online (Sandbox Code Playgroud)
我试过
sudo apt install awscli
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package awscli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or …Run Code Online (Sandbox Code Playgroud) 我已经从主目录中删除了我所有的 python 代码,但是当我这样做时,ls我得到:
a11.py~ class1.pdf foobar.txt~ n1 pic.py~
Run Code Online (Sandbox Code Playgroud)
当我这样做时ls:ls *.py我得到:
ls: cannot access *.py: No such file or directory
Run Code Online (Sandbox Code Playgroud)
我仍然有很多像上面这样的文件。它们是隐藏文件还是什么?
我该如何解决这个问题?
files ×2
ubuntu ×2
aws ×1
binary ×1
command-line ×1
disk-usage ×1
dns ×1
dpkg ×1
etc ×1
filesystems ×1
fortran ×1
gpg ×1
gpg-agent ×1
hdparm ×1
hosts ×1
kali-linux ×1
networking ×1
scp ×1
ssd ×1
ssh ×1
wildcards ×1