06 2016 档案
摘要:显示9:05:00 到9:15:00 之间在/home/student/systemdreview.txt 文件中记录所有systemd日志条目 # echo "journalctl --since 9:05:00 --until 9:15:00" >/home/student/systemdrev
阅读全文
摘要:把计算机时区调整到巴哈马(这是个啥地方?听都没听过。) 使用 tzselect 进行确定时区,并进行可对话性的设置,按照对应的序号,射进去就行了。 使用:timedatectl set-timezone "时区名" 设置时区 使用:timedatectl 验证设置是否符合题目要求。
阅读全文
摘要:生成SSH公钥 $ ssh-keygen 生成的公钥安装到指定的服务器上,这里安装到desktop0上的student账户 $ ssh-copy-id desktop0 $ su - 禁用root用户的SSH连接,并且仅允许基于密钥的登录,学会自定义ssh服务 在/etc/ssh/sshd_conf
阅读全文
摘要:停止cups服务 $ sudo systemctl stop cups $ sudo systemctl status cups 配置cups服务,使其不在系统启动时启动 $ sudo systemctl disable cups $ sudo systemctl status cups 杀死进程c
阅读全文
摘要:将文件/home/student/vimfile.txt 复制到server 上的/home/student/longlisting.txt 。 根据下列要求,使用vim编辑器更改 /home/student/longlisting.txt 文件: . 删除文件所有者列。不要删除任何空格。 .删除D
阅读全文
摘要:使用man page 研究如何在输出中禁用颜色。将ls命令的相关选项放到server上的文本文件 /home/student/lscolor.txt中。 1. 在ls(l) man page中查询相关选项,以确定如何防止ls 提供彩色输出。正确的选项是什么? $ man ls ls 使用--colo
阅读全文
摘要:十台linux系统需要更改文档。请在server上执行以下任务: .在server计算机上,以student用户在/home/student目录中创建空文件,并将文件取名system_changes-machineY-month_Z.txt 。 将Y替换为计算机编号,将Z替换为月份jan、feb、m
阅读全文
摘要:1、使用bash命令,在server机上完成以下任务。(考点是:head tail的使用) .显示/usr/bin/clean-binary-files文件的前12行,并将其输出到/home/student/headtail.txt .显示/usr/bin/clean-binary-files文件的
阅读全文