在 Ubuntu 14.04 中执行命令 mount 我得到以下摘录
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
Run Code Online (Sandbox Code Playgroud)
我不明白为什么/run在已经安装的父目录 ( /run) 中单独安装了 的子目录以及none文件系统的含义。我的/etc/fstab文件是空的。
我希望在远程机器的磁盘上运行本地的 python 脚本。我曾经像这样运行 bash 脚本:
cat script.sh | ssh user@machine
Run Code Online (Sandbox Code Playgroud)
但我不知道如何对 Python 脚本做同样的事情。
根据grep手册:
* The preceding item will be matched zero or more times.
+ The preceding item will be matched one or more times.
Run Code Online (Sandbox Code Playgroud)
让我们测试一下
echo 'agb' | grep 'a.*b' # returns agb
echo 'agb' | grep 'a.+b' # returns nothing
Run Code Online (Sandbox Code Playgroud)
为什么+三个gs不匹配?据我所知 3 大于 1。
如果我使用 dm-crypt 格式化分区,它在分区表中的条目是否以某种方式暗示该分区已加密,或者对于来自外部的人来说,它看起来像是存储有随机噪声的常规分区?我的目标是加密分区并使其与刚刚格式化或删除的常规分区无法区分cat /dev/urandom > /dev/sda1。
dm-crypt ×1
encryption ×1
filesystems ×1
grep ×1
linux ×1
mount ×1
partition ×1
remote ×1
scripting ×1
ssh ×1