avatar
g*y
1
1,UNIX 下如何查看一个目录的大小?
ls -l 似乎只显示文件的的大小。
2,命令方式的ftp下,如何传整个目录?
thanks
avatar
t*l
2
ls -l: also gives size of dir.
(1) 使用 X 环境下的 ftptool, mftp 一类工具.我用WS-FTP
(2) 若 ftp site 支援 tar, 先打包再行传送.
或远程拷贝...

【在 g***y 的大作中提到】
: 1,UNIX 下如何查看一个目录的大小?
: ls -l 似乎只显示文件的的大小。
: 2,命令方式的ftp下,如何传整个目录?
: thanks

avatar
r*d
3
du

【在 g***y 的大作中提到】
: 1,UNIX 下如何查看一个目录的大小?
: ls -l 似乎只显示文件的的大小。
: 2,命令方式的ftp下,如何传整个目录?
: thanks

avatar
W*n
4
du -k -s

【在 g***y 的大作中提到】
: 1,UNIX 下如何查看一个目录的大小?
: ls -l 似乎只显示文件的的大小。
: 2,命令方式的ftp下,如何传整个目录?
: thanks

avatar
p*r
5
2. can't do

【在 W****n 的大作中提到】
: du -k -s
avatar
g*y
6
which UNIX command can check current shell version?
avatar
k*e
7
what
for example, what /usr/bin/ksh

【在 g***y 的大作中提到】
: which UNIX command can check current shell version?
avatar
g*y
8
I mean how to know what is the shell, sh, bash or else.
Thanks

【在 k**e 的大作中提到】
: what
: for example, what /usr/bin/ksh

avatar
l*t
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 的大作中提到】
: which UNIX command can check current shell version?
avatar
s*s
10
cat /etc/passwd|grep your_account_name

【在 g***y 的大作中提到】
: I mean how to know what is the shell, sh, bash or else.
: Thanks

avatar
t*l
11
echo $shell

【在 g***y 的大作中提到】
: which UNIX command can check current shell version?
avatar
A*e
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 的大作中提到】
: echo $shell
avatar
c*g
13
ps

【在 g***y 的大作中提到】
: which UNIX command can check current shell version?
avatar
g*y
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(?????){
avatar
o*z
15
man gets

【在 g***y 的大作中提到】
: 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(?????){
:

avatar
g*y
16
How to call unix shell command in C program?
Thanks
avatar
s*s
17
system

【在 g***y 的大作中提到】
: How to call unix shell command in C program?
: Thanks

avatar
g*y
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
avatar
c*r
19
% time

【在 g***y 的大作中提到】
: 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

avatar
g*y
20
How can I get system info, such as OS, CPU and so on, when I telnet a remote
machine?
avatar
s*a
21
uname -a

【在 g***y 的大作中提到】
: How can I get system info, such as OS, CPU and so on, when I telnet a remote
: machine?

avatar
m*y
22

^^^^^^^^^^^"sysinfo", u already knew it. :)

【在 g***y 的大作中提到】
: How can I get system info, such as OS, CPU and so on, when I telnet a remote
: machine?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。