Linux video notes

windows客户程序访问Linux:
1.PuTTY: 免费软件
2.SecureCRT_5.1.3	:收费软件

远程管理软件:
vcn-4.0-x86_win32.exe	免费

Linux 与 Windows文件传输工具:
SSH.Secure.Shell.Client_3.2.9.exe (免费)

---------------------
Linux常用命令
ls 
-a	all
-l	long

d rwx r-x r-x
文件类型 
d 目录directory
- 二进制文件
l 软链接文件link

r: read; w: write; x:execute

1.所有者u(谁创建;也可以转让)
user
owner
2.所属组g
group
3.其他人o
others

2-硬链接数 所有者 所属组

-------------------------
压缩解压缩

1.gzip gunzip
2.tar
tar -zcvf mydir		#打包同时压缩文件夹
tar -zxvf mydir.tar.gz	#解压文件包
3. 
zip services.zip /etc/services	#会保留原文件
unzip services.zip	#解压缩
4.
bzip2 -k file1 		#.bz2,保留原文件
bunzip2 -k file1.bz2
--------------
网络命令
write
wall
ping -c 
-----------
shutdown -h now
reboot
--------------

Shell应用技巧
命令别名
输入/输出重定向
管道
命令连接符
命令替换符

0:STDIN
1:STDOUT
2:STDERROR

ls > /test/a.log	#覆盖文件
ls >> /test/a.log	#追加方式

ls ksdfj 2> error.log	#错误输出

管道:
将一个命令(程序)的输出作为另一个命令(程序)的输出.
ls -l /etc | more
ls -l /etc | grep init







posted @ 2011-08-16 01:18  庚武  Views(269)  Comments(0)    收藏  举报