Oh, OK. I suggest you have a look at Rute's Linux book
. It's quite good to have as a reference both as a newbie and as a long-time user.
You have to mount the partition in order to access it. It's quite likely that it's mounted already - check the /etc/fstab file. If you find /dev/hda5 there you will probably have the partition mounted already. You can use the commands less /etc/fstab
or more /etc/fstab
to view a text file. To exit the viewer, just press the Q key on your keyboard.
If you find a line that looks something like this:
/dev/hda5 /home ext3 errors=remount-ro 0 1
...in /etc/fstab, the partition is most likely mounted already. Check the second part of the line - in my case /dev/hda5 is mounted at /home. So just type cd /home
to go there. To list all the files in a directory, type ls
, or ls -al
for a lengthy listing that includes owner information, sizes and also hidden files (files that begin with a period character). For a more readable listing you can use ls --color -F
if the output is not in color.
If the partition isn't mounted you need to mount it. If there is an entry for it in /etc/fstab, just type mount /dev/hda5
. If there isn't you will have to create one, or supply the options to mount on the command line.