您的位置:首页 > 其它

Unit 2: Running Command and Getting Help

2009-05-06 09:28 309 查看
commands have the following syntax: command [options][arguments]

* display all the files include hidden files
# ls --all | # ls -a

* combine -a and -l options
# ls -a -l | # ls -al

* list /tmp directory
# ls -l /tmp

* copy some files to /tmp directory
# cp *.* /tmp

* see user “root”'s password status
# passwd -S root

* add a new user user2
# useradd user2

some simple commands
-----------------------------------------------------------------
* show date
# date +%D //(mm/dd/yyyy)
# date +%T //(h:m:s)

* show 2006年6月的calendar
# cal 6 2006

* 将2006年的日历写入2006text
# cal 2006 > 2006text
# cat 2006text

-----------------------------------------------------------------
getting help:
* whatis/man/info/--help/doc
# whatis ls
# date --help
# man ls //一般使用1,5,8章节,按Q退出
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: