linux学习笔记(1)

pwd:查看当前的directory,
man:显示help文件内容,u:转到上层,p:下一页,N:下一条,
ls -l:列出当前的所有目录和文件(不含隐藏文件),
ls -a:列出所有文件和目录(含隐藏文件),
touch:创建新文件,
mkdir:创建新的directory,
cat:show the content of special file,
rm:remove the special file while this directory is null,
cp:copy file to another file,
mv:moving the special file or directory

命令1&&命令2:命令1成功时才执行命令2,
命令1||命令2:命令1执行失败时才执行命令2,
(命令1;命令2;. . .)在当前s h e l l中执行一组命令,可以用命令分隔符隔开每一个命令,并把所有的命令用圆括号()括起来。
如果使用{ }来代替(),那么相应的命令将在子s h e l l而不是当前s h e l l中作为一个整体被执行,只有在{ }中所有命令的输出作为一个整体被重定向时,
其中的命令才被放到子s h e l l中执行,否则在当前s h e l l执行。它的一般形式为:{命令1;命令2;. . . }



posted @ 2008-06-09 22:00  Salesforce  阅读(176)  评论(0编辑  收藏  举报