Redian新闻
>
4月17日寄走了,现在也没有收到RECEIPT 急呀!
avatar
4月17日寄走了,现在也没有收到RECEIPT 急呀!# EB23 - 劳工卡
s*k
1
Unix Questions (shell questions apply to sh/ksh/bash)
• How many ways can you think of to remove a file called '-r'?
• How might one trap a SIGKILL from within shell, or C, Perl or
Python?
• Can a Unix process become unkillable? If so, how?
• How would you find the disk space consumed by a directory without
using du?
• What happens if /dev/zero is deleted from a running system? If
you want it back, how do you recover it?
• When using a terminal interactively, what piece of software will
first interpret submitted commands?
• What does the token "2>&1" do when appended to a sh/bash/ksh
command?
• What would you use to run a command on a remote host (non-
interactively)? (Provide as many answers as possible.)
• What does the character ~ represent to the shell?
• Can an executable run under uid 1000 read arbitrary physical
memory locations, and why?
• What does the '-rw-r----' token mean when appearing in the first
column of the 'ls -l' output?
• What is the /proc filesystem?
• How many new processes are created in running the below command:
echo -e "foo\nbar" | grep "foo"
• How would you determine if a UNIX machine is heavily swapping?
• How do you find the current load average of a UNIX host? What
does that information really mean?
• Programming problem: clean out files in /tmp that were last
written to more than a week ago.
• What does 'set -e' do, and why might it be considered dangerous?
• How would you direct stdout and stderr into the same file, using
the filename only once?
avatar
h*u
2
怎么办? 最后是不是可能EB2也没赶上,EB3又大后退。
avatar
A*l
3
How might one trap a SIGKILL from within shell, or C, Perl or
Python?
印象中SIGKILL signal是无法trap的,求高手解答。

without
will

【在 s********k 的大作中提到】
: Unix Questions (shell questions apply to sh/ksh/bash)
: • How many ways can you think of to remove a file called '-r'?
: • How might one trap a SIGKILL from within shell, or C, Perl or
: Python?
: • Can a Unix process become unkillable? If so, how?
: • How would you find the disk space consumed by a directory without
: using du?
: • What happens if /dev/zero is deleted from a running system? If
: you want it back, how do you recover it?
: • When using a terminal interactively, what piece of software will

avatar
d*o
4
急了也没用,再等一两星期吧!
avatar
s*k
5
也回答下其他知道的问题,给菜鸟像我一点unix的指点,这玩意不用用真不知道怎么准备

【在 A********l 的大作中提到】
: How might one trap a SIGKILL from within shell, or C, Perl or
: Python?
: 印象中SIGKILL signal是无法trap的,求高手解答。
:
: without
: will

avatar
l*y
6
额~ 我4/9 显示他们收到 到现在还没有receipt呢
avatar
c*n
7
• How many ways can you think of to remove a file called '-r'?
unlink/rm/...?
• How might one trap a SIGKILL from within shell, or C, Perl or
Python?
Perhaps there are nothing you can do with SIGKILL without patching the init.
..
• Can a Unix process become unkillable? If so, how?
Yes. uninterruptible sleep
• How would you find the disk space consumed by a directory without
using du?
don't know. find . | ls | awk | sort | awk | ... ?! &*^([email protected]#(*^@#
• What happens if /dev/zero is deleted from a running system? If
you want it back, how do you recover it?
mknod major,minor.
• When using a terminal interactively, what piece of software will
first interpret submitted commands?
shell?
• What does the token "2>&1" do when appended to a sh/bash/ksh
command?
stderr -> stdio
• What would you use to run a command on a remote host (non-
interactively)? (Provide as many answers as possible.)
ssh [email protected] command
rexec
expect script with telnet
• What does the character ~ represent to the shell?
homedir (see echo ~)
• Can an executable run under uid 1000 read arbitrary physical
memory locations, and why?
no. not root.
• What does the '-rw-r----' token mean when appearing in the first
column of the 'ls -l' output?
regular file. I suppose it should be -rw-r----- owner: r+w, group: r, other:
no perm
• What is the /proc filesystem?
procfs "presents information about processes and other system information in
a hierarchical file-like structure"
• How many new processes are created in running the below command:
echo -e "foo\nbar" | grep "foo"
shoule be 1 (grep only, echo is shell built-in command)
• How would you determine if a UNIX machine is heavily swapping?
free, top
• How do you find the current load average of a UNIX host? What
does that information really mean?
1, 5, 15 min load avg. /proc/loadavg or type in w
• Programming problem: clean out files in /tmp that were last
written to more than a week ago.
find . -ctime +7 -delete
• What does 'set -e' do, and why might it be considered dangerous?
don't know
• How would you direct stdout and stderr into the same file, using
the filename only once?
2>&1...
avatar
S*y
8
寄出就可以了。RECEIPT肯定会有的。时间问题。不用急。一个月是正常
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。