1、rmuserUserdel列出用户loginsLogins修改用户账号usermodUsermodAIX Linux( RedHat ) /etc/security/passwd/etc/security/group4294967295/etc/security/userrlogin=truettyp1429496729499boot from CD/TapeInstallation/MaintenanceStart Limited Shellgetrootfs hdisk0vi /etc/security/passwdlilocontrol-xlinux Sgrubckernelvmlinu
2、z-2.4.9-13single roroot=/dev/hda8initrd /initrd-2.4.9-13.imgmkuserlsuser -f ALLchuser -a主流服务器UNIX操作系统目录结构对比Directory Mappings Root filesystem/dev/hd4/dev/ad0s1a/dev/vg00/lvol1Home Directory/home/dev/hd1/dev/vg00/lvol4/tmp/dev/hd3/dev/vg00/lvol6/usr/dev/hd2/dev/ad0s1f/dev/vg00/lvol7/var/dev/hd9var/de
3、v/ad0s1e/dev/vg00/lvol8Sample configuration files-/usr/newconfigSolarisTru64 /dev/sda1 /dev/vx/dsk/rootvol /dev/rz0a/export/home dev/vx/dsk/home dev/vx/dsk/swapvol/dev/rz0g/var 主流服务器UNIX操作系统常用命令General Commands Linux(RedHat) Solaris Unique host IDhostiduname -iAdministratorsmitsamlinuxconfadmintoolP
4、erformance monitortopmonitorglanceTopSystem activity reportersarsaVirtual Memory statisticsvmstatI/O statisticsiostatError logsalog -o -t booterrptdmesgDmesguerf -R -o fullPhysical RAM1M TB4TB64GB2.3.2416TBShared Memory64K TB8TBsysctl kernel.shmmaxProcess Data Space384K TB900 MBSwap device/dev/hd6/d
5、ev/ad0s1b/dev/vg00/lvol2/dev/sda2/dev/vx/dsk/swapvol/dev/rz0bSwap file type/etc/swapspacesswappartition type 82rawDisplay swap sizelsps -aswapinfoswapinfo -aFreeswap -lswapon -sActivate Swapswapon -aswap -a主流服务器UNIX操作系统打印机、TCP/IP设置Printers Printer Queues/etc/qconfig/var/spool/print/etc/lp/interface/
6、*Stop LPstopsrc -s lpdlpshutStart LPstartsrc -s lpdLpdlpschedSubmit print jobsenqlplprqprtLpLP statisticsenq -AlpqlpstatqchkLpqRemove print jobscancellprmqcanenq -xCancelAdd printer queuesmit mkpqlpadmin -p pqRemove Printer Qsmit rmpqlpadmin -x pqMake default Prtexport LPDEST=pqlpadmin -d pqTCP/IP N
7、etwork IP configurationlsattr -E -l inet0/etc/rc.conf/etc/rc.config.d/netconfHosts IP addresses/etc/hostsName service switch/etc/netsvc.conf/etc/host.conf/etc/nsswitch.confNetwork parametersno aSysctlndd -hRouting daemonGatedRoutedgatedNIC Configurationsifconfig aifconfig -alanscan -vSecondary IP Ad
8、drifconfig en0 alias IPifconfig xl0 alias IPifconfig lan0:1 IPLogin promptHERALD /etc/security/login.cfgtelnetd b /etc/issueIncrease the # of pseudo-terminalsodmget -q attribute=num and uniquetype=pty/pty/pty PdAt | sed s/0-64/0-512/ |odmchange -q -o PdAt chdev -l pty0 -anum=256 -Prebootrebuild your
9、 kernel with these new values NPTY=#NSTRPY=# reboot insf -d ptys -n #insf -d ptym -n #insf -d pts -s # -e -vMaximum # of ptys512MAXUSERSRemote ShellRemshrshRshremshYP/NIS service binder/usr/lib/netsvc/yp/ypbind/usr/sbin/ypbind/usr/lib/netsvc/yp/ypbind主流服务器UNIX操作系统打印机、TCP/IP设置 续Linux (Redhat)/var/spo
10、ol/lpd/lp/*/etc/lp/interfaces/*/usr/spool/lpd/etc/init.d/lpd stop/usr/lib/lp/lpshut/sbin/init.d/lpd stop/etc/init.d/lpd start/usr/lib/lp/lpsched/sbin/init.d/lpd startLprLpstatLprmPrinttoolLprsetupexport PRINTER=lp/etc/sysconfig/network-scripts/etc/hostname.*/etc/inet/*/etc/defaultrouter/etc/rc.confi
11、g/etc/inet/hosts/etc/svc.confsysctl -a | grep netNdd /dev/tcp|ip ?routedin.routedmodprobe ip_aliasifconfig eth0:1 IPifconfig hme0:1 IP upifconfig ln0 alias/etc/issueBANNER /etc/default/telnetdcd /dev./MAKEDEV -v pty/etc/systemset pt_cnt = # SYSVset npty = # BSD/etc/iu.apptsl 0 # ldterm ttcompathaltb
12、oot r./MAKEDEV PTY_125617630008192/sbin/ypbind/usr/sbin/ypbin主流服务器UNIX操作系统系统文件System Files NFS exported/etc/exportsNFS Client mounted directories/etc/xtabMax File System128 GBMax File Size64 GBMax # File Descriptors64 K60 KLinux (RedHat) /etc/dfs/dfstab/etc/dfs/sharetab/var/lib/nfs/xtab/etc/rmtab/var/adm/mountdtab2 TB1 TB8000 TB vxfs128 GB = 4.016 TB advfs2 GB512B block size8192 GB8KB block size2 GB =currentinquiryfile /dev/rrz0cfdisk -lPrtvtocdisklabel -p rz0sub d
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1