由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - question
相关主题
login shell and normal shell?how to change the log in shell?
hotkey in unixmy homework for UNIX shell高手, thanks!!!
能这样么?how can I change csh to tcsh or bash
如何实现下列功能?how to escape both ' and " from tcsh?
[转载] Shell高手看过来。how to grep with more than one patterns in tcsh?
bad root shell?[转载] qestion about grep
看看下面这个至少要多少行help
Korn shell scripthow to turn echo off in shell scipt?
相关话题的讨论汇总
话题: unix话题: what话题: shell话题: keyboard话题: input
进入Unix版参与讨论
1 (共1页)
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 的大作中提到】
: 1,UNIX 下如何查看一个目录的大小?
: ls -l 似乎只显示文件的的大小。
: 2,命令方式的ftp下,如何传整个目录?
: thanks

r*****d
发帖数: 54
3
du

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

W****n
发帖数: 141
4
du -k -s

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

p*********r
发帖数: 23
5
2. can't do

【在 W****n 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: which UNIX command can check current shell version?
s**s
发帖数: 242
10
cat /etc/passwd|grep your_account_name

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

相关主题
bad root shell?how to change the log in shell?
看看下面这个至少要多少行my homework for UNIX shell高手, thanks!!!
Korn shell scripthow can I change csh to tcsh or bash
进入Unix版参与讨论
t*******l
发帖数: 421
11
echo $shell

【在 g***y 的大作中提到】
: 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 的大作中提到】
: echo $shell
c**g
发帖数: 274
13
ps

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

1 (共1页)
进入Unix版参与讨论
相关主题
how to turn echo off in shell scipt?[转载] Shell高手看过来。
[转载] Help ! hwo to get the # of cpu's ???bad root shell?
a puzzle!!看看下面这个至少要多少行
How to check OS information ?Korn shell script
login shell and normal shell?how to change the log in shell?
hotkey in unixmy homework for UNIX shell高手, thanks!!!
能这样么?how can I change csh to tcsh or bash
如何实现下列功能?how to escape both ' and " from tcsh?
相关话题的讨论汇总
话题: unix话题: what话题: shell话题: keyboard话题: input