Linux Shell Scripting Tutorial v2.0(17)

2020-12-16 13:03

Executing A Command

Type your command, and press enter key. Try this the date command which will display current date and time:date

Sample outputs:

Tue Apr 27 05:20:35 IST 2010

Command And File Completion

The Bash shell will complete file and command names, when possible and/or when you tell them to. For example, ifyou type sle and pressing Tab key will make the shell automatically complete your command name. Anotherexample, if you type ls /e and pressing Tab key will make the shell automatically complete your word to /etc as itsees that /etc/ is a directory which starts with /e.

Getting Help In Linux

Most commands under Linux will come with documentation.

You can view documentation with the man command or info command. In this example, open the manpage fordate command:man date

You can read info documentation as follows for the ls command:info ls

Many commands accepts --help or -h command line option. In this example, display help options for the datecommand:date --help

In short use any one of the following option to get more information about Linux commands:man commandNameinfo commandNamecommandName -h

commandName --help


Linux Shell Scripting Tutorial v2.0(17).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:预防艾滋病主题班会

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: