170
Before you can access the partition, you will need to mount it at the directory you just created. As
root, type the following command at a shell prompt:
mount -t vfat /dev/hda1 /mnt/vfat
Another method of mounting a Windows partition is by editing the file /etc/fstab.
At a shell prompt, su to root, following the above example.
Before you can access the partition, you will need to mount it at the directory you just created. As
root, type the following command at a shell prompt:
mkdir /mnt/vfat
Next, while you're still root, open the /etc/fstab in a text editor by typing (for example):
pico /etc/fstab
The line that probably shows where Windows is mounted is /dev/hda1 (or similar). Edit this line
so it looks like this:
/dev/hda1 /mnt/vfat vfat noauto,owner,users 0 0
Press
[Ctrl]-[x]
on the mount command, read the man page by typing man mount at a shell prompt.
To access the partition, type cd /mnt/vfat. To navigate through Windows 98's "long filename"
directories, surround the directory in quotation marks, as in ls "Program Files".
13.10 Finding Commands Quickly
13.10.1 Q: Locating Previously Used Commands
I was looking at a man page yesterday, but I can't remember the name of the command I was reading
about, and I didn't write it down. How do I get the man page back?
13.10.2 A: Searching .bash_history
Probably, the command you used is stored in a file called .bash_history. By default, this file
records the last 500 commands you typed at the shell prompt.
You can glimpse the history of your commands by typing history at the shell prompt, but the results
will speed by quickly.
Another way to view .bash_history is with a pager such as less. Type less .bash_his-
tory at the shell prompt and the results will display one page at a time. To move forward a screen,
press the
[Space]
and then press "y" for "yes" when prompted to save the changes. For more information
; to move back a screen, press the
Chapter 13:Frequently Asked Questions
key, and to quit, press
[b]
.
[q]
Need help?
Do you have a question about the LINUX 7.2 and is the answer not in the manual?
Questions and answers