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

相关推荐
杨云龙UP17 小时前
从0到可落地:Oracle RMAN异地NFS备份标准脚本(多实例通用)
linux·运维·数据库·oracle
古城小栈17 小时前
吃透Cron表达式
linux·服务器·数据库
猫猫的小茶馆17 小时前
【ARM】BootLoader(Uboot)介绍
linux·汇编·arm开发·单片机·嵌入式硬件·mcu·架构
Yeliang Wu18 小时前
LLaMA-Factory 模型评估理论与实战:基于 Ubuntu 22.04 的系统化指南
linux·ubuntu·llama·评估·llamafactory
生信大表哥18 小时前
单细胞测序分析(十一)轨迹分析
linux·rstudio·数信院生信服务器·生信云服务器
躺着听Jay18 小时前
【1267 - Illegal mix of collations 】mysql报错解决记录
java·linux·前端
不秃头的帅哥18 小时前
程序地址空间(基于c++和linxu的一些个人笔记
linux·开发语言·c++·操作系统·内存空间
Yweir18 小时前
Linux性能监控的工具集和分析命令工具
java·linux·jvm
XH-hui18 小时前
【打靶日记】群内靶机Monkey
linux·网络安全
赖small强18 小时前
【Linux C/C++开发】C语言函数深度技术指南 (Deep Dive into C Functions)
linux·c语言·函数指针·stack frame