Monday, 14 November 2011

How to mount USB drive using Linux Command Line

Use the following command to list drive in Linux. Please ensure you have root access
# fdisk -l 

Refer to the info and look for "sdb1" (This is normally the name for your usb)

#mkdir /mnt/sdb1

Edit /etc/fstab
Add the following line in fstab
/dev/sdb1       /mnt/sdb1           vfat    defaults        0       0 

Type the following command in Linux terminal
#mount -a

Monday, 7 November 2011

Changing File Permission in Clear Case

To change the file permission on elements in ClearCase:

$ cleartool protect -chmod 775 filename.txt

To change a recursive directory in ClearCase

$ cleartool protect -chmod 775 -r /vob/myproject

To change element owner:

$ cleartool protect -chown newuser filename.txt

Search for the "protect" command for cleartool for more info