花样百出Solaris8命令.docVIP

  • 3
  • 0
  • 约7.07万字
  • 约 5页
  • 2017-01-03 发布于贵州
  • 举报
Debugging   truss executable   /* Trace doing of given command ( useful debugging ) */   truss -f -p pid of a shell   /* Using multiple windows, this can be used to trace setuid/setgid programs */   [ Back to Top ]   Arp, ethernet trouble shooting   arp -a .   /* Shows the ethernet address arp table */   arp -d myhost   /* Delete a stale ethernet entry for host myhost */    Disk Commands   du -k .   /* Reports disk space used in Kilobytes */   du -sk .   /* Reports only total disk space used in Kilobytes */   du -ad /var | sort -nr   /* Tells you how big the /var files are in reverse order */   fdformat -d -U   /* Format diskette */   /usr/bin/iostat -E   /* Command to display drives statistics */   /bin/mount -F hsfs -o ro /dev/sr0 /cdrom   /* Mount an ISO 9660 CDROM */   prtvtoc /dev/rdsk/c0t0d0s2   /* Disk geometry and partitioning info */   quot -af   /* How much space is used by users in kilobytes */    Driver Parameters   ndd /dev/ip \?   /* Shows IP variables in the kernel */   ndd /dev/ip ip_forwarding   /* Tells you if forwarding is on (=1) */   ndd -set /dev/ip ip_forwarding 1   /* Enables IP forwarding between interfaces */    File Manipulation   dos2unix | -ascii filename   /* Converts DOS file formats to Unix */   split   /* Split files into pieces */   [vi] : %s/existing/new/g   /* Search and Replace text in vi */   [vi] :set nu   /* Set line numbers in vi */   [vi] :set ts=[num]   /* Set tab stops in vi */    File System   cat /dev/null filename   /* Zeros out the file without breaking pipe */   dd if=/dev/rdsk/... of=/dev/rdsk/... bs=4096   /* Make a mirror image of your boot disk */   df -k | grep dg| awk {print $6} |xargs -n 1 umount   /* Unmount all file systems in disk group dg */   fsck -F ufs /dev/rdsk/c0t0d0s0   /* Check a UFS filesystem on c0t0d0s0 */   fsck -F ufs -y /dev/rdsk/c0t0d0s0   /* Check answering yes to all questions */   fsck -F ufs -o b=97472 /dev/rdsk/c0t0d0s0   /* Check

文档评论(0)

1亿VIP精品文档

相关文档