我想知道我的服务器上安装了哪个分区操作系统。
以下是我的服务器的fdisk和df命令输出。
[root@ ~]# fdisk -l
Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1058 8393962+ 82 Linux swap / Solaris
/dev/sda3 1059 7457 51399967+ 83 Linux
[root@ ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 48G 12G 34G 26% /
/dev/sda1 99M …Run Code Online (Sandbox Code Playgroud) 我正在使用一个运行的服务器,它有一个 15GB 的根分区、一个 1GB 的交换分区和一个 216.9GB 的主分区。很显然,服务器上在某些点上根分区空间跑了出来,而不是扩展它,服务器的前面维护者移动/usr/lib,/usr/share和/usr/bin目录成/home/usr,并在他们的老位置做符号链接的目录的新位置。
服务器正在运行 Arch Linux 3.6.10-1。root 和 home 分区都有一个 ext4 文件系统。
除了一些细微的差别,比如find在/usr. 我特别关心和好奇与设置相关的任何安全问题。
假设有人为您提供了一个 tarball,说它是源代码而不是其他任何东西。您想确保这是真的,并且没有携带病毒的可执行文件或库隐藏在目录中。如何使用 find 命令来做到这一点?
谢谢。
linux ×3
filesystems ×1
find ×1
hard-drive ×1
libraries ×1
malware ×1
raid ×1
security ×1
storage ×1
zfs ×1