1、文件目录操作 pwd:显示当前目录 cd:目录跳转
ls:-a—全部;-l—列举目录;-F--文件类型;-r--逆向(从后向前);-R--递归;-S--大小 locate:查找文件或目录 clear:清除终端窗口
cat:显示文件内容 head:查看文件开头部分 ...
分类:
系统相关 时间:
2014-07-22 23:14:53
阅读次数:
708
用shell写了个递归遍历目录的脚本,本脚本实现递归遍历指定目录,打印目录下的文件名(全路径)。#!/bin/sh function scandir() {
local cur_dir parent_dir workdir workdir=$1 cd ${workdir} if [ ${w...
分类:
其他好文 时间:
2014-07-22 23:14:53
阅读次数:
563
rlwrap工具可以解决linux下sqlplus提供浏览历史命令行的功能,和删除先前输入错误的字母等问题1.安装需要readline包
这个安装光盘就有[root@asm RedHat]# cd RPMS/[root@asm RPMS]# rpm -Uvh readline*warning:
re...
分类:
数据库 时间:
2014-07-22 23:12:57
阅读次数:
649
由于没有上过Linux编程这门课,所以Linux学得很水啊!!用来用去都是ls -al ;
cd ..
;这些渣命令,尤其gcc都不知道什么东西来的,所以先学一下吧。一.程序的编译过程对于GUN编译器来说,程序的编译要经历预处理、编译、汇编、连接四个阶段,如下图所示:在
预处理阶段,输入的是C语言....
分类:
其他好文 时间:
2014-07-22 23:11:35
阅读次数:
323
下载Firefox 29.0% cd ~/Downloads% sudo cp
firefox-29.0.tar.bz2 /opt% cd /opt% sudo tar -xvjf firefox-29.0.tar.bz2然后% sudo
ln -sf /opt/firefox/firefox /....
分类:
其他好文 时间:
2014-07-22 23:06:13
阅读次数:
311
Problem D: Airport ExpressIn a small city
called Iokh, a train service,Airport-Express, takes residents to the airport
more quickly than other transpo...
分类:
其他好文 时间:
2014-04-30 13:53:23
阅读次数:
347
一,创建所需目录 1)创建审计文件目录 PROD1@dbrac1 /dsg/oracle11$
cd $ORACLE_BASE/adminPROD1@dbrac1 /u01/app/oracle/admin$ mkdir -p
PROD1/adump2)创建数据文件目录mkdir -p /dsg/o...
分类:
数据库 时间:
2014-04-30 13:38:02
阅读次数:
671
Problem C: A Walk Through the ForestJimmy
experiences a lot of stress at work these days, especially since his accident
made working difficult. To rel...
分类:
其他好文 时间:
2014-04-29 17:21:46
阅读次数:
368
cd /etc/sysconfig/network-scriptscp ifcfg-eth0
bak.ifcfg-eth0cp ifcfg-eth1 bak.ifcfg-eth1vi
ifcfg-bond0DEVICE=bond0BROADCAST=192.168.8.255IPADDR=192.1...
分类:
系统相关 时间:
2014-04-29 17:17:47
阅读次数:
639
Carmichael Numbers An important topic nowadays in
computer science is cryptography. Some people even think that cryptography is
the only important fi....
分类:
其他好文 时间:
2014-04-29 16:31:45
阅读次数:
504