Solaris 10 学习笔记step by step(一)

本文介绍如何使用命令行构建和执行命令,包括使用在线文档资源的方法。读者将学会构造命令语法、利用命令行特性显示系统信息、清除终端屏幕以及浏览在线手册页。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Module 2

UsingCommand-LineFeatures and Online Help Resources

 

Objectives
This module describes how to use the command-line syntax and display
the online manual pages.
Upon completion of this module, you should be able to:
1.Construct and execute commands from the command line
2. Use online documentation


Task 1 Solutions

To construct commands, arrange the following terms to show the correct
syntax of a command:
options arguments command
command options arguments

Task 2 Solutions
To use command-line features, complete the following steps:

1. Open a terminal window from the Tools section of the Workspace Menu, if you do not already have one open.
Name the two components of command-line syntax that can enhance the capability of a command.
    Options and arguments

2. Enter the command to display information about the operating system and the workstation name.
    $ uname -a

3. Execute the man uname command. List the functions of the -s and -r options to the uname command. The -r option prints the operating system release level. The -s option prints the name of the operating system.
     a. Enter the uname -s command. What information appears?
         The operating system name, for example, SunOS.
     b. Enter the uname -r command. What information appears?
         The operating system release level, for example, 5.10.

4.Enter the command to display the current time and date on your system.

    $date

 

5. Display this month’s calendar. What command did you enter?
    $ cal
6. What special character separates commands on a single command line?
    The semicolon (;).

7. Enter the command to clear your terminal window.

    $ clear

 

Task 3 Solutions

To learn how to search for online documentation, list the keys or the functions of the following keys in the empty cells in Table 2-4 to control scrolling the online man pages: Table 2-4 Keys to Control Scrolling in the Man Pages
Key Function
Space bar              Displays the next screen of a man page
Return                   Displays the next line of a man page
/pattern                Searches forward for a pattern
q                           Quits the man command

 

 

Task 4 Solutions
To access online documentation, complete the following steps:
1. Using the -k option with the man command, find the man page that  describes how to clear a terminal window (use the keyword clear).
     How do you enter this command on the command line?
     $ man -k clear
2. Clear the terminal window.
     $ clear
3. What Web site enables you to browse Sun product documentation?
    The Web site http://docs.sun.com.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值