fdisk -l Command
fdisk -l用于查看硬盘及分区信息-----------------------------------------------------------------------------[root@erik-lnx d01]# fdisk -lDisk /dev/sda: 21.4 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sda1 * &
SSH Got WARNING: 'POSSIBLE DNS SPOOFING DETECTED'
(ptian) ptian- ssh -l user host_name@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@The RSA host key for site has changed,and the key for the according IP address 10.210.23.91is unknown. This could either mean thatDNS SPOOFING is happening or the IP address for the hostand its host key have ch
File/Directory Permission in Unix/Linux
Permission Modes 7 5 5 user group world r+w+x r+x r+x 4+2+1 4+0+1 4+0+1 = 755 Read 4 - Allowed to read filesWrite 2 - Allowed to write/modify fileseXecute 1 - Read/write/delete/modify/directory 7 4 4 user group world r+w+x r r 4+2+1 4+0+0 4+0+0 = 744Permission 0000 to 0777 chmod 0 ---------- chmod 1 ---------x chmod 2 --------w- chmod 3 --------wx chmod 4
Putty的颜色
默认的Putty颜色非常难看,深蓝色,绿色,深红色...看着很不舒服,尤其是目录默认为深蓝色,不仔细看很难看清楚。这里有一个可以让putty展示更好看点的解决方案,先看效果图设置方法1.下载配置文件:igvita-desert.regPutty的配置文件实际上是一注册表文件,Putty会从注册表中读取配置。2.导入下载好的注册表文件 igvita-desert.reg这样在注册表[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessi
Linux下使用ps命令来查看Oracle DB以及EBS相关的进程
Linux下可以使用ps命令来查看Oracle相关的进程 使用ps来查看Oracle数据库相关的服务 Oracle Listener 这个命令会列出Oracle Net Listener的进程 [oracle@bej301441 ~]$ ps -ef | grep tnslsnr oracle 1999 29986 0 09:47 pts/2 00:00:00 grep tnslsnr oracle 3647 1 0 Jul03 ? 00:00:34 /u01/oracle/mc3yd213/db/tech_st/11.1.0/bin/tnslsnr mc3yd213 -inherit oracle 6431 1 0 Jul03 ? 00:00:00 /u01/oracle/mc3yd213/apps/tech_st/10.1.2/
Linux/Unix下的任务管理器-top命令
Windows下的任务管理器虽然不好用(个人更喜欢Process Explorer些),但也算方便,可以方便的查看进程,CPU,内存...也可以很容易的结束进程 没有图形化界面下的Linux,也有命令可以实现Windows的任务管理器功能,这个命令就是"top",用户可以使用top来对进程排序,结束进程等. top 命令是 Linux 下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,默认5
Linux Tutorial
Linux Tutorial System Administration Guide Copyright ? 2005 Red Hat, Inc. ISBN: N/A Table of ContentsIntroduction 1. Changes To This Manual2. Architecture-specific Information3. Document Conventions4. Activate Your Subscription 4.1. Provide a Red Hat Login4.2. Provide Your Subscription Number4.3. Connect Your System 5. Using the Mouse6. Copying and Pasting Text With X7. More to Come 7.1. Send in Your Feedback I. Installation-Related Informati
关于Unix/Linux下查看命令行历史记录(history/.bash_history)
1.vi .bash_history 关于.bash_history的配置 export HISTCONTROL=ignoreboth Don’t save duplicates export HISTSIZE=10000 这个是针对history命令的设置,The number of commands to remember in the command history. The default value is 500. export HISTFILESIZE=10000 这个是针对history文件(.bash_history)的设置,The maximum number of lines contained in the history file. When this variable is assigned a value, the his-tory file is truncate
关于Linux/Unix的Profile文件
用户可以在Profile文件中加入环境变量,比如ORACLE_HOME,HOME...这样重新登录之后,这些环境变量都会得以设置,不用每次都手工设置。 Unix/Linux有两个profile文件 1./etc/profile:是全局profile文件,设置后会影响到所有用户 2./home/username/.profile或.bash_profile是针对特定用户的,可以针对用户,来配置自己的环境变量。 注意:profile是unix上才有的;bash_profile是Linux下有的(Linux下,用户目录
Linux下环境变量的设置-export命令
Window下环境变量的设置,可以在我的电脑>属性>高级>环境变量里进行设置,也可以在命令行(cmd)里执行下边语句来设置 set ORACLE_SID=orclps:cmd下查看环境变量方法,输入set ORACLE_SID Linux下环境变量的设置可以用下边的命令 dev_home=$HOME/dev cd $dev_home就能进入/home/ptian/dev目录了 但是这种环境变量的设置,只能保证它在当前的shell下有效,如果你重新启动一个shell或者启动
linux下tar命令遇到error:"Error exit delayed from previous errors"
用tar命令(tar -cvfz src.tar.gz src)去压缩一个目录,遇到错误"Error exit delayed from previous errors" 原因选项"f" 表示The archive file name is given on the command line (required whenever the tar output is going to a file),f后边需要跟压缩文件的名字。 所以把tar命令从"tar -cvfz src.tar.gz src"改成"tar -czvf src.tar.gz src"后,就不会遇到那个错误了。
Linux/Unix下使用tar命令压缩和解压[tar Examples]
压缩tar -cvf xxx.tar.gz yourdirectory 解压解压tar gz(Gzip)文件 tar -xzvf mystuff.tgz 解压普通的tar文件 tar -xvf mystuff.tar参数的意义c Create a new archive.t List the contents of an archive.x Extract the contents of an archive.f The archive file name is given on the command line (required whenever the tar output is going to a file)M The archive can span multiple floppies.v Print verbose output (list file names as they are processed).u Add files to the archive if they
Linux/Unix下grep命令使用的几个例子[grep Examples]
grep 语法 grep \'word\' filename grep \'string1 string2\' filename cat otherfile | grep \'something\' command | grep \'something\' command option1 | grep \'data\' grep --color \'data\' fileName 基本的用法 在某个文件里搜索error字符串 $ grep "error" log.txt 忽略大小写搜索(-i) $ grep -i "ErroR" log.txt 所有子目录下的搜索(-r) $ grep -r "exception" log.txt 全字匹配搜索(-w) 如果你搜
我的高频Unix命令(逐渐补充...)
su 切换到另一用户whoami(or who am i)显示当前用户who查看当前在线上的用户man 查看其它命令的用法cp -rf src desc 目录拷贝rm -rf src 目录删除mkdir -m777 oralce/apps –p创建多层目录emacs 启动emacs编辑器netstat 显示网络状态vmstat 显示虚拟内存状态iostat 显示输入/输出状态echo 将字符串写入到标准输出ping测试网络,ping不仅仅是windows下的命令,在unix和linux下也有这个