免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 762 | 回复: 0
打印 上一主题 下一主题

linux 学习笔记 : 文件操作 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-12 22:01 |只看该作者 |倒序浏览
退出shell : ctrl + d, exit
关机 : shutdown
man man
man ls
man strcpy
man sleep
date
who
who am i
whoami
update
w
tty    //当前终端的设备文件名
passwd
passwd + someone (root only),(ctrl + d to stop)
write + someone
mesg n
mesg y
mesg
wall
telnet + IP (ctrl + ]) , (close)
ftp + IP
ftp> get src.tar.z
ftp> put main
ftp> ascii //(+CR 回车)
ftp> binary    //(only LF 换行)
ftp> hash
ftp> bye
cal
cal 2008
cal 8 1984
bc
scale = ( NUMBER )
bc -l    //(scale = 20)
more hello.java
more *.java
ls -l | more
pg hello.java
cat hello.java
cat hello.java world.java > t.txt
od hello.java
od -x hello.java
echo abcdefg | od -x    //(输出abcdefg的ASCII码)
head hello.java    //( -10 )
head -15 hello.java
tail -15 hello.java
netstat -s -p tcp | head -5
tail -f callThis.java
wc hello.java
pc -ef | wc -l
who | wc -l
sort hello.java>hello.sorted
ls -s | sort | tail -10
tee helle.java
sudo tar zxvf    (z 用gzip解压 ; x 解包 ; v 详细信息 ; f 解压的是文件)
正则表达式的特殊字符 : .  *  [  \  ^  $
$在表达式尾部表示特殊意义
^在表达式头部表示特殊意义
123$匹配行尾的123
.$匹配行尾的任意字符
grep class hello.java
egrep
fgrep    //fast-
-n        //显示行号
-i        //忽略大小写
date | awk '{print $4}'
awk -f std.awk hello.java
tail -f hello.java | sed 's/hello/hi/g'
cat hello.java | tr '[a-z]' '[A-Z]'
cmp f1.c f2.c
diff f1.c f2.c        //(-b忽略结尾空格)
vi hello.java
view hello.java
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/35627/showart_276726.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP