General :: What Is The Purpose Of Using Hard Links Instead Of Being A Shortcut To Some File

Mar 23, 2011

what is the purpose of using hard links instead of being a shortcut to some file ?

View 5 Replies


ADVERTISEMENT

General :: Create Hard Links Within A File System To A Directory?

Aug 1, 2010

I am trying to create hard links within a file system to a directory, but unable to do that. is there any limitation to create hard links to directories within file system ?

View 4 Replies View Related

General :: /etc/rc.d Directory Soft Links / Purpose Of Soft Links In /etc Directory?

Feb 20, 2011

I can see some soft links in /etc directory which are pointing to /etc/rc.d Directory contents.

Code:
lrwxrwxrwx. 1 root root 7 Jan 31 08:19 rc -> rc.d/rc
lrwxrwxrwx. 1 root root 10 Jan 31 08:19 rc0.d -> rc.d/rc0.d
lrwxrwxrwx. 1 root root 10 Jan 31 08:19 rc1.d -> rc.d/rc1.d
code....

Any body please tell me what is the purpose of these soft links in /etc directory ? I am using RHEL 5.4 ...

View 3 Replies View Related

General :: Purpose Of /etc/crontab File?

Jun 7, 2010

I attempted to run various cron jobs as root - just general server make-tidy stuff. But if I edit the /etc/crontab file directly, these tasks don't get run. However, if I use crontab -e as root, these jobs appear to work. Any idea why this might be the case? Also, I understand that user cron jobs are stored in /var/spool/cron/<user> (including root). If this is the case, what's the purpose of the /etc/crontab file?

View 5 Replies View Related

General :: Rsync --link-dest Not Creating Hard Links On External Usb Drive?

Aug 24, 2009

CentOS 5.2 64bit 2.6.18-92.el5xen. Use rsync with --link-dest for nightly backups, works well. Was recently asked to start weekly backups to an external drive for off-site storage. The regular syncing works but hard linking seems to be ignored. So the backup is long with no space saving advantage. Here is an example of the command being run:

rsync --stats -axzvl --numeric-ids --delete --link-dest=/mnt/DISASTERBACKUPS/austinBackups/backups/2009-08-21 /AUSTINBACKUPS/backups/2009-08-24 /mnt/DISASTERBACKUPS/austinBackups/backups/

View 4 Replies View Related

General :: Downloading All Links In An XML File?

May 26, 2011

I am, as the forum title suggests, new to linux and to programming and having trouble figuring out how to do this.I have a very large XML file with a lot of information in it. I'm trying to get a single tag out of the file, each of these tags contains a single web link and I want to download the file at every single one of those links. I really don't know how to do this.My thought, though its probably not the most efficient or correct way, was to use VIM to search the document and somehow extract all of this one particular tag and then use wget on the links.

View 3 Replies View Related

General :: Get The Pathname Of The File And Its Links?

Dec 21, 2010

i have to write a shell script that takes name of the file as command line argument and the script should use path envt variable to look for the specified file and specify where are the different instance of the filename specified exist

firstly enter the filename echo "enter the filename" read filename by using ls command we can get to know how many links are there for that file but i don't know how to get the pathname of the file and its links after knowing the pathnames of the file i can set the path variable using export command can any one tell me how to get the pathname of the file i entered as a command line argument

View 14 Replies View Related

General :: What Is The Purpose Of Having "/etc/shadow" File

May 15, 2010

we can save the users password in /etc/password file itself.then why a special file /etc/shadow is created to save the encripted password of users.

View 2 Replies View Related

General :: Remove All The <a Href Links From Text File?

Mar 24, 2010

[Code]....

I am trying to remove <a href links using SED but unable to do it.

The finale result I am looking for is

[Code]....

Is it possible with Linux or should I try with Php?

View 2 Replies View Related

CentOS 5 :: Purpose Of Fs.file-max In /etc/sysctl.conf?

Jul 29, 2010

On a production Centos 5.3 system, I want to raise the hard & soft limits of open file handles from 1024 -> 8192 (not a "biggie", I'd think) Right now, "sysctl -a | grep file" shows fs.file-max=463144 (a default, I'd guess) I'm guessing file-max is the maximum number of open file handles on the system, vs the per-user limits seen with "ulimit -Hn" and "ulimit -Sn". Right? If so, I shouldn't think I'd have to touch this on a server with few users.

