LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: KornLee

【TCSH shell编程入门】

[复制链接]
 楼主| 发表于 2003-9-20 11:52:33 | 显示全部楼层
chmod u+x urfile
发表于 2003-10-8 23:11:57 | 显示全部楼层
感谢!
发表于 2003-11-4 21:14:31 | 显示全部楼层

csh和tcsh的区别在什么地方阿

呵呵,新手上路
 楼主| 发表于 2003-11-4 22:57:47 | 显示全部楼层
[/home/javalee/myshell]whereis tcsh
tcsh: /bin/tcsh /usr/share/man/man1/tcsh.1.gz
[/home/javalee/myshell]ll /bin/tcsh
-rwxr-xr-x    1 root     root       365432  8月  8  2002 /bin/tcsh
[/home/javalee/myshell]whereis csh
csh: /bin/csh /etc/csh.cshrc /etc/csh.login /usr/share/man/man1/csh.1.gz
[/home/javalee/myshell]ll /bin/csh
lrwxrwxrwx    1 root     root            4  6月  1 20:37 /bin/csh -> tcsh
csh
The "C" shell. Written by Bill Joy at Berkeley (who went on to found Sun Microsystems). Many things in common with the Bourne shell, but many enhancements to make interactive use much nicer. The syntax of the internal commands used only in scripts is very different from "sh", and is similar to the "C" programming syntax.
tcsh
The "TC" shell. Freely available, written mostly by various folks at Cornell University, and based on "csh". It has many additional features to make interactive use more convenient. The disadvantage is that until recently, it was not
installed by default on many versions of Unix. Not many people write scripts in [t]csh. We use it as the default shell for new accounts on all of our public systems.
http://www.linuxsir.cn/bbs/showt ... p;highlight=history
发表于 2004-1-5 22:02:19 | 显示全部楼层
呵呵,,不错
发表于 2004-2-24 16:56:42 | 显示全部楼层
看不懂啊.
 楼主| 发表于 2004-2-24 17:21:56 | 显示全部楼层
最初由 男孩 发表
看不懂啊.

万事开头难,多看看,多问问,多练练就懂了
发表于 2004-3-25 14:01:04 | 显示全部楼层
请问怎样在tcsh中返回一个特定名称的进程的PID
 楼主| 发表于 2004-3-25 14:12:07 | 显示全部楼层
  1. /home/javalee:tcsh
  2. [javalee@Linux ~]$ ps
  3.   PID TTY          TIME CMD
  4.   553 pts/0    00:00:00 ksh
  5. 1668 pts/0    00:00:00 tcsh
  6. 1688 pts/0    00:00:00 ps
  7. [javalee@Linux ~]$ ps|awk '/tcsh/{print $1}'
  8. 1668
  9. [javalee@Linux ~]$ echo $0
  10. tcsh
  11. [javalee@Linux ~]$
复制代码
发表于 2004-12-12 13:22:15 | 显示全部楼层
好收下了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表