在 Debian 服务器上显示开放端口列表的命令是什么?
我试过了,netstat -a | egrep 'Proto|LISTEN'但我想要更具体的东西,实际上列出了端口号。
我增加了用作 LVM PV 的分区的大小,但运行 pvresize 似乎没有看到额外的空间:
cuttle:~# fdisk -l /dev/vda
Disk /dev/vda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00027dbb
Device Boot Start End Blocks Id System
/dev/vda1 * 1 31 248976 83 Linux
/dev/vda2 32 2610 20715817+ 8e Linux LVM
Run Code Online (Sandbox Code Playgroud)
其中说 vda2 大约是 20gigs
cuttle:~# pvdisplay
--- Physical …Run Code Online (Sandbox Code Playgroud) 当我尝试rm -rf使用具有很多子目录和/或文件并且使用SSHFS 挂载的目录时,我需要一段时间才能执行。
正常吗?
我想知道rm -rf在文件系统级别内部如何工作。
它是只删除目录,还是遍历所有目录/文件?这将解释为什么它这么慢......