我尝试了以下命令来设置代理yaourt:
export ALL_PROXY=http://proxy.example.com:8080
Run Code Online (Sandbox Code Playgroud)
问题是如何取消设置代理yaourt?通常,如何取消设置当前 shell 中变量的值?
在 Ubuntu 中,我们使用这个命令来更新 GRUB:
# update-grub
Run Code Online (Sandbox Code Playgroud)
但是如何在 Arch Linux 中更新 GRUB 2.00版?
我知道如何在 Unix 中重命名文件:
$ mv ~/folder/subfolder/file.txt ~/folder/subfolder/file.sh
^-------this part------^ ^------this part-------^
Run Code Online (Sandbox Code Playgroud)
重复~/folder/subfolder/file两次需要很长时间。
有没有更快的方法?
我有一个文件在~/file.txt.
我通过以下方式创建了硬链接:
ln ~/file.txt ~/test/hardfile.txt
Run Code Online (Sandbox Code Playgroud)
和一个符号链接文件:
ln -s ~/file.txt ~/test/symfile.txt
Run Code Online (Sandbox Code Playgroud)
现在,
我们可以通过 找到符号链接文件->,但是硬链接呢?

我知道当程序崩溃时,一些文件会在/var/crash/. 但我不知道这些文件是什么!
那是错误日志吗?
我看过很多关于这个错误的帖子,但我找不到解决方案。我已经在 Windows 8 旁边安装了 Arch Linux。(双启动)。
我完全按照此视频进行操作,但在20:35出现以下错误。重新启动后,我得到:
error: no such device: ad4103fa-...
Loading Linux core repo kernel...
error: file `/boot/vmlinuz-linux` not found
Loading initial ramdisk ...
error: you need to load the kernel first.
Run Code Online (Sandbox Code Playgroud)
任何帮助都会很棒。
我想要一个可以打印所有不包含标点符号的行的正则表达式模式:
输入 :
.This is line 1
This is ! line 2
This is line (3)
This is line 4
Run Code Online (Sandbox Code Playgroud)
输出:(应该是)
This is line 4
Run Code Online (Sandbox Code Playgroud)
到目前为止我尝试过的:
grep '[^[:punct:]]' file.txt
Run Code Online (Sandbox Code Playgroud)
但它显示了所有不是标点符号的字符。
我有以下路径:
$ vim /path/to/some/where
Run Code Online (Sandbox Code Playgroud)
如果我按Ctrl+ w,它会将整个文本删除到第一个空格。结果是:
$ vim
Run Code Online (Sandbox Code Playgroud)
如何使用组合键删除最后一个斜杠的下一个单词?
我已经从 AUR 安装了 GenyMotion 及其依赖项(Virtual Box,...)。现在我正在尝试在 GenyMotion 模拟器中运行一个设备,但出现以下错误:
无法加载 VirtualBox 引擎。在启动 Genymotion 之前,请确保您已正确安装它。更多信息请参考:https : //cloud.genymotion.com/page/faq/#vbox

附注:
您可以在~/.Genymobile/genymotion-player.log以下位置看到日志内容:
Jan 7 13:19:58 [Genymotion Player] [Error] VBoxManage ("hostonlyif", "create") returns 1
Jan 7 13:19:58 [Genymotion Player] [Error] Output command: "0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterface, interface IHostNetworkInterface
VBoxManage: error: …Run Code Online (Sandbox Code Playgroud) 我已使用以下命令将 Arch Linux ISO 文件安装到闪存盘中:
dd bs=2M if=~/archlinux-2013.11.01-dual.iso of=/dev/sdd
Run Code Online (Sandbox Code Playgroud)
现在我正在尝试使用以下命令格式化闪存盘:
sudo mkfs.vfat -F 32 /dev/sdd
Run Code Online (Sandbox Code Playgroud)
但它让我出现以下错误:
mkfs.vfat:预期的设备分区,不会在整个设备“/dev/sdd”上创建文件系统(使用 -I 覆盖)
的输出sudo fdisk -l:
Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
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: dos
Disk identifier: 0xf3286bd2
Device Boot Start End Blocks Id System
/dev/sda1 * 119700315 154850534 17575110 83 Linux
/dev/sda2 19834880 119700314 …Run Code Online (Sandbox Code Playgroud) arch-linux ×4
grub2 ×2
android ×1
bash ×1
crash ×1
filesystems ×1
flash-memory ×1
grep ×1
hard-link ×1
line-editor ×1
logs ×1
mkfs ×1
mv ×1
partition ×1
rename ×1
shell ×1
symlink ×1
yaourt ×1