Linux cshrc文件做用html
Linux如何起進程/查看進程/殺進程linux
Linux 文件755 表明什麼權限程序員
Linux輔助線程面試
Linux進程間通訊方法shell
pipeline,msgq...bash
進程間通訊_百度百科函數
http://baike.baidu.com/link?url=tLNXNQvG5Wo6NptnjkflYaUQbdqW5fC3n40Cv4iF4YSX5EzgfJgwIbZnAfpXLVV1QRvP1293Dgo9qRBmSVfME_測試
Linux基本命令this
Linux監控命令,監測IOurl
46個Linux面試常見問題
面試中22 個 Linux 高頻命令
面試 | Linux 下的動態連接庫問題
面試 | Linux 下軟連接和硬連接的區別
100 道 Linux 筆試題
Shell
What is $*?
Will display all the commandline arguments that are passed to the script
What is the difference between a shell variable that is exported and the one that is not exported?
export LANG=C
will make the variable LANG the global variable, put it into the global environment. all other processes can use it.
LANG=C
will change the value only in the current script.
How will you list only the empty lines in a file (using grep)?
grep "^[ ]*$" filename.txt
In character set (between [ and ] one space and tab is given)
this command will gives all the blank line including those having space and tabs (if pressed)only
How do you read arguments in a shell program - $1, $2 ?
#!/bin/sh
for i in $*
do
echo $i
done
On executig the above script with any number of command-line arguments it will display all the parametsrs.
How would you get the character positions 10-20 from a text file?
cut -c10-20 <filename.txt>
or
cat filename.txt | cut -c 10-20
用腳本實現:兩個文件有多列,在指定列中找相匹配串。
精心彙總的 24 道 shell 腳本面試題 - 程序員大咖
常見的 shell 腳本面試題