Sponsored Content
Full Discussion: A query on soft-link
Top Forums UNIX for Advanced & Expert Users A query on soft-link Post 302956902 by zaxxon on Monday 5th of October 2015 08:02:18 AM
Old 10-05-2015
If you have a file/directory that will be needed at many different places and don't want to copy it <n> times everywhere in your filesystems, you simply use a soft link to reference to the original file.

Depending which type of filesystem you use and if it is not for thousands or hundred of thousands of files/directories, I would rather not speak of a waste of i-nodes.
We save disk space with them and enhance the administrative complexity a lot.

I am thankful we have this feature when needed.

Last edited by zaxxon; 10-05-2015 at 09:08 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Differences between hard link and soft link

Hi all! I'd like to know the differences between hard links and soft links. I've already read the ln manpage, but i'm not quite sure of what i understood. Does a hard link sort of copy the file to a new name, give it the same inode number and same rights? What exactly should I do to do this:... (3 Replies)
Discussion started by: penguin-friend
3 Replies

2. UNIX for Dummies Questions & Answers

Difference between hard link and soft link in unix

Hi All, Can any one please explain me what is the difference between hard link and soft link in UNIX. Thanks in advance Raja Chokalingam. (2 Replies)
Discussion started by: RAJACHOKALINGAM
2 Replies

3. UNIX for Dummies Questions & Answers

Hard Link vs SOft Link????

Hi PLease let me know the usage of Hard Link vs Soft Link i.e what is the basic difference and what happens when one file is changed or deleted in both the cases??? thanks (3 Replies)
Discussion started by: skyineyes
3 Replies

4. UNIX for Dummies Questions & Answers

Difference between hard link and soft link

Hi Experts, Please help me out to find out difference between a hard link and a soft link. I am new in unix plz help me with some example commands ( for creating such links). Regards S.Kamakshi :) (2 Replies)
Discussion started by: kamakshi s
2 Replies

5. UNIX for Dummies Questions & Answers

Can the timestamp of a soft link be changed?

I was wondering if it was at all possible to change the timestamp of a soft link. I want to change it to a time in the past before it was created. Sceanrio: In a directory i have a number of softlinks whih point to files, a script processes these files oldest first bassed on the time the... (8 Replies)
Discussion started by: cdoyle
8 Replies

6. Red Hat

Soft Link Ownership After Reboot

Hi, I have created soft links for some devices /dev/xvd*1. The owner of the soft links is oracle:dba. The problem is after reboot the ownership is changed to root:root. How can I permanently change the ownership to oracle:dba? Thanks. (2 Replies)
Discussion started by: Gbyte
2 Replies

7. Shell Programming and Scripting

soft link issue

Hi , When installing oracle software a set of directories are created under the home directories. Since the home directory is usually not big , i would like to create a soft link from the home directory to mount point with alot of free space , that way the logs will not be wriiten under the... (1 Reply)
Discussion started by: yoavbe
1 Replies

8. Shell Programming and Scripting

how to remove soft link

hi i have create a soft link using below command. ln -s <filename> <dirmane>where file name i use is t1 and dir name was t2. i deleted the dir t2 using command rm -rf to remove the soft link . however again i create a file a using the name t2 and when i just try to link t1 to t2 ... (1 Reply)
Discussion started by: scriptor
1 Replies

9. Solaris

Soft link issue

I did restore from netbackup for root file system on separate slice instead of corrupted one. After restoration I found there are number of soft link issues lie e.g libabcxyx > /mnt/usr/lib it should be libabcxyz > /usr/lib does any have solution to change symbolic link changed in... (1 Reply)
Discussion started by: nimish_mehta
1 Replies

10. Shell Programming and Scripting

Soft link

can u help me out how change the hooked file below. VEUEMASTER.txt -> /sbvnj/kfls//VSUE_OBR_MAER.txt.201503230800 (4 Replies)
Discussion started by: ramkumar15
4 Replies
quotacheck(8)						      System Manager's Manual						     quotacheck(8)

