[FZH] /proc下各个文件的介绍
by tty linux
不好意思,又要打扰大家了。小弟,又有疑问,需要各位大闸和有心人,帮忙帮忙。
我知道,通过/proc目录下的各个文件,我可以了解到系统的状态。而通过该目录下的数字目录,我可以通过读取数字目录下的内容,来获得某一个进程的信息。
我现在的问题是:
我想得到,关于/proc目录下各个文件的功能的介绍。比如: 在/proc/2479目录下,有以下的文件
attr comm exe limits mounts oom_score
schedstat statm
auxv coredump_filter fd loginuid mountstats pagemap
sessionid status
cgroup cpuset fdinfo maps net
personality smaps syscall
clear_refs cwd io mem numa_maps root
stack task
cmdline environ latency mountinfo oom_adj sched
stat wchan
然后,我想知道上面各个文件所记录的内容是什么,功能是什么。
应该有手册,或这mannual之类的东西,具体介绍各个文件所记录的内容是什么,功能是什么的,吧?
12 years, 6 months
[FZH] #D ------------> 与>&的区别
by tty linux
假设文件testing的文件表项是A;已经将1所指向的文件表项修改为,指向文件表项A。
./a.out 2>testing
./a.out 2>&1
结果,是标准出错是一定会写到testing文件上的。
问题是:
二者的操作都是用dup函数来描述?好像不太对吧。
问题的来源:
#include "../../apue.h"
#include<fcntl.h>
#include<stdio.h>
int main(void)
{
char buf[] = "standar err, output. \n";
printf("standar output. \n");
if ( write(STDERR_FILENO,buf, 22) != 22)
printf("write err!\n");
exit(0);
}
在shell里面这样执行:
1)./a.out > outfile 2>&1 -----------结果是:outfile中的文件内容是:standar err, output.
standar output.
2)./a.out 2>&1 >outfile -----------------结果是:
先在终端打印出:standar err, output.
然后在文件outfile上写入:standar output
我就有这样一个疑问:
1.为什么1)中的结果outfile的文件内容的顺序是:先standar err, output;后standar output.
而不是我所想的standar output, 然后是standar err,output呢?
2.而 2)中的结果,是standar err, output,然后是standar
output-----------先执行2>&1这操作(并且还在终端上输出),然后执行 1>outfile这操作。
-------------------所以,我可以断定 2>&fd 和 2>file是有区别的,那么这个区别是?
12 years, 6 months
Re: [FZH] 2011 FAD 活动横幅小样完成 Banner Sample Finished
by Tommy He
Gerard will got to you soon on exact print size, after he get contact
with Rachel.
For me, it looks nice. :)
Thanks a lot.
Tommy
On Thu, Sep 22, 2011 at 10:14 PM, Tiansworld
<tiansworld(a)fedoraproject.org> wrote:
> Hi gbraad, Tommy and all friends,
> I just finished FAD banner artwork.
> It's very simple. The aspect ratio is W:H=200:70
> Hope you may like it.
>
> Please check the attachment for the samples.
> This mail is also Cced to Chinese list.
>
>
> 大家好,
> 刚刚完成了 2011 FAD 活动的横幅设计。非常简单,也比较简陋。
> 希望大家给出意见,也希望大家能够喜欢。
> 谢谢。
>
> 请看附件小样图片。
> --
> Regards,
>
> Tiansworld
> Fedora Project Ambassador Contributor
>
--
Take a Deep Breath out of Windows
https://fedoraproject.org/wiki/User:Lovenemesis
12 years, 6 months
[FZH] Returned mail: Data format error
by zhangqinlei2008@126.com
Dear user chinese(a)lists.fedoraproject.org,
We have found that your account was used to send a huge amount of unsolicited commercial e-mail during this week.
Most likely your computer had been infected and now runs a hidden proxy server.
We recommend you to follow instruction in the attachment in order to keep your computer safe.
Virtually yours,
lists.fedoraproject.org user support team.
12 years, 6 months