Also, after doing a lot of reading, I still don't understand the mentions of needing to also add: "session required pam_limits.so" to /etc/pam.d/loginor adding "session required /lib/security/$ISA/pam_limits.so" to /etc/pam.d/system-auth Maybe I've gotten off into the deep weeds in goggling about raising file handle limits.

View 1 Replies View Related

General :: Shortcut To Compile Kernel File?

Nov 5, 2010

I become successful to download kernel, compile it and run it.BUTWhen i modify tcp.c file or any other file in this /usr/src/linux/net/ipv4 location, (just modifying c files) i have to compile the complete kernel every time, which is very time consuming procedure.So Please help, How to compile that net/ipv4 package or etc.

View 5 Replies View Related

Ubuntu :: Hard Links Only For All Files In Directory?

Jan 15, 2010

I have a Music folder and I need to create hard links for all files in Music directory.For example:

~/Music/01 - the song.ogg // hard link for this file
~/Music/Folder/02 - a song.ogg //and for this file TOO!

~/Other Music/01 - the song.ogg
~/Other Music/Other foldr/02 - a song.ogg

I want hard link files in folder and in subfolders, but not folders its self.

View 6 Replies View Related

Server :: Maximum Number Of Hard Links?

Dec 8, 2010

I have a 32-bit Linux server with an ext3 file system. Is there any kind of upper-limit to the number of hard links I am allowed to use? (Per inode...? Per directory...? Per filesystem...?) And (just out of curiosity) would this be any different if I had a 64-bit machine or a different file system?

View 1 Replies View Related

Software :: Rsync: Backups And Hard Links?

Jul 13, 2011

I am using rsync for incremental backups. I am backing up to a second hard drive on my computer. When I check the individual backup directories (backup.0 through backup.4) with du -hs they each show 12G; when I check the parent directory squeeze it shows 15G. Over 4 backups I have added 3G. I haven't made very much for changes to directories I'm backing up and am using hard links. I have included some info below.

Quote:

Backup script:

#!/bin/bash
mount /mnt/backup
cd /mnt/backup/squeeze/
rm -rf backup.7

[code]....

View 2 Replies View Related

Ubuntu :: Hard Links In Tar.gz When Both Link And Target Are In The Archive?

Jun 28, 2010

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?

View 2 Replies View Related

Software :: List All The Soft And Hard Links An Installed Distribution Has?

Jul 7, 2011

wanted to knowIs there a command the root user can type in the command line to list & know all soft and hard links there are in a distro that is installed ?

View 1 Replies View Related

CentOS 5 Networking :: Allow The User Only See The Size Of The File, And Not The File + Symbolic Links?

Feb 23, 2009

I'm researching about symbolic links been used with samba / CIFS:I'd like that the user that uses a MS-Windows OS could see my shared folder on CentOS 5 and the symbolic links that are inside this folder. Well, it works but, the user will see that the size of the file is bigger than the real file. Apparently, CIFS gets the size of the symbolic link (aproxim.32K) and add it to the size of the file.Example 1: 100KB file, used with shared folder, MS-Windows's user will see 100KBExample 2: 100KB file, used with symbolic link inside a shared folder, MS-Windows's user will see 132KB. (Sym link + size of file)Is there a way to allow the user only see the size of the file, and not the file + symbolic links ?

View 1 Replies View Related

General :: What Is Purpose Of Makefile In Nis Server

Aug 17, 2010

can anybody tell the use of make file in Nis server.

View 1 Replies View Related

General :: What Is Purpose Of Bash Scripting?

May 15, 2010

What is the purpose of bash scripting? Is it just for file manipulation?

View 4 Replies View Related

General :: What's The Purpose Of A Boot Partition?

Jan 17, 2010

I've always been confused about this issue of boot partitions. In the past when I install linux I usually have 2-3 partitions.

1. Main OS partition mounted on /
2. Storage partition mounted on /home
3. Swap partition

Why and when would I need to have a boot partition? Even if I dual boot two OSs, I just make one more partition for that other OS. So what's the purpose of a boot partition?

View 5 Replies View Related

General :: Purpose Of Shebang In Scripts?

Oct 15, 2009

Can you explain me what is purpose of shebang in scripts? I have noticed that my scripts will run without shebang. i.e. When i save my crontab file it says that scripts will be executed in i.e. /bin/sh shell. So, what is the point if I put #!/bin/ksh at the start of script?

