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

相关推荐
涛ing3 小时前
32. C 语言 安全函数( _s 尾缀)
linux·c语言·c++·vscode·算法·安全·vim
__雨夜星辰__3 小时前
Linux 学习笔记__Day2
linux·服务器·笔记·学习·centos 7
大耳朵土土垚3 小时前
【Linux】日志设计模式与实现
linux·运维·设计模式
深度Linux8 小时前
Linux网络编程中的零拷贝:提升性能的秘密武器
linux·linux内核·零拷贝技术
chian-ocean11 小时前
从理论到实践:Linux 进程替换与 exec 系列函数
linux·运维·服务器
拎得清n12 小时前
UDP编程
linux
敖行客 Allthinker12 小时前
从 UTC 日期时间字符串获取 Unix 时间戳:C 和 C++ 中的挑战与解决方案
linux·运维·服务器·c++
夏尔Gaesar13 小时前
Vim安装与配置教程(解决软件包Vim没有安装可候选)
linux·编辑器·vim
hunter20620613 小时前
如何监控ubuntu系统某个程序的运行状态,如果程序出现异常,对其自动重启。
linux·chrome·ubuntu
慕雪华年14 小时前
【Linux】opencv在arm64上提示找不到libjasper-dev
linux·运维·opencv