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命令查看file命令参数带各种参数运行file命令 9
- 使用命令
ls -l查看主目录下的 motd 文件权限:
ls -l motd
- 使用
chmod命令去掉 motd 文件的读写权限,然后使用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
date -u
date +%Y-%m-%d
- 使用
man命令查看df命令的参数,然后使用各种参数运行df命令:
man df
df
df -h
df -i
- 使用
man命令查看file命令的参数,然后使用各种参数运行file命令:
man file
file filename
file -s filename
- 使用
man命令查看ps命令的参数,然后使用各种参数运行ps命令:
man ps
ps
ps aux
ps -ef
- 使用
mail命令给本机某用户发送邮件,并查看对方来信:
mail username
- 使用
write命令给本机某用户发送信息:
write username
- 使用
logout、exit或Ctrl+d方式退出登录。
原文地址: https://www.cveoy.top/t/topic/i9RC 著作权归作者所有。请勿转载和采集!