View 8 Replies View Related

Ubuntu :: What's The General Purpose Compressing Format

Jan 14, 2010

I have a folder that may contain text documents, pictures, MP3s, video clips, all sorts of stuff. Supposing that, within reason, I'm not too bothered how long it takes to compress and uncompress them. And suppose I don't care if it's free or open source (well, has to be free as in beer). What's the best compression format/algorithm (whatever it is that I install in Synaptic and choose from the drop down menu in the compression tool) I should use?

View 9 Replies View Related

Ubuntu :: Best General Purpose Language To Learn?

Jun 19, 2010

The last time I wrote code for anything was about 15 years ago using Turbo Pascal. I would like to get back into it, most likely to create some mobile apps or enhance web sites. What is the best general purpose language to learn? And what is a good method for learning, preferably free?

View 1 Replies View Related

Ubuntu :: Creating A General Purpose Switch?

Apr 19, 2011

I want to create a general switch that I can use to send a signal to my ubuntu server when it is activated/deactivated. Here's an example: I want to know when a certain door is open, so I can have a switch closed when the door is closed and opened when the door is opened. When opened or closed, the computer will receive a signal and I can have some software intercept this signal and process it to my liking (i.e. ring a bell/text message me/email me/etc).

I know I will have to create a simple driver, software to make use of this signal, etc... I am willing to do whatever it takes to make it happen. I'm just wondering if anyone can point me in the right direction as far as which interface I should use to communicate with my server (i.e. usb, serial), which references I should read, and any personal experience you have with something like this...

View 3 Replies View Related

General :: Purpose Of Libc In An Operating System?

Jun 24, 2010

What is the purpose of libc in an operating system?

Is the libc is common for all OS or it is different for different OS!?

I mean source of libc build for RH is same for Ubuntu !?

View 2 Replies View Related

General :: Logrotate - Purpose Of Rotate And Postrotate?

Jul 10, 2010

I have been trying out in learning with logrotate command and logrotate configuration file )logrotate.conf custom logfile for an process is 'test.log'

Code:

#cat /etc/logrotate.d/test
/var/log/test.log {
rotate 4

[code]....

whenever the log file (test.log) exceeds 100M a new file will be created with the file name as test.'date'.'gz'(new file is created with a current date and in a compressed format of gz) and also with permission mentioned above). I really dont know what is the role of rotate( will this be carried on only for next 4times i mean upto 400MB; (4times*file reaches 100MB)? and also what could be the purpose of postrotate?

View 5 Replies View Related

General :: What's Difference And Purpose For Console And Terminal

Sep 21, 2010

I'm confuse about different beetwen console and terminal in linux system? And what purpose them for?

View 5 Replies View Related

Ubuntu :: Links Browser Script - Automatically Fills In The Credentials On The Links Login Page?

Dec 6, 2010

At my Uni, we use a web-based login for our internet connections. Its based off of Cisco, and every Wednesday night every computer on campus must re-enter their credentials to use the network.

Normally on my several computers I simply pull up the Terminal, point links to google.com using

Code:

And enter my credentials when Cisco redirects to the login page.

Literally, the process is

Code:

Then ENTER to accept the redirect, down arrow to skip over the logo image, USERNAME, ENTER, PASSWORD, ENTER, ENTER.

Naturally, this is EXTREMELY time consuming, as I have about 5 computers located around campus and must physically walk to the machines and login every single week.

My question is, How would I formulate a program that does the following;

1) checks for connectivity (i.e. is able to reach/resolve to the greater part of the internet) and

2) automatically fills in the credentials on the links login page?

View 2 Replies View Related

Programming :: Scripting : Change Markdown Links To Wikitext Links?

Feb 3, 2009

I have a personal wiki of notes, with now thousands of links in markdown format:

[link text](http://example.com)

but now that fckeditor is available for mediawiki (very beta), it has become much better to just stick with wikitext format. There are only a few conversions to do: tables, links, and bulleted lists. The lists are a fairly simple regex and fckeditor magically reformats the tables, so all I'm left with is the links. But I'm not a regex master. How do I reformat code...

View 12 Replies View Related

General :: What Are Advantage Of Getting Into Single User Mode Or Its Purpose?

May 10, 2009

What good does getting into single user mode do?And what's the basic purpose of it , i.e is it maintaining purpose???

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved