
8
|
Chapter 1: Introduction
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Comparisons
File Management
Command Action
cmp Compare two files, byte by byte.
comm Compare items in two sorted files.
diff Compare two files, line by line.
diff3 Compare three files.
sdiff Compare and interactively merge two files.
Command Action
cat Concatenate files or display them.
chfn Change user information for finger, email, etc.
chgrp Change group of files.
chmod Change access modes on files.
chown Change ownership of files.
chsh Change login shell.
cksum Compute checksum.
cp Copy files.
csplit Split a file into pieces with a specific size or at specific locations.
dd Copy files in raw disk form.
file Determine a file’s type.
head Show the first few lines of a file.
hexdump Display files in hexadecimal format.
less Display files by screenful.
ln Create filename aliases.
ls List files or directories.
merge Merge changes from different files.
mkdir Create a directory.
more Display files by screenful.
mv Move or rename files or directories.
newgrp Change current group.
od Display files in octal format.
pwd Print working directory.
rm Remove files.
rmdir Remove directories.
shred Securely delete files.
split Split files evenly.
tac Print lines of a file in reverse order.
tail Show the last few lines of a file.
tailf Follow the growth of a logfile.
touch Update file timestamps ...