
90
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
chvt
chvt N
Switch to virtual terminal N (that is, switch to /dev/ttyN). If you
have not created /dev/ttyN, it will be created when you use this
command. There are keyboard shortcuts for this functionality as
well. From a graphical desktop, you can press Ctrl-Alt-F1 through
F12 to switch to different virtual terminals. In text mode, you can
skip the Ctrl key and just use Alt-F1 through F12. To switch back
to graphical mode, use Alt-F7.
cksum
cksum [files]
Compute a cyclic redundancy check (CRC) checksum for all files;
this is used to ensure that a file was not corrupted during transfer.
Read from standard input if the character - is given or no files are
given. Display the resulting checksum, the number of bytes in the
file, and (unless reading from standard input) the filename.
clear
clear
Clear the terminal display. Equivalent to pressing Ctrl-L.
cmp
cmp [options] file1 file2 [skip1 [skip2]]
Compare file1 with file2. Use standard input if file1 is - or missing.
This command is normally used for comparing binary files,
although files can be of any type. (See also diff.) skip1 and skip2 are
optional offsets in the files at which the comparison is to start.
Options
-c, --print-chars
Print differing bytes as characters.
-i num, --ignore-initial=num
Ignore the first num