Final Year Project:
Using Linux Filesystems Under Windows
Chris Bryden
BEng. Electronics and Software Engineering
School of Computer Science
University of Birmingham
68
To view the contents of a directory other than the current directory, a path
can be supplied to ls. For example,
ls /usr/bin/ Gives a directory listing of the /usr/bin directory.
18.6 Changing Directory - The cd Command
The cd command is used to change the current directory. The current
directory is displayed in the command prompt. The cd command accepts one
argument, the directory to change to. For example,
cd usr changes the current directory to the usr
directory.
18.7
18.8 Copying a File - The cp Command
The cp command is used to copy a file form a location on the ext2
filesystem to a location on the DOS filesystem. It accepts two arguments, the
path of the source file and the path of the destination file. So, for example,
cp /usr/src/linux/Makefile F:\Users\Chris\code\Makefile copies the file Makefile;
from the ext2 filesystem to the DOS directory shown.
Note that both paths must be specified in full, with the drive letter and the
destination filename specified for the destination path.
If the destination file already exists, a prompt appears asking whether to
overwrite the file:
Simply press y to overwrite the file, or n to abort the operation.
If a file is copied successfully, a message is displayed indicating this and giving
the average transfer rate. If an error occurs an error message is displayed.