More file commands

3.20 vim (covered later)

3.21 rmdir (See: Creating, Deleting and Managing Directories)

Delete an empty directory

3.22 rm (See: Removing Files)

3.23 Sys V printing – skipped

3.24 BSD printing – skipped

Counting with wc

Linux for Programmers and Users, Section 3.25

wc

print the number of newlines, words, and bytes in files. Default input is from Standard Files and File Descriptors, if no file is listed.

SYNOPSIS

wc [-lwc] [FILE] ...
-l, --lines

number of lines

-w, --words

number of words

-c, --bytes

number of character or bytes (same value)

Complete Homework 3 - Manipulating Files and Directories now.

Table Of Contents

Previous topic

Creating, Deleting and Managing Directories

Next topic

Properties of Files and Directories

This Page