2 拷贝 etcmotd 文件到自己的主目录下 3 用 ls –l 查看主目录下的 motd 文件权限 4 用chmod命令给motd文件去掉r、w权限再用 ls –l 查看 5 用chmod命令给motd文件加上534权限再用ls –l 查看 6 用man命令查看date命令参数带各种参数运行date命令 7 用man命令查看df命令参数带各种参数运行df命令 8 用man命令
- 拷贝 /etc/motd 文件到自己的主目录下:
cp /etc/motd ~/motd
- 用 ls –l 查看主目录下的 motd 文件权限:
ls -l ~/motd
- 用chmod命令给motd文件去掉r、w权限,再用 ls –l 查看:
chmod -rw ~/motd
ls -l ~/motd
- 用chmod命令给motd文件加上534权限,再用ls –l 查看:
chmod 534 ~/motd
ls -l ~/motd
- 用man命令查看date命令参数,带各种参数运行date命令:
man date
date
- 用man命令查看df命令参数,带各种参数运行df命令:
man df
df
- 用man命令查看file命令参数,带各种参数运行file命令:
man file
file <filename>
- 用man命令查看ps命令参数,带各种参数运行ps命令:
man ps
ps <options>
- 用mail给本机某用户发送邮件,并查看对方来信:
mail user@example.com
- 用write给本机某用户发送信息:
write username
- 用logout、exit、Ctrl+d 方式退出登录:
使用其中一个方式退出登录。
原文地址: https://www.cveoy.top/t/topic/i9gs 著作权归作者所有。请勿转载和采集!