g***y 发帖数: 11 | 1 1,UNIX 下如何查看一个目录的大小?
ls -l 似乎只显示文件的的大小。
2,命令方式的ftp下,如何传整个目录?
thanks |
t*******l 发帖数: 421 | 2 ls -l: also gives size of dir.
(1) 使用 X 环境下的 ftptool, mftp 一类工具.我用WS-FTP
(2) 若 ftp site 支援 tar, 先打包再行传送.
或远程拷贝...
【在 g***y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 1,UNIX 下如何查看一个目录的大小? : ls -l 似乎只显示文件的的大小。 : 2,命令方式的ftp下,如何传整个目录? : thanks
|
r*****d 发帖数: 54 | 3 du
【在 g***y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 1,UNIX 下如何查看一个目录的大小? : ls -l 似乎只显示文件的的大小。 : 2,命令方式的ftp下,如何传整个目录? : thanks
|
W****n 发帖数: 141 | 4 du -k -s
【在 g***y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 1,UNIX 下如何查看一个目录的大小? : ls -l 似乎只显示文件的的大小。 : 2,命令方式的ftp下,如何传整个目录? : thanks
|
p*********r 发帖数: 23 | 5 2. can't do
【在 W****n 的大作中提到】![](/moin_static193/solenoid/img/up.png) : du -k -s
|
g***y 发帖数: 11 | 6 which UNIX command can check current shell version? |
k**e 发帖数: 86 | 7 what
for example, what /usr/bin/ksh
【在 g***y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : which UNIX command can check current shell version?
|
g***y 发帖数: 11 | 8 I mean how to know what is the shell, sh, bash or else.
Thanks
【在 k**e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : what : for example, what /usr/bin/ksh
|
l******t 发帖数: 108 | 9 echo $shell
is that what you want?
just checked, only works for csh and tcsh, not for ksh, sh.
don't know about others.
【在 g***y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : which UNIX command can check current shell version?
|
s**s 发帖数: 242 | 10 cat /etc/passwd|grep your_account_name
【在 g***y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : I mean how to know what is the shell, sh, bash or else. : Thanks
|
|
|
t*******l 发帖数: 421 | 11 echo $shell
【在 g***y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : which UNIX command can check current shell version?
|
A***e 发帖数: 130 | 12 that's for tcsh, for bash, echo $SHELL
a simple way is just type ps, if you do not have too much process on
your current terminal
【在 t*******l 的大作中提到】![](/moin_static193/solenoid/img/up.png) : echo $shell
|
c**g 发帖数: 274 | 13 ps
【在 g***y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : which UNIX command can check current shell version?
|
g***y 发帖数: 11 | 14 write a simple c program in UNIX.
What's the system function to capture the
input of keyboard?
like that:
printf("press any key to continue...\n");
/*wait the input of keyboard*/
while(?????){
|
o***z 发帖数: 133 | 15 man gets
【在 g***y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : write a simple c program in UNIX. : What's the system function to capture the : input of keyboard? : : like that: : : printf("press any key to continue...\n"); : /*wait the input of keyboard*/ : while(?????){ :
|
g***y 发帖数: 11 | 16 How to call unix shell command in C program?
Thanks |
s**s 发帖数: 242 | 17 system
【在 g***y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : How to call unix shell command in C program? : Thanks
|
g***y 发帖数: 11 | 18 I want to measure the execution time of a program. I don't want modify the
source code to call system call.
Is there any way to do that?
Thanks |
c*r 发帖数: 278 | 19 % time
【在 g***y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : I want to measure the execution time of a program. I don't want modify the : source code to call system call. : Is there any way to do that? : Thanks
|
g***y 发帖数: 11 | 20 How can I get system info, such as OS, CPU and so on, when I telnet a remote
machine? |
s*****a 发帖数: 1022 | 21 uname -a
【在 g***y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : How can I get system info, such as OS, CPU and so on, when I telnet a remote : machine?
|
m******y 发帖数: 67 | 22
^^^^^^^^^^^"sysinfo", u already knew it. :)
【在 g***y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : How can I get system info, such as OS, CPU and so on, when I telnet a remote : machine?
|