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

相关推荐
zhixingheyi_tian6 小时前
Linux 之 memory 碎片
linux
邂逅星河浪漫6 小时前
【域名解析+反向代理】配置与实现(步骤)-SwitchHosts-Nginx
linux·nginx·反向代理·域名解析·switchhosts
梅尔文.古6 小时前
RaspberryPi-如何启用看门狗
linux·运维·服务器
木子欢儿6 小时前
Ubuntu 24 安装 fcitx5 + rime + 雾凇配置
linux·运维·服务器·ubuntu
Alice6 小时前
linux scripts
java·linux·服务器
代码游侠6 小时前
学习笔记——IPC(进程间通信)
linux·运维·网络·笔记·学习·算法
txzz88886 小时前
CentOS-Stream-10 YUM配置文件
linux·运维·centos·yum配置文件
qq_339191147 小时前
ubuntu 配置ulimit -n , ubuntu配置文件描述符数量, ubuntu优化,ubuntu系统调优
linux·运维·ubuntu
wdfk_prog7 小时前
Ubuntu 虚拟机根文件系统损坏故障的深度分析与修复
linux·数据库·ubuntu