2024.9.19

面试题

一.

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) 1 (2) 4 (3) 1 (4) 31 (5) 3

相关推荐
风中的微尘4 小时前
数学基础2
算法
一只小小的芙厨5 小时前
树状数组总结
数据结构·算法
郝学胜-神的一滴7 小时前
Effective STL 条款 17:用 swap 技巧去掉多余容量
c语言·开发语言·数据结构·c++·算法·rpc
玩转单片机与嵌入式8 小时前
深入浅出TinyML 36:如何验证一个TinyML系统真正具备工程应用价值?
网络·人工智能·算法
Nazarick9 小时前
力扣LeetCode热题75题(1)
java·算法·leetcode·力扣
16月6日-晴10 小时前
斐波那契数列题解
算法·leetcode
郝学胜-神的一滴10 小时前
Effective Python 条款47:吃透惰性属性
大数据·开发语言·数据库·人工智能·python·算法·oracle
Keven_1112 小时前
算法札记:有限差分
算法
忙里偷闲学python12 小时前
GK2A 林火蔓延预报算法说明
算法
我是伪码农12 小时前
11.21程序设计
数据结构·算法