Re: Red Hat 9 Problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 21 April 2003 09:05, Adam Yeats wrote:
> Hi,
> How do I find out whether the mount point is a directory or not? I'd
> assume it's in fstab but everything seems OK in there..

Many ways.  You can use the "file" command:

[jkeating@xxxxx jkeating]$ file /mnt
/mnt: directory

Or you can do an ls -al of it, and see if it has the "d" attribute:

[jkeating@xxxxx jkeating]$ ls -al /mnt
total 44
drwxr-xr-x   11 root     root         4096 Apr 10 09:52 .
drwxr-xr-x   25 root     root         4096 Apr 21 08:48 ..
drwxr-xr-x    2 root     root         4096 Feb 21 14:44 cdrom

You'll notice that . (the /mnt directory), along with the parent directory, 
and the cdrom file are all directories.

-- 
Jesse Keating RHCE MCSE
http://geek.j2solutions.net
Mondo DevTeam (http://www.microwerks.net/~hugo/)

Was I helpful?  Let others know:
 http://svcs.affero.net/rm.php?r=jkeating





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux