面试题
一.
1.mkdir ../dir1 touch ../dir/file1
2.cp /mnt/dir1/* /home/dir2
3.pwd
4.ls -lh
5.ifconfig
6.top
7.ps -ajx|grep python
8.kill -9 7580
9.ping www.baidu.com
10.grep -r /usr "name"
11.i esc :wq
13.df -h
16.tar -xvzf tmp.tar.gz
17.chmod 765 tmp
二、
1.19 4 4 4
2.5
cpp
#include <iostream>
using namespace std;
int main()
{
string s = " 1245a";
for(unsigned int i=0;i<s.size();i++)
{
cout<<hex<<s[i]<<endl;
}
return 0;
}
4.58 96
-
(1) 1 (2) 4 (3) 1 (4) 31 (5) 3