NAME
quotacheck - scan a filesystem for disk usage, create, check and repair quota files SYNOPSIS
quotacheck [ -gubcfinvdMmR ] [ -F quota-format ] -a | filesystem DESCRIPTION
quotacheck examines each filesystem, builds a table of current disk usage, and compares this table against that recorded in the disk quota file for the filesystem (this step is ommitted if option -c is specified). If any inconsistencies are detected, both the quota file and the current system copy of the incorrect quotas are updated (the latter only occurs if an active filesystem is checked which is not advised). By default, only user quotas are checked. quotacheck expects each filesystem to be checked to have quota files named [a]quota.user and [a]quota.group located at the root of the associated filesystem. If a file is not present, quotacheck will create it. If the quota file is corrupted, quotacheck tries to save as much data as possible. Rescuing data may need user intervention. With no addi- tional options quotacheck will simply exit in such a situation. When in interactive mode (option -i) , the user is asked for advice. Advice can also be provided from command line (see option -n) , which is useful when quotacheck is run automatically (ie. from script) and failure is unacceptable. quotacheck should be run each time the system boots and mounts non-valid filesystems. This is most likely to happen after a system crash. It is strongly recommended to run quotacheck with quotas turned off for the filesystem. Otherwise, possible damage or loss to data in the quota files can result. It is also unwise to run quotacheck on a live filesystem as actual usage may change during the scan. To prevent this, quotacheck tries to remount the filesystem read-only before starting the scan. After the scan is done it remounts the filesystem read-write. You can disable this with option -m. You can also make quotacheck ignore the failure to remount the filesystem read-only with option -M. OPTIONS
-b, --backup Forces quotacheck to make backups of the quota file before writing the new data. -v, --verbose quotacheck reports its operation as it progresses. Normally it operates silently. If the option is specified twice, also the cur- rent directory is printed (note that printing can slow down the scan measurably). -d, --debug Enable debugging mode. It will result in a lot of information which can be used in debugging the program. The output is very ver- bose and the scan will be slow. -u, --user Only user quotas listed in /etc/mtab or on the filesystems specified are to be checked. This is the default action. -g, --group Only group quotas listed in /etc/mtab or on the filesystems specified are to be checked. -c, --create-files Don't read existing quota files. Just perform a new scan and save it to disk. quotacheck also skips scanning of old quota files when they are not found. -f, --force Forces checking and writing of new quota files on filesystems with quotas enabled. This is not recommended as the created quota files may be out of sync. -M, --try-remount This flag forces checking of filesystem in read-write mode if a remount fails. Do this only when you are sure no process will write to a filesystem while scanning. -m, --no-remount Don't try to remount filesystem read-only. See comment with option -M. -i, --interactive Interactive mode. By default quotacheck exits when it finds an error. In interactive mode user is asked for input instead. See option -n. -n, --use-first-dquot If the quota files become corrupted, it is possible for duplicate entries for a single user or group ID to exist. Normally in this case, quotacheck exits or asks user for input. When this option is set, the first entry found is always used (this option works in interactive mode too). -F, --format=format-name Check and fix quota files of specified format (ie. don't perform format auto-detection). This is recommended as detection might not work well on corrupted quota files. Possible format names are: vfsold (version 1 quota), vfsv0 (version 2 quota), rpc (quota over NFS), xfs (quota on XFS filesystem) -a, --all Check all mounted non-NFS filesystems in /etc/mtab -R, --exclude-root When used together with the -a option, all filesystems except for the root filesystem are checked for quotas. NOTE
quotacheck should only be run by super-user. Non-privileged users are presumably not allowed to read all the directories on the given filesystem. SEE ALSO
quota(1), quotactl(2), fstab(5), quotaon(8), repquota(8), convertquota(8), setquota(8), edquota(8), fsck(8), efsck(8), e2fsck(8), xfsck(8) FILES
aquota.user or aquota.group located at filesystem root with quotas (version 2 quota, non-XFS filesystems) quota.user or quota.group located at filesystem root with quotas (version 1 quota, non-XFS filesystems) /etc/mtab names and locations of mounted filesystems AUTHOR
Jan Kara <jack@suse.cz> Based on old quotacheck by: Edvard Tuinder <ed@elm.net> Marco van Wieringen <mvw@planets.elm.net> Fri Jul 20 2001 quotacheck(8)
All times are GMT -4. The time now is 10:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy