使用 /dev/tcp/host/port 命令有哪些不同的方法以及在哪里可以找到有关此的手册页?
< /dev/tcp/www.google.com/80
cat > /dev/tcp/www.google.com/80
Run Code Online (Sandbox Code Playgroud) 为什么我在同一目录中看到两个文件(目录)具有相同的名称“存储”?inode 编号不同。
root@OpenWrt:/# fsck.ext4 -p /dev/sda1
/dev/sda1: clean, 2213/979200 files, 2026329/3912206 blocks
root@OpenWrt:/#
root@OpenWrt:/# mount /dev/sda1 /mnt
root@OpenWrt:/# cd /mnt
root@OpenWrt:/mnt# ls -l
drwxr-xr-x 2 root root 4096 Jan 1 1970 etc
drwx------ 2 root root 16384 Jan 31 21:16 lost+found
drwxr-xr-x 9 root root 4096 Apr 14 2018 storage
drwxr-xr-x 3 root root 4096 Jan 20 2018 storage
drwxr-xr-x 11 root root 4096 Apr 3 2018 upper
drwxr-xr-x 3 root root 4096 Jan 1 1970 work
root@OpenWrt:/mnt# ls -li …Run Code Online (Sandbox Code Playgroud) 当我将 .* 分配给变量时,它正在分配所有隐藏文件。
[root@s1 ~]# a=".*"
[root@s1 ~]# echo $a
. .. .bash_history .bash_logout .bash_profile .bashrc .cache .config .cshrc .history .lesshst .mozilla .pki .rnd .ssh .tcshrc .viminfo .virsh .xauth6SHzeY .xauthhAVYfm .xauthI6Cte3 .xauthk7ea35 .xauthlXtiZ9 .Xauthority .xauthQm7mJ8 .xauthTpWbxP .xauthY9KsdC
Run Code Online (Sandbox Code Playgroud)
我期望以下输出:
.*
怎么解决,谢谢。
我在下面试过,它给出了输出
[root@s1 ~]# a='".*"'
[root@s1 ~]# echo $a
".*"
Run Code Online (Sandbox Code Playgroud)
“.*”
但不是
.*