differnce between these cmds


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting differnce between these cmds
# 1  
Old 03-25-2008
differnce between these cmds

Hi all,

I would like to know the difference between these commands

/usr/lib/fs/hsfs/mount -F /dev/lofi/1 /usr
and
mount -F hsfs /dev/lofi/1 /usr

In the first case absolute path is specified and in the next the cmd with options ,whats the differnce.

PS:am sorry ,coz this had been posted on another forum by mistake, also i didnt get response so am at it again..
pls dont reject this!!

thanks
# 2  
Old 03-25-2008
There are three things I see:

1. In the second command, if the shell finds another "mount" in your $PATH before it finds it in /usr/lib/fs/hsfs/ then it will use that one, which I'm guessing it is unless you've explicitly added it to your $PATH.

2. From the mount man page:
Quote:
-F
(Used in conjunction with -a.) Fork off a new incarnation of mount for each device. This will do the mounts on different devices or different NFS servers in parallel. This has the advantage that it is faster; also NFS timeouts go in parallel. A disadvantage is that the mounts are done in undefined order. Thus, you cannot use this option if you want to mount both /usr and /usr/spool.
3. By specifying hsfs, you're telling the shell which file system to mount the device as. Since hsfs is a specialized file system, I doubt your system defaults to this.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Difference between lsconf & prtconf cmds on AIX

Friends, Could someone answer me on a silly question of mine: What's the difference between lsconf & prtconf commands of AIX? I find the o/p's of either of these commands to be same. Excuse me if I'm missing something, also I google-ed about it before turning down here for answer. ... (3 Replies)
Discussion started by: thisissouvik
3 Replies

2. Shell Programming and Scripting

Comparing rows in two tables and sending the differnce to mail

Hi, I have a table ,containg 2 coloumns and many rows,which is updated everyday.The no.of rows in the table changes everyday. i have to write the difference between yesterdays tabtle and todays table to a new file.The row that is new in the todays table need not to be shown.only the change... (2 Replies)
Discussion started by: bab123
2 Replies

3. UNIX for Dummies Questions & Answers

Running cmds from a file

I specified in my file that all cmds are bash: ------------ #!/bin/bash ls -l ------------ thats the file how would i run that one command? (2 Replies)
Discussion started by: oxoxo
2 Replies

4. Shell Programming and Scripting

Errors while executing cmds in sun solaris

Hi All, I am using mysql at sun solaris unix(Hp) server. I logged into mysql server with root as user. its logged in properly. Then i used 'show databases' mysql command. its display all the available databases. for example mysql > show databases; It displayed as follows. exampledb1 ... (1 Reply)
Discussion started by: dbsurf
1 Replies

5. UNIX for Advanced & Expert Users

Using sudo for specific cmds

I've been asked to provide access to my system for another group of individuals to perform WebSphere and Portal tasks (stop/start specifically). I run both as root (we can debate this one later) and so know I have to figure out a way for these individuals to start and stop WebSphere and Portal as... (3 Replies)
Discussion started by: scottsl
3 Replies

6. UNIX for Dummies Questions & Answers

calculate the time differnce between two given timings

I want to calculate the time differnce between two given timings but i don't know how . Can you help me please ? (1 Reply)
Discussion started by: Olti
1 Replies

7. Solaris

Hardware differnce

Hi all, I dont know if its the right place to ask it, but can someone please explaine me the differnce between sun 220R server to a sun netra 1125? any recommendation on which one is better? Dori (2 Replies)
Discussion started by: dorilevy
2 Replies

8. UNIX for Dummies Questions & Answers

differnce between working of at and crontab commands

h I would like to know the differnce (both working and how) between at command and crontab.. Thanks in advance Satish D (2 Replies)
Discussion started by: doddas
2 Replies

9. Solaris

What's the difference: 'nuhup cmds' Vs 'cmds &'

Hello, Case: If I want to run a script background and logout, which command should I use ? 1)# ./script_name & 2)# nohup script_name 3)# nohup script_name & And any differences ? What happens if I redirect the output to a file? I learned somewhere that the (1) format will stop... (5 Replies)
Discussion started by: billshu
5 Replies

10. UNIX for Dummies Questions & Answers

?script/cmds 2 list open files????

I would like to have the commands or a scripts that will show me files that are not open by any process and meet a certain pattern (ie arch.log1_117512.dbf). Basically I a wanting to delete all arched redo logs that oracle has popped out execpt for the current one it is writting to. I am... (3 Replies)
Discussion started by: bn80865
3 Replies
Login or Register to Ask a Question