If [ -h filesystem] question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers If [ -h filesystem] question
# 1  
Old 03-08-2015
If [ -h filesystem] question

Hi,

I have linux script for post install, there is a line shown below what I do not understand

Code:
 
if [ -h /opt/isv/testfile ]
then     rm -f /opt/isv/testfile     umask 000

Can any one explain me what
Code:
if [ -h /opt/isv/testfile ]

does.
# 2  
Old 03-08-2015
From man test:
Quote:
-h file True if file exists and is a symbolic link. This operator is retained for compatibility with previous ver-
sions of this program. Do not rely on its existence; use -L instead.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Question about shared filesystem btw AIX and RHEL

We found out that the Spectrum Scale (GPFS) doesnt support mix nodes (AIX and RHEL) on direct attached storage. Is there any other options besides NFS for mix O/S? Trying to avoid network type of shared filesystem which might end up high traffic on IO because we do run backup jobs on those... (0 Replies)
Discussion started by: kiasu
0 Replies

2. AIX

Mount Filesystem in AIX Unable to read /etc/filesystem

Dear all, We are facing prolem when we are going to mount AIX filesystem, the system returned the following error 0506-307The AFopen call failed : A file or directory in the path name does not exist. But when we ls filesystems in the /etc/ directory it show -rw-r--r-- 0 root ... (2 Replies)
Discussion started by: m_raheelahmed
2 Replies

3. Homework & Coursework Questions

unix filesystem question

1. The problem statement, all variables and given/known data: The file system unix use a multilevel indexes access to disk, 12 direct blocks, 1 single indirect block, 1 double indirect block, 1 triple indirect block: Assuming a: block = 512 bytes, pointer = 4 byte, and there is a file of 200... (4 Replies)
Discussion started by: blob84
4 Replies

4. Solaris

Solaris Filesystem vs. Windows FileSystem

Hi guys! Could you tell me what's the difference of filesystem of Solaris to filesystem of Windows? I need to compare both. I have read some over the net but it's so much technical. Could you explain it in a more simpler term? I am new to Solaris. Hope you help me guys. Thanks! (4 Replies)
Discussion started by: arah
4 Replies

5. UNIX for Dummies Questions & Answers

hwo to find shared filesystem and local filesystem in AIX

Hi, I wanted to find out that in my database server which filesystems are shared storage and which filesystems are local. Like when I use df -k, it shows "filesystem" and "mounted on" but I want to know which one is shared and which one is local. Please tell me the commands which I can run... (2 Replies)
Discussion started by: kamranjalal
2 Replies

6. Solaris

Filesystem - error when extend the filesystem

Hi all, currently , my root filesystem already reach 90 ++% I already add more cylinder in the root partition as below Part Tag Flag Cylinders Size Blocks 0 root wm 67 - 5086 38.46GB (5020/0/0) 80646300 1 swap wu 1 - ... (11 Replies)
Discussion started by: SmartAntz
11 Replies

7. Solaris

UFS filesystem mounted on 2 hosts question

I have two Unix (Solaris) hosts that are both attached to our SAN. They are both presented with the same luns. What I want to do is have the same UFS filesystem mounted on both hosts at the same time. What I am trying to accomplish is creating a zone that will reside on both hosts but only... (2 Replies)
Discussion started by: beaker457
2 Replies

8. UNIX for Dummies Questions & Answers

Quick Question on Filesystem

I have an AIX filesystem at 100% and I need to increase it by 30gb. Please give me the command to do this. Thanks in advance. I tried this command and got this error: chfs -a size=+500M /dev/test1223 0516-404 allocp: This system cannot fulfill the allocation request. There are not... (3 Replies)
Discussion started by: NycUnxer
3 Replies

9. UNIX for Dummies Questions & Answers

io by filesystem??

I'm wanting to drill down one level deeper that iostat. For example, for the following iostat output, I'd like to now understand the io for hdisk2 by filesystem: Disks: % tm_act Kbps tps Kb_read Kb_wrtn hdisk3 4.7 1792.0 80.7 0 5376 hdisk1... (2 Replies)
Discussion started by: priceb
2 Replies

10. Filesystems, Disks and Memory

question on filesystem

I heard that if normal users were allowed to create device files by mknod, security problem would be happened. what problem do you think will happen? and It is a really bad idea to use fsck(1M) on a disk partition that is mounted. For example it would be a mistake to run #... (1 Reply)
Discussion started by: junghun_95
1 Replies
Login or Register to Ask a Question