7 creating files, Introduction to the tutorials and examples, Examples and formats – HP NonStop G-Series User Manual

Page 90: The shell prompt, Escaping processes (ctrl-c), Working with files, Introduction to text editors, Examples and formats the shell prompt, Chapter 7: creating files, Accessing reference pages

Advertising
background image

7 Creating Files

This chapter begins the tutorial part of this guide, where you are introduced to many of the frequently
used OSS user commands and utilities, in a tutorial format.

Introduction to the Tutorials and Examples

The examples and lessons in this chapter and the sections that follow build upon each other, so
starting with this chapter, you should work through each chapter sequentially, performing the
examples in the order in which they are given.

Examples and Formats

The sections that follow generally consist of descriptions and explanations of specific commands
and the functions they perform, and they include examples of how to use each command. Because
the examples often build upon each other from chapter to chapter, it is important that you perform
the examples in the order in which they are given.

The Shell Prompt

Throughout this manual, a $ is used to represent the shell prompt. (This is the default Korn shell
prompt). Your shell prompt will probably be different, depending on whether the system administrator
has specified a prompt in the OSS environment file /etc/profile and whether you or another
user has specified a local prompt in the .profile file. Line numbers, the pathname of the user’s
home directory followed by a : (colon), or each user’s user ID are often used in prompts.

Accessing Reference Pages

While working through the following sections, you may find that additional information on a
command would be useful. You can either refer to the Open System Services Shell and Utilities
Reference Manual
or use the man command to access the online reference pages for the OSS
commands. (The reference pages must be installed on your system to be accessible with the man
command.) See

Chapter 4 (page 53)

, for information on using the man command.

Escaping Processes (Ctrl-c)

If you wish to terminate a process that you’ve started, whether in performing an example or in
working on your own, press Ctrl-c. This action halts the most recently started process and returns
you to the shell prompt.

Working With Files

After completing this subsection, you will be able to do the following using the vi editor:

Create, read, and write files

Display and search data within a file

Add, replace, and remove data within a file

Move and copy data within a file

Introduction to Text Editors

A text editor is a program that allows you to create and change text, programs, or other data that
are contained in files. A text editor does not provide the formatting and printing features of a word
processor.

90

Creating Files

Advertising
This manual is related to the following products: