Datasheet

Change to the directory with cd test2. A compressed archive with the
.tar.gz extension can be unzipped with the gunzip command. Enter gunzip
testarchive.tar.gz, which results in the file testarchive.tar, which
then needs to be extracted or untarred with tar -xvf testarchive.tar. You
can also unzip and extract a compressed archive in one step by adding the -z op-
tion. The complete command would be tar -xzvf testarchive.tar.gz.
With ls, you can see that a new test directory has been created with the same
contents as your test directory in your home directory.
21.1.9 mtools
mtools are a set of commands for working with MS-DOS file systems. The com-
mands included in mtools allow you to address the first floppy drive as a:, just
like under MS-DOS, and the commands are like MS-DOS commands except they
are prefixed with an m:
mdir a: displays the contents of the floppy disk in drive a:
mcopy Testfile a: copies the file Testfile to the floppy disk
mdel a:Testfile deletes Testfile in a:
mformat a: formats the floppy disk in MS-DOS format (using the fdformat
command)
mcd a: makes a: your current directory
mmd a:test creates the subdirectory test on the floppy disk
mrd a:test deletes the subdirectory test from the floppy disk
21.1.10 Cleaning Up
After this crash course, you should be familiar with the basics of the Linux shell
or command line. You may want to clean up your home directory by deleting the
various test files and directories using the rm and rmdir commands. At the end
of this chapter, find a list of the most important commands and a brief descrip-
tion of their functions.
264 21.1. Introduction to Bash