UNIX for OpenVMS Users, Third Edition

Chapter 4: Introductory File Management

Overview

Doublethink means the power of holding two contradictory beliefs in one's mind simultaneously, and accepting both of them.

George Orwell

UNIX possesses numerous commands and utilities for the creation, modification, and display of files and directories. Table 4.1, a summary of filemanagement commands, was created from the headers of the man page entries for all sections of the BSD documentation (see Section 3.6). Table 4.1 divides the commands into those that display files and those that manipulate them. Since display commands do not change the contents of files, the novice user may use them in complete safety. Manipulation commands do change the contents of files, and novice users should use them with care.

Table 4.1: Summary of File-Management Commands

UNIX

OpenVMS Equivalent

Purpose

Display Commands: Directories

ls (see ls(1))

DIRECTORY

Lists contents of directory

stat (see stat(1))

DIRECTORY/FULL file

List details about a file

Display Commands: Files

cat (see cat(1))

TYPE

Catenates and prints to a terminal

col (see col(1))

Filters line feeds

fmt (see fmt(1))

RUNOFF

Formats lines to specified width

fold (see fold(1))

SET TERMINAL /WIDTH= n /WRAP

Folds long lines for finite-width output device

head (see head(1))

EDIT /READ

Displays first few lines

lpr (see lpr(1))

PRINT

Prints to the line printer

more, page (see more(1))

TYPE /PAGE

File perusal filter for CRT viewing

od (see od(1))

DUMP

Octal, decimal, hex, ASCII dump

pr (see pr(1))

PRINT /HEAD

Prints file to stdout

ANALYZE /OBJECT

Standard object filedump utility

tail (see tail(1))

TYPE /TAIL[=n]

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Backup and Recovery Software
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.