linux社区爱心援助Linux认证系列教程业界动态站务新闻公司招聘建议留言网址大全LPI专题CISCO专题
设为首页
加入收藏
管理团队
JSP  
JAVA  
PERL  
 您的位置:首页 > article > Linux入门与提高 > 使用与技巧 >
栏目导栏
资料搜索
热门文章
·VMware Tools的安装步骤
·应用Linux下两种中文输入法
·GRUB FOR DOS 引导安装LINUX和
·linux下BT软件介绍
·Linux中用ALSA驱动声卡流程详解
·Linux 170个常见问题的详细解答
·什么是ISO文件?
·虚拟机软件vmware使用教程--使
·BabyLinux制作过程详解
·Linux挂接(mount)命令的使用方
·Linux必学的网络操作命令
·ffmpeg命令使用详解
·Linux操作系统Ifconfig命令详细
·在Linux下制作工资表
·vmware下的fedora 6的vmware t
最新文章
·CentOS5安装apache和svk使用域
·Ubuntu Linux系统Sudo命令无效
·Uboot对非Linux kernel的引导
·Fedora和XP双系统中网卡Realte
·解决Linux操作系统下部分文件乱
·双系统安装Linux之后找不到Win
·Linux操作系统上安装Flash Med
·设置Tomcat在Linux操作系统中自
·Linux操作系统下创建DBCA报错的
·Redhat Enterprise Linux磁带机
·Linux系统下用一条命令批量修改
·实用技巧:Linux下命令排列、调
·关于Linux操作系统中VI编辑器字
·Linux VI编辑器中的复制与粘贴
·Linux系统下触摸屏的简单使用和
Google
 
Linux操作系统下常用的系统状态查询命令
[ 作者:  加入时间:2008-01-10 10:44:12  来自:Linux联盟收集整理 ]
 

