LinuxC高级作业2

1.整理思维导图

2.做一套笔试题

一:

1. cd ..

mkdir dir1

cd dir1

touch file1

**2.**cp ~/mnt/dir1/ -r * ~/home/dir2/

**3.**pwd

**4.**ls -l

**5.**ifconfig

**6.**top

**10.**find /usr -type f -name "*name*"

11.:wq

**13.**df -h

**14.**tar -xzvf tmp.tar.gz

**15.**sudo chmod 765 tmp

二:

1.(1)19 (2) 4 (3)100 (4)4

**2.**3

3.

cpp 复制代码
#include <iostream>
#include <string>
#include <iomanip> 
using namespace std;

int main() 
{
    string a = "1234a";
    for (char c : a) 
    {
        cout << hex << setw(2) << setfill('0') << static_cast<int>(c) << " ";
    }
    cout << endl;
    return 0;
}

**4.**x=58 y=96

5.(1)1 (2) 0 (3)1 (4)1 (5)4

相关推荐
IMPYLH16 小时前
Linux 的 tac 命令
linux·运维·服务器·bash
计算机安禾16 小时前
【Linux从入门到精通】第50篇:专栏总结与Linux学习之路的未来展望
linux·运维·学习
zhouwy11316 小时前
Linux 内核学习笔记:从零搭建内核开发与调试环境
linux
GottdesKrieges16 小时前
OceanBase备份常见问题
linux·网络·oceanbase
白菜欣16 小时前
Linux —进程概念
linux·运维·服务器
iuu_star16 小时前
Vue+FastAPI 项目宝塔Linux部署指南
linux·运维·fastapi
楼田莉子16 小时前
仿Muduo的高并发服务器:Channel模块与Poller模块
linux·服务器·c++·学习·设计模式
zhouwy11316 小时前
Linux网络编程从入门到精通
linux·c++
zhangrelay17 小时前
ROS Kinetic-信号与系统-趣味案例
linux·笔记·学习·ubuntu
IMPYLH17 小时前
Linux 的 tail 命令
linux·运维·服务器·bash