服务器 频道

Solaris的中文命令参考手册之一

  【IT168 服务器学院】ok>show-devs
  ok>show-disks
  
  终端控制
  ctrl+s :终止屏幕输出,如用cat命令输出时,要停一下
  ctrl+q :恢复ctrl+q的输出
  ctrl+c :中断当前的活动,返回命令提示符
  ctrl+d :表示文件的结束或退出,如退出终端窗口
  ctrl+u :擦除整个命令行
  ctrl+w :擦除命令行最后一个单词
  ctrl+h :擦除命令行最后一个字符
  bc :计算器
  
  
  
  #ksh 切换到k shell
  
  
  命令:
  
  
  
  # uname
  SunOS
  NAME
  
  #man uname
  uname - print name of current system
  
  SYNOPSIS
  uname [-aimnprsvX]
  
  uname [-S system_name]
  # date
  2004年05月19日 星期三 21时57分49秒 CST
  #
  stings
  $stings /usr/bin/cat
  能够用来打印可执行文件或二进制文件中的可读字符。
  
  cat more
  
  #cat -n test.txt //显示行号
  
  键值 目的
  空格 滚动到下一屏
  回车 一次滚动一行
  b 向后移动一屏
  f 向前移动一屏
  h 显示更多特性的帮助菜单
  q 退出,返回shell提示符
  /string 向前搜索字符串string
  n 查找下一处匹配
  
  less
  #less test.txt //前移动一屏F,后B ,/string 查找字符
  
  head
  #head -5 /export/home/wing/test.txt //显示开始的5行
  #head chap*|more //显示所有以chap开头的文件的头部
  用来显示一个或多个文件的前n行,默认省略-n参数将显示文件的前10行。
  
  tail
  #tail -5 /export/home/wing/test.txt //显示最后5行
  #tail +5 /export/home/wing/test.txt //显示第5行开始到结束
  用来显示一个文件的最后n行,默认省略-n参数将显示文件的最后10行。
  
  # tail -f /var/adm/messages //实时自动浏览syslog入口
  Oct 6 00:20:26 wing genunix: [ID 936769 kern.info] sd0 is /pci@0,0/pci-ide@7,1/ide@1/sd@0,0
  Oct 6 00:20:26 wing pcplusmp: [ID 637496 kern.info] pcplusmp: fdc (fdc) instance 0 vector 0x6 ioapi
  c 0x1 intin 0x6 is bound to cpu 0
  Oct 6 00:20:26 wing last message repeated 1 time
  Oct 6 00:20:26 wing isa: [ID 202937 kern.info] ISA-device: fdc0
  Oct 6 00:20:26 wing fdc: [ID 114370 kern.info] fd0 at fdc0
  Oct 6 00:20:26 wing genunix: [ID 936769 kern.info] fd0 is /isa/fdc@1,3f0/fd@0,0
  Oct 6 00:20:30 wing i8042: [ID 526150 kern.info] 8042 device: mouse@1, mouse8042 # 0
  Oct 6 00:20:30 wing genunix: [ID 936769 kern.info] mouse80420 is /isa/i8042@1,60/mouse@1
  Oct 6 00:21:37 wing login: [ID 722452 auth.error] user2netname: (nis+ lookup): Error in accessing N
  IS+ cold start file... is NIS+ installed?
  Oct 6 00:21:47 wing last message repeated 1 time
  Oct 6 00:52:07 wing login: [ID 722452 auth.error] user2netname: (nis+ lookup): Error in accessing N
  IS+ cold start file... is NIS+ installed?
  
  
  
0
相关文章