列出各个SCSI设备的所有相关信息:如逻辑单元号,硬件地址及设备文件名等。3bBLinux联盟
  # ps -ef 3bBLinux联盟
  列出正在运行的所有进程的各种信息:如进程号及进程名等。3bBLinux联盟
  # netstat -rn 3bBLinux联盟
  列出网卡状态及路由信息等。3bBLinux联盟
  # netstat -in3bBLinux联盟
  列出网卡状态及网络配置信息。3bBLinux联盟
  # df -k 3bBLinux联盟
  列出已加载的逻辑卷及其大小信息。3bBLinux联盟
  # mount 3bBLinux联盟
  列出已加载的逻辑卷及其加载位置。3bBLinux联盟
  # uname -a 3bBLinux联盟
  列出系统ID 号,系统名称,OS版本等信息。3bBLinux联盟
  # hostname 3bBLinux联盟
  列出系统网络名称。3bBLinux联盟
  # lsvg –l rootvg,lsvg –p rootvg3bBLinux联盟
  显示逻辑卷组信息,如包含哪些物理盘及逻辑卷等。3bBLinux联盟
  # lslv –l datalv,lslv –p datalv3bBLinux联盟
  显示逻辑卷各种信息,如包含哪些盘,是否有镜像等。3bBLinux联盟
  八 网络故障定位方法3bBLinux联盟
  网络不通的诊断过程:3bBLinux联盟
  ifconfig 查看网卡是否启动 (up)3bBLinux联盟
  netstat –i 查看网卡状态3bBLinux联盟
  Ierrs/Ipkts 和 Oerrs/Opkts是否>1%3bBLinux联盟
  ping自己网卡地址 (ip 地址)3bBLinux联盟
  ping其它机器地址,如不通,在其机器上用diag检测网卡是否有问题。3bBLinux联盟
  在同一网中, subnetmask 应一致。3bBLinux联盟
  网络配置的基本方法:3bBLinux联盟
  (1) 如需修改网络地址、主机名等,一定要用 chdev 命令3bBLinux联盟
  # chdev –l inet0 –a hostname=myhost3bBLinux联盟
  # chdev -l en0 -a netaddr='9.3.240.58' -a netmask=255.255.255.0’3bBLinux联盟
  (2) 查看网卡状态:# lsdev –Cc if3bBLinux联盟
  (3) 确认网络地址:# ifconfig en03bBLinux联盟
  (4) 启动网卡:# ifconfig en0 up3bBLinux联盟
  (5) 配置路由3bBLinux联盟
  有两种方式加入路由:3bBLinux联盟
  永久路由3bBLinux联盟
  # chdev -l inet0 -a route=’10.47.0.0’,’9.3.240.59’3bBLinux联盟
  临时路由3bBLinux联盟
  # route add 10.47.1.2 9.3.240.593bBLinux联盟
  用命令 netstat -rn 查看路由表3bBLinux联盟
  附:常用命令列表:

  Any XXXX, ####, ****, or X is to be substituted by a name, resource name or #,3bBLinux联盟
  fn = filename3bBLinux联盟
  DIR = Directory3bBLinux联盟
  | = pipe symbol3bBLinux联盟
  3bBLinux联盟
  bosboot -a -d /dev/hdiskx -rebuilds boot record/image on boot device(hdiskx)3bBLinux联盟
  cat -view contents of a file3bBLinux联盟
  cat /tmp/****.1 -view a file, look at output3bBLinux联盟
  cat fn fn > newfile -combines two files to a single file3bBLinux联盟
  cd -will return you to default DIR3bBLinux联盟
  cd / -will put in root DIR3bBLinux联盟
  cd /xxxx -change you to a DIR anywhere is system3bBLinux联盟
  cd .. -will drop you out of 1 DIR at a time3bBLinux联盟
  cd xxxxx -will change you to a DIR in current dir3bBLinux联盟
  cfgmgr -will auto config devices3bBLinux联盟
  cfgmgr -v & -(-v) shows processes (&) puts in background3bBLinux联盟
  chps -s xx hd# -increase paging space (xx=# of addt'l PPs)3bBLinux联盟
  cp oldfn newfn -copy a file3bBLinux联盟
  cp oldfn Dirn -copy a file to another directory3bBLinux联盟
  crontab -l -list crontab entries for the current user3bBLinux联盟
  ctrl + v -will page down 1 page3bBLinux联盟
  ctrl + 6 -will page up 1 page3bBLinux联盟
  del fn -same as rm -i,promts to remove fn3bBLinux联盟
  df -I -shows status of file systems (no inodes)3bBLinux联盟
  df -Ik -(k) show status in 1024 bites(1mb)(only AIX 43bBLinux联盟
  diag -a -updates changes in hardware configuration3bBLinux联盟
  diag ***** -****= a device type(as tape,disk....Fastpath)3bBLinux联盟
  diag -cd rmtX -resets tape drive3bBLinux联盟
  dosformat -formats a diskette to DOS3bBLinux联盟
  dosdir -list files on dos formated diskette3bBLinux联盟
  dosread XX YY -copies dos file XX to aix file YY3bBLinux联盟
  doswrite YY XX -copies aix file YY to dos file XX3bBLinux联盟
  errpt -generates a one line synopsis of logged errors3bBLinux联盟
  errpt | pg -list errorlog 1 page @ a time(1st column is ID)3bBLinux联盟
  errpt -a -displays detailed information of logged errors3bBLinux联盟
  errpt -s Mmddhhmmyy -select entries posted later than date3bBLinux联盟
  errpt -aj XXXXXXX -list detail error by ID number.(XXX=1st column)3bBLinux联盟
  errpt -d S -list software errors3bBLinux联盟
  errpt -j XXXXXXX -list summary report by ID number.3bBLinux联盟
  errpt -aN XXXXXX -list detailed report by resource name column3bBLinux联盟
  errpt -N XXXXXXX -list summary report by resource name column3bBLinux联盟
  errclear 0 -clears errorlog3bBLinux联盟
  errclear -N XXXXX 0 -clears errorlog by resource name, 0=all enter3bBLinux联盟
  errclear -j XXXXX 0 -clears errorlog by ID number.3bBLinux联盟
  finger -same as who but with more details3bBLinux联盟
  flcopy -copies a diskette to another diskette3bBLinux联盟
  format -formats a diskette in default diskette drive3bBLinux联盟
  format -l -formats in lower denity: 1.44 on 2.44 / 720 on 1.443bBLinux联盟
  hostname -responds with host system name3bBLinux联盟
  host (hostname) -responds with internet address3bBLinux联盟
  instfix -ik IPAR# -lists ipar fix was completely installed3bBLinux联盟
  lppchk -v -checks install status of LPPs3bBLinux联盟
  lppchk -v 2> /dev/lpX -sends output of lppchk to printer lpx3bBLinux联盟
  lpstat -a all -view all printer queues3bBLinux联盟
  lptest 80 5 > /dev/lp0 -send test pattern to lp03bBLinux联盟
  ls -list names of files & directories in current dir3bBLinux联盟
  ls -lia -list details of files, current dir & subdir3bBLinux联盟
  ls -al -list details of files or dir in current dir3bBLinux联盟
  lsattr -El xxxxxx -list specific settings on a device3bBLinux联盟
  lsdev -C | sort -d -f -list system hardware (devices)3bBLinux联盟
  lsdev -C | grep 00-0X -list resourses for a adapter3bBLinux联盟
  lsdev -Cc xxxxx -H -list devices(xxx=tty,printer,disk,memory,adpt3bBLinux联盟
  lsdev -Cs scsi -list scsi devices(not serial or raid)3bBLinux联盟
  lsdev -Cc tape -list tape devices3bBLinux联盟
  lsdev -Cs pci -list pci devices3bBLinux联盟
  lsdev -Cs isa -list isa devices3bBLinux联盟
  lscons -lists the assigned console3bBLinux联盟
  lscfg -list hardware list (same as diags list)3bBLinux联盟
  lscfg -rl mem* |pg -lists the memory on PCI bus machines3bBLinux联盟
  lscfg -vl XXXXX -list config info from a device.(rmt0,hdisk,etc)3bBLinux联盟
  lscfg -vl sysplanar0 -lists the machine type, model, s/n on SMP3bBLinux联盟
  lsfs -list all filesystems + data from "df" cmd3bBLinux联盟
  lslpp -l | grep BROKEN -lists incomplete ptfs3bBLinux联盟
  lslv -m hd5 -finds boot drive under pv1 column3bBLinux联盟
  lsps -a -checks available paging space3bBLinux联盟
  lsps -s -checks available paging space3bBLinux联盟
  lspv -lists information about the physical volumes3bBLinux联盟
  lspv hdisk# -list drive info3bBLinux联盟
  lspv -l hdisk# -lists logical volume group disk in3bBLinux联盟
  lsuser -f ALL -lists all attributes for all users3bBLinux联盟
  lsvg -lists volume groups3bBLinux联盟
  lsvg -p XXXXXX -lists disks in volume group (xxxxx= volume name)3bBLinux联盟
  more -reads files and displays the text one screen at a time.3bBLinux联盟
  mpcfg -df -list all setting the machine is set to (smp)3bBLinux联盟
  mpcfg -cf 11 1 -changes to fast IPL on SMP machines (smp)3bBLinux联盟
  mv fn (path fn) -move and rename a file3bBLinux联盟
  oslevel -shows AIX version (3.2.4 and above)3bBLinux联盟
  pg -reads and displays text one screen at a time.3bBLinux联盟
  pdisable -makes unavailable or shows all disabled tty's3bBLinux联盟
  pdisable tty# -disables a tty3bBLinux联盟
  penable -makes available or shows all enabled tty's3bBLinux联盟
  penable tty# -enables a tty3bBLinux联盟
  ps -el |pg -look at process running on system3bBLinux联盟
  pwd -list what DIR you are currently in3bBLinux联盟
  r -repeats last command3bBLinux联盟
  rm -i ******* -remove a file & will prompt you if you are sure3bBLinux联盟
  rmdev -l XXXXX -removes a device and defines it to data base3bBLinux联盟
  rmdev -l XXXXX -d -removes a device and deletes it from data base3bBLinux联盟
  set -o vi -sets up to veiw cammands that have been run3bBLinux联盟
  :wq -write(save) and quit file3bBLinux联盟
  Esc + k -used with SET command to list last command3bBLinux联盟
  k,l -k=list next command ran, l=steps you thru command3bBLinux联盟
  I -use with SET command inserts characters3bBLinux联盟
  j -steps you backwards3bBLinux联盟
  cw -cw=removes a word,just type in new word3bBLinux联盟
  (use with Esc)3bBLinux联盟
  a,x,r -a=added text, x=delete text, r=replace text(r+letter)3bBLinux联盟
  R -lets you type over letters or words3bBLinux联盟
  smit ***** -(*****= tape,disk,tty,etc.fastpath)3bBLinux联盟
  su -stands for switch user,(NOT super user)3bBLinux联盟
  su -switches to root id or prompts you for password3bBLinux联盟
  su XXXXXX -switches to XXXXXX's id3bBLinux联盟
  tar -cvf /dev/rmtX /etc -will copy /etc to a tape drive3bBLinux联盟
  tar -tvf /dev/rmtX -will read a tape drive3bBLinux联盟
  tctl -f /dev/rmtX rewoffl -rewind & eject tape3bBLinux联盟
  tctl -f /dev/rmtX.1 fsf 3 -forward advances a tape to be read by TAR3bBLinux联盟
  tctl -F -list avail commands(-F flag is not correct)3bBLinux联盟
  tctl retension -retensions tape in tape drive3bBLinux联盟
  & -put any command in background with process ID
Linux联盟收集整理 ,转贴请标明原始链接,如有任何疑问欢迎来本站Linux论坛讨论
评论】【加入收藏夹】【 】【打印】【关闭
※ 相关链接
 ·Linux操作系统下设置开机启动文件的方法  (2008-01-10 10:43:38)
 ·Linux操作系统中使用nmap命令  (2008-01-10 10:43:11)
 ·Linux操作系统下NTP服务器简单配置过程  (2008-01-10 10:42:33)
 ·Linux系统硬盘安装的通用引导  (2008-01-10 10:34:19)
 ·Tcpdump:Linux下基于命令行的抓包工具  (2008-01-10 10:33:46)
 ·在Ubuntu下安装ies4linux使用网上银行  (2008-01-08 11:29:07)
 ·Linux操作系统下关于用户和组的配置管理  (2008-01-08 11:10:48)
 ·在Linux环境下Lapack软件包的编译和使用  (2008-01-08 11:10:16)
 ·结合Linux系统内核源码理解SYN_RECV状态  (2008-01-08 11:08:28)
 ·Linux系统下的Shell循环语句  (2008-01-08 11:07:47)