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

相关推荐
JobDocLS14 分钟前
Linux系统相关知识
linux·运维·服务器
QT 小鲜肉20 分钟前
【Linux命令大全】001.文件管理之gitview命令(实操篇)
linux·运维·服务器·chrome·笔记
DeeplyMind22 分钟前
Linux MMU Notifier 机制与应用系列目录
linux·驱动开发·mmu notifier
G_H_S_3_1 小时前
【网络运维】OpenStack 块存储与对象存储:Cinder 与 Swift 篇
linux·运维·网络·openstack
一点晖光1 小时前
MongoDB特殊查询语句
linux·mongodb
阿干tkl1 小时前
误卸载 openssl-libs 的补救方法
linux·运维
G_H_S_3_1 小时前
【网络运维】Docker网络:基础与实战
linux·运维·网络·docker
嵌入式学习和实践2 小时前
Linux/Windows 系统架构查看、安装包选择指南(嵌入式开发场景适配)
linux·windows·系统架构
小安运维日记2 小时前
RHCA - DO374 | Day09:自定义内容集和执行环境
linux·运维·服务器·系统架构·ansible·改行学it
虾..2 小时前
Linux 进程间通信---命名管道
linux·运维·服务器