Sponsored Content
Operating Systems Solaris Will softlinks occupy space in Solaris10 Post 302926951 by jim mcnamara on Friday 28th of November 2014 07:30:25 PM
Old 11-28-2014
There is some confusion here. When you give the copy command a source name that is a symbolic link - the "big" file - the one the link refers to gets copied.

Code:
cp linkname newname

Does not create a second link, it goes to the source instead and copies that. So you get lots of data.

Why else would a command like vi linkname allow you to actually change a file? Links are not like some kinds of filesystem objects example: snapshots that simply contain delta data.

Short answer : use the ln command to "copy" a link.

Also note that symlinks never tell you that the original files does not exist - until you try to stat or open that file. You can symlink across filesystems, but it is fraught with problems if you are not careful. Your USB symlink copy could rapidly become pointless.
 

10 More Discussions You Might Find Interesting

1. Solaris

help,win2003 and solaris10 in a pc?

sorry,my english is poor. who can install win2003 and solaris10 in one pc ? my win2000server in hda1 so frist install win2003 in hda5 second install solaris10 in hda2 but after install over,the win2003 can't logon in. alway let me press<ctrl>+<alt>+<del>. why? (1 Reply)
Discussion started by: keyi
1 Replies

2. Solaris

Re: Crontab in solaris10

Hi all, I wrote a small shell (bash) script and it was executing well. I'm getting problem when I use this in crontab. My script is: #!/usr/bin/bash mkdir `date '+%m-%d-%y'` cd `date '+%m-%d-%y'` cvs co -r br_name module cd dir1/dir2/dir3 bash build.sh this is doing well... (7 Replies)
Discussion started by: gullapalli
7 Replies

3. AIX

IHS 6.1 on AIX - problem with symlinks / symbolic links / softlinks

Hello, I got an IHS 6.1 installed and want to publish a directory with an index of files, directories and symlinks / symbolic links / soft links, last ones being created with the usual Unix command "ln -s .... ....". In httpd.conf I've tried following for that directory: Options Indexes... (1 Reply)
Discussion started by: zaxxon
1 Replies

4. Solaris

Sun Solaris10

hi to all, I am newuser can anyone tell me from where i get the sun solaris 10 dumps. plz mail me at (no email addresses - read the RULES of these forums) (2 Replies)
Discussion started by: quickgun
2 Replies

5. Solaris

Solaris10

Hi All How can we verify if any of the parameters we have change in Solaris10 after reboot. Like is there any command? Please advice Thanks (3 Replies)
Discussion started by: imran721
3 Replies

6. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

7. Shell Programming and Scripting

What amount of store occupy only files in a directory?

Hello I'm trying to do an exercise programming in bash where I have to get only the store of files in a directory but NOT all capacity of the directory. I probe with: du -sh "$directory"*` but I get all the capacity and I probe with ls command but I couldnt. Are there any way to get only files... (2 Replies)
Discussion started by: adiegorpc
2 Replies

8. Shell Programming and Scripting

HardLinks and Softlinks

How do i make a hardlink readable,writable, and executable by me? I am kinda hoping for a command i can use Also, i was wondering what file type are hardlinks and softlinks?Are they directories? (10 Replies)
Discussion started by: lilbo4231
10 Replies

9. UNIX for Dummies Questions & Answers

Create softlinks between 2 different hosts

Hi I want to create softlinks, my source files and folders are placed in one server(hostname: info-1) and i want to access those files from different host(hostname :info-2). file and folder names in info-1 host. file1 folder1 Thanks, Mallik. (1 Reply)
Discussion started by: tmalik79
1 Replies

10. Solaris

Solaris10 and pxeLinux

I want to run solaris10 with my pxelinux server i put on pxelinux.cfg/default this LABEL solaris 10 kernel mboot.c32 append -solaris solaris/boot/platform/i86pc/kernel/unix -v -m verbose install dhcp nowin nfs://192.168.0.2/jumpstart/config.tar -B install_media=192.168.0.2:/solaris... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies
All times are GMT -4. The time now is 03:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy