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退出
* 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退出
相关文章推荐
- RH033 Unit 3 Running Command and Getting Help
- RH033 Unit3 Running Commands and Getting Help
- RH033 Unit3 Running Commands and Getting Help
- rche033 unit2-running commands and getting help
- Difference between help, info and man command
- getting git-svn up and running on ubuntu
- <Android开源库> Realm For Android~ Getting Help and Models(译文)
- Detect if the UnitTest is running and fix the AppDomain.BaseDirectory in VS 2008
- Kibana User Guide [4.2] » Getting Kibana Up and Running
- GETTING UP AND RUNNING WITH NODE.JS, EXPRESS, JADE, AND MONGODB
- Getting started with unit tests in Qt Creator and Catch
- GETTING UP AND RUNNING WITH NODE.JS, EXPRESS, JADE, AND MONGODB
- Cocos2D HTML5 tutorial 1: Getting set up and running
- Walkthrough: Creating and Running Unit Tests for Managed Code
- THE DEAD-SIMPLE STEP-BY-STEP GUIDE FOR FRONT-END DEVELOPERS TO GETTING UP AND RUNNING WITH NODE.JS,
- linux command Line and shell script bible(笔记十一)
- Command List and Some Picture
- VS2015,1>cl : Command line error D8016: '/ZI' and '/Gy-' command-line options are incompatible
- getting more and more excited
- Using the multiple NICs of your File Server running Windows Server 2008 (and 2008 R2)