Server :: Create Soft Link And Hard Link In RHEL5?
Sep 8, 2010how can we create soft link and hard link in RHEL5 when am using in command it is giving format error
View 6 Replieshow can we create soft link and hard link in RHEL5 when am using in command it is giving format error
View 6 Repliesi have server with rhel3 ES. in folder "/lib64/tls" there is one file named libc.so.6 which is softlink of libc-2.3.2.so. i just copied libc-2.3.4.so from rhel4 AS server to rhel3 server in the same location and override the softlink libc.so.6 as a softlink of libc-2.3.4.so. now no any command is working in this server i.e.(cp,vi,rm mv ls etc.). it is also not opening any terminal and nothing command is working.
View 1 Replies View RelatedIn the ordering of files I keep I need links to directories. Sometimes I even need to move directories to new locations. I have tried using symlinks, but they become dead when I move the directory they point to. I have tried hard links, but I haven't found any Linux file system that would support hard linked directories. How can I achieve that a complex structure of directories (currently with symlinks for directories and hard links for files) keep symlinks live when directories are moved?
- is there any utility that updates symlinks when a directory is moved?
- is there any Linux filesystem that supports hard linked directories?
- is there any good Linux interface to the new NTFS (the only file system I know to support automatically updating directory links, called directory junctions)?
I have searched around and am trying to understand the difference between a hard link and symbolic link (soft link). I found this link is quite useful. But I am still not very clear. I understand soft link is not a copy of original file, but is a hard link a copy or not?
View 4 Replies View Relatedcurrently i am wanted to clean up my proj area but the problem with rm i am facing is some copy remain in disk with linked i am meaning soft link
A linked to B
B linked to C
C which is on other directory
A & B are on same folder
know when i run
rm -rf A
it removes only A & B but the C remain on the disk how i can remove C from the disk.. using the the same command..
i only need localhost for testing some phpnow i get[Wed Apr 28 18:44:57 2010] [error] [client ::1] Symbolic link not allowed or link target not accessible: /srv/www/htdocs
View 9 Replies View RelatedI was looking for live link to download ubuntu mobile but unfortunately I don't find anything... Can someone send me a link for download and a link with the installation instructions ?? All the links that I found are dead.
View 9 Replies View RelatedWhenever we insert CD,it creates a shortcut link in desktop.Can we list this link name by using any command? I am using Oracle Enterprise Linux 5.0.
View 10 Replies View RelatedI have a problem where I'm using Ubuntu linux to mount a Windows Vista machine's USB drive and access it on the web using Apache. I did have the USB drive plugged into the Linux machine directly and that was working via the web. FollowSymLinks is on in httpd.conf
[Code]....
The mount works and I can see the files (see above) from my regular linux user account. If I make a test file in /mnt and soft link to that, I can see it on the web. So it's just the mount to the vista machine that seems to be a problem. It's supposed to be a simple read-only mount and the apache login should (I think) be able to see the same generic root access permissions.
log from apache: [Mon Apr 26 20:39:42 2010] [error] [client 99.99.99.99] Symbolic link not allowed or link target not accessible: /home/user1/pub_html/Music, referer: https://xx.xx.xx/~user1/music.html
The credentials have a login and password that matches a special read-only account on Vista. I can see the files on the system from Linux, but not via the web. As mentioned above, a different link to the same /mnt area works fine via the web. I've tried several different mount options with no success.
There is a symlink from /var/www to a personal directory. FollowSymlink and chmod 755 are all set. It works perfectly until each morning I will get a "Symbolic link not allowed or link target not accessible" error. When I do a "sudo service apache2 restart", the problem will go away.
View 1 Replies View RelatedI installed 10.10 using wubi (Host system is Win XP). I want to create a symbolic link of a file on the host system (Windows c:abc.doc file) in my Ubuntu home ~/ directory.
When I type command ln /host/abc.doc abc.doc It gives me following error ln: creating hard link `abc.doc' => `/host/abc.doc': Invalid cross-device link
There are basically two main limitations with hard links:
Hard links normally require that the link and the file reside in the same file system. Only the superuser can create a hard link to a directory.
Thus, symbolic links were introduced to get around the limitations of hard links. So, the question is, are hard links still needed? Might there be situation where they are more useful?
I installed debian 8.1, network install on a ThinkPad T60. When I right click the Desktop, I don't get "Create New -> link to application" and other links. In mint 17.1, I get a Menu with all links. I want to create a link to seamonkey with an icon on desktop.
View 3 Replies View RelatedThere are two directories A and B and a file F which is located in B. The working directory is B.How can you create a symbolic link in A pointing to F in B without changing the directory?
View 2 Replies View RelatedI want to create a link to start apache2 service:
Code:
sudo /etc/init.d/apache2 start
I tried creating a launcher but it did not work at all
I need to create this link between the two directories shown below.... So I assume everything that is put into the outgoing directory is copied to
# pwd
/home/e-smith/files/users/admin/home
ls -l
lrwxrwxrwx 1 root root 29 Jun 25 2008 outgoing -> /var/spool/asterisk/outgoing/
I created a link for a library my application needs in /usr/lib/ and then run ldconfig.
The link gets deleted. Should I be creating the link in any other way?
i am a oracle DBAI want to crete a link for a directory in production serverto remote host.
View 6 Replies View RelatedThere are two directories A and B and a file F which is located in B. The working directory is B.How can you create a symbolic link in A pointing to F in B without changing the directory?
View 8 Replies View RelatedWe have two directories:
$ ls -l
total 8
drwxr-x--- 2 nimmy nimmy 4096 Nov 15 19:42 jeter
drwxr-x--- 2 nimmy nimmy 4096 Nov 15 19:42 mariano
I create one file in the first folder:
$ dd if=/dev/zero of=jeter/zero_file.1 bs=512000 count=1
1+0 records in
1+0 records out
512000 bytes (512 kB) copied, 0.268523 s, 1.9 MB/s
This is the output of du:
$ du -sh *
504K jeter
4.0K mariano
As expected, if I place a hard link of the zero_file. in the other folder du output does not change:
$ ln jeter/zero_file.1 mariano/zero_file.2
$ du -sh *
504K jeter
4.0K mariano
there is nothing in the filesystem that points to zero_file.1 as the original file. So how does du know to count zero_file.1 but not zero_file.2?It cannot be a timestamp comparison because all hard links share one inode; they'll have the same timestamp data correct?
I have heard that creating hard link to a directory is not possible however when reading the man page of "ln" the "-d/-f" option says hard link directories ( super-user only). Thus this mean the super user i.e root can create hard link to directory and not a normal user , If yes then you . Even on specifying the above options I get a operation not permitted for a super user.
View 9 Replies View RelatedI just bought a new hard drive for my lenovo ThinkPad R60e. It is the following model:
Code:
# hdparm -I
ATA device, with non-removable media
Model Number: WDC WD5000BUDT-63G8FY0
Firmware Revision: 01.01A01
[Code].....
After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay.
It is regardless which kernel version I use (latest ARCH Linux 2.6.39 or 2.6.23 from a grml live system), the error is persistent everywhere.
I am running both Ubuntu and XP and have a local server for my computer on both systems. Both partitions have a www directory that is accessed when I type localhost into my browser.
I want to be able to work on the project in both systems and have the changes I make show in both. So my questions is how can I make "localhost" point to the windows www instead of the /var/www one when I start up the server?
I have read that it is best to have a volume LVM set up to contain the BackupPC data that it generates when backing a machine(s) up. By default BackupPC stores the back up data in /var/lib/BackupPC and there is information on how to create a link to the new location and what to mount on the new dedicated LVM What I do not know is how to create a new LVM for the BackupPC files/data on the machine I have. Currently I have a machine running fedora 15 64 bit. It has BackupPC installed via yum but I have not run it as yet. I believe that I have the necessary dependencies installed The machine has two hard drives, one a 80 GB and the other a 500 GB. Currently Gparted is showing;
/dev/sdb1 ext4 /Boot 500MiB
/dev/sdb2 Lvm2 74.04 GiB (in properties it says it is not mounted)
/dev/sdb1 Lvm2 465.76 GiB (in properties it says it is not mounted)
When the machine was loaded with Fedora it was set up as 1 partition and was just a standard out of the box Fedora install accepting the defaults. how do i go about setting up a LVM that I can expand later if necessary to hold the BackupPC data? I saw in one post some where that person call the group Main. how to" or provide a set by set guide as to how to achieve this. Or provide advise o the best way to set the machine up. I do not intend to run anything else on the machine. It is there to back up a server (Fedora 14), A general use machine machine (Fedora 15) and a windows machine (XP).
Create the following directories: parent/child
Navigate to child and create a file named child (this is an executable file in my case, not sure if that makes a difference). I need to create two "link to executable" links in the parent.
I had assumed that this would work:
ln -sf ./child ../child1
ln -sf ./child ../child2
But that creates a "link to folder" (./child) in the parent directory. If I change it to:
ln -sf -t.. ./child child1
ln -sf -t.. ./child child2
I get an error, "ln: '../child': cannot overwrite directory".
If I do it from the parent directory (which I cannot do, this is part of a Makefile recipe):
ln -sf ./child/child ./child1
ln -sf ./child/child ./child2
It works. Note that I cannot alter the names of any directories or files. How do I create the links when the current directory is the child?
I have a large collection of files on a computer (tallgrass) and tallgrass is running an ftp server, which I have the username and password to. There is about 600 GB of files on tallgrass that I need access to, but I don't have a big enough hard drive. I need these data files to run a cpu-intensive calculation, and my CPU is significantly better than tallgrass' cpu, which is why I want to do it on my computer. (Tallgrass also doesn't have enough RAM.) What I would like to do is create a "symbolic link" on my hard drive that will point to the directory containing the data on tallgrass. Read-only is perfectly OK. This way I could read from mylink/data0001.dat and it would read from the file data0001.dat over ftp from tallgrass. I shouldn't have any speed issues because tallgrass is on my 1 Gbps LAN. Is there a way I can do this?
View 2 Replies View RelatedI wrote a program to create a link list
Code:
#include <stdio.h>
#include <stdlib.h>
struct node {
[Code].....
I am copying my home folder from my old computer (Ubuntu 9.10) to my new one (Ubuntu 10.04)
I thought that I would make a tar archive of my home directory (~60GB), then copy it across the network and untar it in my new home folder.
The problem is that I have several hard links (30 at most). When I try and untar the tar in my new computer it runs into errors with the hard links.
I think the problem is that it has unzipped the hard link before it's target and detected an error.
One solution is to add --hard-dereference to the tar command , this will create a separate copy of each hard link. but I would really like an exact copy of my home folder on my new computer.
Does anyone have any ideas? Either copying my home directory, or how to make tar handle hard links sensibly?
I have installed Windows 2003 Server, on that i have installed VMware and in VMware i have installed Ubuntu.Now my requirement is i want to run a Windows Application shortcut from Ubuntu, for that i have installed wine on Ubuntu.Now i have copied and pasted the Shortcut of that Windows Application on Ubuntu's Desktop. When i check the Windows Application shortcut properties its path will be something like this \192.168.1.15ApplicationApplication.exe, but i am unable to run that Application shortcut in Ubuntu.
If i try samething on the other windows system on network it works fine. Actually its a thin client server architecture where i want my thin client to use ubuntu and access the windows application shortcut and run the windows application shortcut on ubuntu. To be more clear my windows 2003 server runs a windows application which has MSSQL as database. Now on my ubuntu system the login page is able to popup but when i give username and password it gives something like server not found,how do i need to approach this issue.
Is it possible to create a symbolic link that include commands for the program?
For instance, I do the following to start the program:
./script -somecommannd
I would like to create a symbolic like that includes "-somecommand"
Is this possible? or would I need to create a second script that executes that command, and link to that script?