1、主流服务器 UNIX 操作系统用户帐号的设置账号设置 HP-UX FreeBSD Solaris (SPARC)密码文件 /etc/passwd/tcb/files/auth/r/root /etc/passwd/etc/master.passwd /etc/passwd /etc/shadow组文件 /etc/group/etc/logingroup /etc/group /etc/group允许最大用户 ID 2147483647 65535 2147483647允许远程登录的用户文件设置/etc/securettyconsole/etc/ttys secure/etc/default/l
2、oginCONSOLE=/dev/consoleNobody的 UID -2 65534 60001 clean;bzImage;install make modulesmake modules_install cp arch/i386/boot/bzImage /boot/vmlinuzmkinitrd /boot/initrd-2.4.img 2.4vi /etc/lilo.conflilovi /etc/systemreboot doconfigList modules lsmod modinfo Load module insmod modload Unload module rmmo
3、d modunload Initialize system netconf sys-unconfig netsetupPhysical RAM free prtconf uerf | grep memoryKernel Bits getconf WORD_BIT isainfo -kv 64Crash utility lcrash crash kdbxTrace System Calls strace truss traceMachine model uname -m uname -imp uname -pOS Level uname -r uname -r sizer -vRun Level
4、 runlevel who -r who -rCore dump files /var/crash/uname -n Boot single userlilocontrol-xlinux Sgrubok boot -s boot -fl sckernel vmlinuz-2.4.9-13 single ro root=/dev/hda8initrd /initrd-2.4.9-13.imgbootMaintenance mode ok boot -as Interrupt Key Stop-A control-PReturn to console ok go Timezone Manageme
5、nt /etc/sysconfig/clock/etc/TIMEZONE/etc/default/init/etc/svid3_tztimezoneNTP Daemon /etc/ntp.conf/etc/rc.d/init.d/xntpd /etc/inet/ntp.conf/etc/init.d/xntpd rcmgr set XNTPD_CONF YES/sbin/init.d/xntpd主流服务器 UNIX 操作系统设备管理Devices AIX FreeBSD HP-UX Devices /dev /dev /devInstall devices for attached perip
6、herals cfgmgr v /dev/MAKEDEV insf -eRemove device rmdev l rmsfDevice drivers Lscfg lsdevCPU lsdev -Cc processor sysctl hw.model ioscan -fnC processorList Terminal lsdev -Cc tty ioscan -fnC ttyDiagnostics Diag pciconf -l StmWhole Disk /dev/hdisk# /dev/ad0s1c /dev/dsk/c#t#d0CDROM /dev/cd0 /dev/acd0c /
7、dev/dsk/c#t2d0CDROM file type Cdrfs cd9660 CdfsRewinding tape drive /dev/rmt0 /dev/rwt0d /dev/rmt/0mFloppy drive /dev/rfd0 /dev/fd0 -Non-rewinding tape drive /dev/rmt0.1 /dev/nrwt0d /dev/rmt/0mnDevices Linux (RedHat) Solaris (SPARC) Tru64 Devices /dev /devices /devInstall devices for attached periph
8、erals /dev/MAKEDEVdrvconfigdevlinksdiskstapesportsscu scan edtscsimgr -scan_allRemove device rem_drv Device drivers prtconf -D CPU cat /proc/cpuinfo psrinfo -v psrinfo -vList Terminal pmadm -l Diagnostics /usr/platform/uname -m/sbin/prtdiagok test-all/opt/SUNWvts/bin/sunvtsWhole Disk /dev/sda /dev/c#t#d0s2 /dev/rz0cCDROM /dev/cdrom /dev/dsk/c#t6d0s2 /dev/rz3cCDROM file type iso9660 hsfs cdfsRewinding tape drive /dev/rst0 c 9 0 /dev/rmt/0 /dev/rmt0Floppy drive /dev/fd0 /dev/diskette /dev/fd0cNon-rewinding tape drive/dev/nrst0 c 9 128 /dev/rmt/0n /dev/nrmt0