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

相关推荐
古城小栈1 小时前
Python 的主流Ai框架为什么优先适配 Linux 系统?
linux·人工智能·python
aFakeProgramer2 小时前
S-CORE Docker 环境
linux
error:(2 小时前
Ubuntu 22.04 GNOME远程桌面配置问题排查与解决全流程
linux·运维·ubuntu
wcy100862 小时前
为 CentOS 7.6 (7.6.1810) 配置阿里云 Vault 源
linux·阿里云·centos
江华森2 小时前
Linux 运维新手入门课
linux·运维·服务器
载数而行5203 小时前
Linux 9 服务管理(进程的一种)
linux
追梦的小菜3 小时前
linux 下磁盘挂载
linux
izcll3 小时前
ubuntu系统安装软件的方法
linux·运维·ubuntu
江华森3 小时前
高级 Bash 脚本编程指南 — 实战教程
开发语言·bash
承渊政道3 小时前
【MySQL数据库学习】(MySQL表的内外连接)
数据库·学习·mysql·leetcode·bash·数据库开发·数据库系统