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?
• 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?