:12
n 或 N | 查找下一个,n为同向,N为反向 |
gg : 跳转到文件头
Shift+g : 跳转到文件末尾
行数+gg : 跳转到指定行,例跳转到123行:123gg
rm -fr oss
:edit newfile.
:wqa
:set wrapper
:/functionname
telnet localhost 8080
chmod a+x file
tar zxvf zookeeper-3.4.5.tar.gz
mkdir -p /tmp/zookeeper
chmod -R a+x cgi-bin
ps aux|grap zookeeper
netstat -ntlp | grep 16853
netstat -ntl
useradd dreamliang -m -d /data/kobe -G users
telnet 10.6.19.139 80 ps uax |grep git
dmesg -c
git push
telnet localhost 2182
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
^]
telnet> quit
cat ../bin/start.sh
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH;`pwd`/../lib;/usr/local/services/python/lib"
cd ./..
uname -a
ldd ./zookeeper.so
svn st
strace ldd ./zookeeper.so
ls -al
ln -s libzookeeper_mt.so.2.0.0 libzookeeper_mt.so.2
ImportError: libclntsh.so.10.1: cannot open shared object file: No such file or directory
经过查找发现是oracle的路径没有设置
输入:
locate libclntsh.so.10.1
获取对于路径
/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
编辑/etc/ld.so.conf
vim /etc/ld.so.conf
在最后一行输入获取的路径
/oracle/product/10.2.0/db_1/lib/
4.命令实例:
实例1:创建一个空目录
命令:
mkdir test1
输出:
[root@localhost soft]# cd test
[root@localhost test]# mkdir test1
[root@localhost test]# ll
总计 4drwxr-xr-x 2 root root 4096 10-25 17:42 test1
[root@localhost test]#
实例2:递归创建多个目录
命令:
mkdir -p test2/test22
输出:
[root@localhost test]# mkdir -p test2/test22
[root@localhost test]# ll
总计 8drwxr-xr-x 2 root root 4096 10-25 17:42 test1
drwxr-xr-x 3 root root 4096 10-25 17:44 test2
[root@localhost test]# cd test2/
[root@localhost test2]# ll
总计 4drwxr-xr-x 2 root root 4096 10-25 17:44 test22
[root@localhost test2]#
实例3:创建权限为777的目录
命令:
mkdir -m 777 test3
输出:
[root@localhost test]# mkdir -m 777 test3
[root@localhost test]# ll
总计 12drwxr-xr-x 2 root root 4096 10-25 17:42 test1
drwxr-xr-x 3 root root 4096 10-25 17:44 test2
drwxrwxrwx 2 root root 4096 10-25 17:46 test3
[root@localhost test]#