我是Linux新手,我正在尝试创建一个备忘表,以帮助我记住常见的bash命令。如果您知道以下任务的任何命令,请张贴它们。我很感激你!
命令:
发布于 2009-09-10 08:31:09
1. hostname
2. lsb_release -a
3. echo ~
4. who
5. history | grep /usr/bin | tail -n 5
6. wc -w /usr/dict/words
7. groups [id -G -n for extra marks]
8. find ~ -name \* -type f -print
9. man -k bash确保你对自己的工作给予适当的引用;)
发布于 2009-09-10 06:59:36
1: hostname
2: uname -a
3:
4: users
5: cat ~/.bash_history (last commands in current user) to do exactly what you ask for you have to use grep over /etv/passwd to get the list of users and the use it to cat everyones .bash_history file
6:
7: cat /etc/passwd ans some grep wizardy
8:
9:发布于 2009-09-10 09:35:46
其他人回答了你的具体问题。如果您对学习shell感兴趣,那么您可以做的比阅读LinuxCommand.org更糟糕。如果您发现自己希望更进一步,高级巴什脚本指南是一个很好的资源。
https://serverfault.com/questions/64030
复制相似问题