Main index

Introducing UNIX and Linux


Files

Overview
The UNIX directory hierarchy
Filesystems
Manipulating files
      Creating directories
      Creating files
      links
      'Dot' files
Protecting files
      Groups
      File access control
      Changing privileges
File contents
      Text files
      Comparing files
      Filtering files
      Non-text files
Printing files
File archives and file compression
Other relevant commands
Summary
Exercises

Summary

The following commands were introduced in this chapter

basename display non-directory part of filename
cd change working directory
chgrp change file group ownership
chmod change file access privileges
chown change file ownership
cmp compare two files
compress compress files
cp copy files
cpio copy files to and from archives
cut select columns or fields from each line of a file
df display free disk space
diff show differences between two files
dirname display directory part of a pathname
du display file space usage
file describe file contents
fold fold lines
head show the first few lines of a file
id display information about a user's identity
ln link files
lp send files to a printer
lpr send files to a printer
mkdir create new directories
mv move files
newgrp change your current group-id
od dump files in various formats
paste merge corresponding lines of text files
patch apply changes to files
pax file archiver and format translator
pr a very basic formatter for text files
pwd display working directory
rmdir remove empty directories
sort sort or merge text files
strings display printable strings in a file
tail show the last few lines of a file
tar create tape archives, and add or extract files
touch change last modification time of a file
umask change access privileges when files are created
uncompress uncompress files
uniq filter out repeated lines
wc word, line and byte count

Copyright © 2002 Mike Joy, Stephen Jarvis and Michael Luck