Software :: Difference Between Hardlink Vs Copy
Apr 8, 2010Assuming that f1 is not a directory file, ln f1 f2 cp f1 f2 What's the difference between both?
View 8 RepliesAssuming that f1 is not a directory file, ln f1 f2 cp f1 f2 What's the difference between both?
View 8 RepliesI have three nodes with
node1 192.168.1.1
node2 192.168.1.2
node3 192.168.1.3
and the node1 is the head. Problem is when I a new user comes in, I have to create that user on the same machines separately. It is possible to hardlink /etc/passwd and /etc/groups among them. So only one user will be created on the head node.
2.6.38-8-generic
Mint 11 64 bit
I'm trying to move a file from a directory to another one and create a symlink but seem to be doing something wrong. Have done "man ln" and looked up info in coreutils but I don't seem to be able to get it right. There are two files in ./home/jim/.config/banshee-1/ that I want to move to ./home/jim/Dropbox/banshee. I have created backups of both and created the new folder in Dropbox. see attached screen shots. I then run
Code: jim@saturn ~ $ sudo ln - ./home/jim/Dropbox/banshee/banshee.db ./home/jim/.config/banshee-1/banshee.db
ln: creating symbolic link `./home/jim/.config/banshee-1/banshee.db': No such file or directory and get the above error message. Now I know symlinks do not need to be complete at the time of creation, but I'm not sure if I have done this right or not and if I try and read and write banshee.db at the original location if it will do it properly and efficiently. Is this a case where I should do a hardlink instead and have both files. If I want to do this every time at start up, how do I automate the commands once I have them right?
How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).
More details: I have to import a repository from GIT to Perforce. I want that all Perforce depot files are Read-Only (that is how Perforce was designed), while all other files that were derived/copied from depot files are writable. Currently if a Makefile tries to copy a Read-Only file then the derived file will also be Read-only. This leads to build-errors when cp tries to overwrite Read-Only file second time. Of course the --force is a workaround here but then the derived file is also Read-Only. Also I do not want to mess with "chmod" after each "cp" command - I will do that only as the last resort.
I have a 160GB harddrive which I installed a F12, would like to upgrade to a bigger drive, but I hate to have to re-install everything.
Recommend a good disk copy utility? The utility should be able to not only copy files, but boot sector and everything. So I just need to make a copy, change my BIOS to boot from the new drive and run everything as before.
just installed ubuntu couple of days back on my netbook. I am still a beginner, enjoying my adventure exploring ubuntu. I have another desktop which runs on XP. I am able to access XP shared folders through my netbook(linux). However, i wanted to copy files from XP infact folders using TERMINAL in my netbook, not copy and paste using my mouse. Are there any commands for it?
View 1 Replies View RelatedI am using windows xp and debian linux.In windows xp I am having around 25 gb offree memory but in linux if i copy anything it says enough space memory to copy
View 4 Replies View Relatedhow do you copy an entire line and add that copy at the end of the same line?
For example, sometimes I rename a collection of files with a command like:
"mv oldfilename newfilename;"
I am able to add "mv" at the beginning, the semicolon at the end and sometimes replace a word in the middle, but... how to change a line "oldfilename" into "oldfilename oldfilename"... that is already long time a mystery to me...
What is the difference between su - and su? Both ask me for password. Bothe report "root" when asked whoami
View 6 Replies View Relateddf -k
/dev/sda6 25396228 21249088 2836240 89% /export
21G used[code].....
The 3.4G is correct because we have removed all non essential file but free space reported by df is not consistent with the actual free space that should be there.
I'm planning to download ubuntu, but I don't know if I should download the 64-bit one or the 32-bit one? My computer can handle 64-bit, has 4 gb, 320 gb harddrive. What;s the difference between 64-bit and 32-bit?
View 2 Replies View RelatedI've typed 'l' instead of 'ls' in the terminal by mistake a couple of times, and it seems to do pretty much - but not exactly - the same as 'ls' ('l' appends *, @ etc at the end of filenames which seem to indicate permissions and/or links).
I can't find any documentation on 'l'. 'l --help' gives exactly the same output as 'ls --help'. 'which l' gives nothing. There are no files in my filesystem called only 'l' either - just a couple of unrelated folders.
So what's the difference between l and ls?
I have two interfaces, Gnome and KDE. So sometimes I am asked to chose between the 2 display manager gdm (Gnome) or kdm (KDE). I've never noticed any difference. When I have problems with one I have problems with the other, and usually they both seem to function equally well. If you have ever been in a situation where one was better than the other could you please tell me about it? My question is related to troubleshooting a dual-monitor setting but this is another thread, here I'm just asking because I wish to learn a bit more about displays in general.
View 1 Replies View RelatedI know Ubuntu is based on solid foundation of deb. How about rpm?
Currently ubuntu supports installation using deb. Who supports rpm? red hat?
the difference between GLX and EGL?
View 1 Replies View RelatedThere is a major size difference between the dvd and the cd and It seems that you can install debian from both so What's the difference ?
View 9 Replies View Relatedwhat is the difference between C and gcc...
View 12 Replies View RelatedLast week in one of the Interview Dump Papers I read about NIS+. Anyone who can quick reference how the setting up NIS is different from NIS+.
View 1 Replies View Relatedwhat is the difference between a GUI and KDE..
View 5 Replies View RelatedI need to know the exact difference between SCP and SSH can somebody explain please as i am confused as both seem to do the same thing if so let me know what the difference is.
View 4 Replies View RelatedWhat is the difference between /dev/tty and /dev/pts ??
I google a lot but didn't understand......
Thanks in advance
What is the difference between |less and |more ?
View 7 Replies View RelatedI tried to download ISO file and saw ,Download ISO 1 and Download ISO 2 .What is the difference between two ISO's?
View 4 Replies View RelatedWhat is diffrent between tar and cp? Which one is faster? Their application purpose etc
View 1 Replies View RelatedProblem is the office in way out in the country. I have no interest in driving out there every day for such and such but just thinking of the best solution to a soho that is easy to backup and maybe easy to have the local users fix.
View 14 Replies View RelatedI've noticed in different config files (inet1.conf, for example) that some lines are commented out with '#' and others are commented out with '##'
Is there any reason for this?
While playing a bit (fdisk) with a new machine (Intel 2 Duo E6750) that I have (with 2 SATA disks), I found a "strange" thing. If I boot the server from a Knoppix distro, fdisk sees 2 scsi HDD devices (sda and sdb). Ok, this was the expected. But if I boot the machine with the centOS 5.2 x86_64, while doing the partitioning the disks are recognized as hda and hdb, that is, IDE disks.
View 3 Replies View RelatedWe are using Centos 5.3 32-bit Linux. However, we want to upgrade the Linux 32-bit to 64-bit. I wanted to know what is the new features or packages in Centos 5.4 64-bit over 5.3 64-bit?
View 2 Replies View RelatedI am interested in this as I am new to Debian and want to make an informed decision. Since installing Debian in virtualbox I have learned quite a bit. I know aptosid is based to debian sid. Is there a difference between the two?
View 14 Replies View RelatedWhat is the main difference between these two ? NIS and LDAP ?
View 1 Replies View Related