Server :: Identifying Links To A File?

Dec 23, 2010

How do we check as to how many links have been created that point to a particular file?

Let's say there is this file /work/contacts.dat

and we have, let's say, 10 soft links that have been created by different users in their home directories. Now how can I figure by looking at the file /work/contacts.dat that there are 10 (soft or hard)links pointing to this particular file so that I know that it is being used or refered to by those many users and before deleting it I can check with them.

View 3 Replies


ADVERTISEMENT

Server :: Identifying What Is Using Up Space In Logical Volume?

Jun 14, 2010

I just read and learned about logical volume management today. I have a server running RHEL5.4, LVM2. I have 1 physical volume, with one volume group, and 3 logical volumes. I have no free extents, nor do I have any in my volume group (not sure if it's possible to have free in one and not the other anyway), and I am running out of space on one of my logical volumes. Doing a df -h shows 96% of 9.7GB used on /dev/mapper/MainVG-root, mounted at /. So here's the stupid question: how can I find out what directories/files are taking up what space within this logical volume? As I said I have 3 all together, and the other 2 are mapped to /var and a /var pgsql sub-directory. I figured I could get the sizes of the other directories under / and drill down accordingly, but I seem to be missing some basic rule because the commands I am using and the values I am getting don't add up.

For example, it seemed logical to me to do an ls -lsh on / to try and identify the largest directories. Each directory is listed as being ~4-8K in size. That doesn't make sense to me. So I decided to do a du -sh on each directory. Having done this on all of the / sub-directories and added up those values, there is not enough reported usage here to equal 8.9GB of used space (as df -h / reports).how they would find out how the 9.7GB here is being allocated? Preferably without scripts as I am not ready to add a layer of complexity to this yet without understanding some fundamentals.

View 2 Replies View Related

Server :: Identifying The Number Of Cores In Each Processor Running

Dec 20, 2010

identifying the number of cores each processor is running.

I have checked /proc/cpuinfo but i dont find any core details inside it and I can find only no of processor and its speed.

View 7 Replies View Related

General :: Shell Script For Identifying The File And Zip All Files, Move The Files To Target Dir?

May 7, 2011

1. Every Sunday2. Find all files older than 1 day3. Gzip these file4. Tar up the gzipped files into one tar file.5. Name the tarball with a date stamp indicating what day it was created, so we know that week's files are in the file

View 3 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

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

Networking :: Set File Links On Website Via Ftp Or Php?

Apr 8, 2011

My hosting server is running Linux / Apache. It would be very nice to be able to link some files (preferably hard links, but symbolic links also would help), but haven't a clue how to do so. I would be willing to write a server side php script if that would do the trick.

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

Ubuntu :: Insert Pictures In ODF File, Not Internet Links To Them

May 30, 2011

When I copy and paste something from a web site, links to pictures are inserted, not actual pictures.

When I disconnect from the Internet, I cannot see pictures which is annoying.

Do you know how to make LibreOffice copy and paste actual pictures into a Writer document?

View 2 Replies View Related

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 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

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

Server :: Any Way To Follow Links With Samba?

Jun 29, 2010

Can you tell me if there is any way to follow links in samba code...

User can access files in both directories if he connects to the system (with ssh, login, ...).
So if he does "cd /dir/subdir1/link ; ls" he will see both files.

Now, dir1 is shared with samba (but not dir2). What I want is that users connect from Windows with \machinedir1dir2 and see both files.

Is that possible?

I've tried with follos links and wide links, but it hasn't work as I wanted.

View 4 Replies View Related

Server :: Mod_rewrite With Non-www To Www For All Deep Links?

Aug 16, 2011

I am still struggling to get non-www to www. At the moment I have following code to redirect from non-www to www. RewriteCond %{HTTP_HOST} !^www.hoteldealscatcher.com$ [NC]
RewriteRule ^(.*)$ http://www.hoteldealscatcher.com/$1 [R=301,L]It works totally fine for home page but not for other deep links, such as /city/Sydney.php, they are still going to non-www pages. What 's the best approach I could use to solve it

View 6 Replies View Related

Server :: Good Links To Know More About OS Clustering In System?

Dec 1, 2010

Share good links to know more about OS clustering in Linux.

View 7 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

Server :: Ubuntu 9.10 Setup - Open AVI Links In Apache

Mar 12, 2010

I have my Ubuntu 9.10 server setup with apache2 and it will load web pages. The cgi-bin perl programs do run in the web server. What I would like to know is how to have it access video files and download then from a link. The video files are at /media/usb-drive/Movies/movies

I think my Alias is setup.
ScriptAlias /movies/ /media/usb-drive/movies/
<Directory "/media/usb-drive/movies/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

When I make a web page with a link to a file
<a href="/media/usb-drive/movies/Movies/test.avi">Video</a>
I get the error
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
Apache/2.2.12 (Ubuntu) Server at usha.homelinux.com Port 80

If I make a link to a file I do not have it get this error
<a href="/media/usb-drive/movies/Movies/nofil.avi">Video</a>
Not Found
The requested URL /movies/Movies/W1.avi was not found on this server. I do not know what the misconfiguration is.

View 3 Replies View Related

Ubuntu :: Identifying CD Contents Without Booting With It?

Nov 6, 2010

So I have a bunch of CDs I have burnt over the past year or two, and only problem is, I would burn them, use it and forget about it. I never bothered labelling it. Now, I want to label them appropriately. Is there any way I can find out the following just looking at the CD contents-

1. Distribution - lucid / karmic / etc
2. Architecture - amd64 or i386
3. Type - server, desktop, alternate etc

I know if I boot into the machine from the CD drive, I can find out, but I prefer not having to do that

View 1 Replies View Related

Networking :: Identifying Multiple Ssh - Tunnels?

Sep 7, 2010

got the problem with multiple ssh-tunnels. The case is:I have 1 server running Slackware 13.0 with external ip and few windows-machines. inetd daemon is running on the server, my script is listening on port 2345. I create multiple ssh-tunnels from client machines to the 2345 port of the server in order to initiate script execution. For debugging reasons the script simply echoes the incoming information to the connection initiator. This is how the connection is initiated.

Code:
ssh <user>@<my_server_IP> -L 5555:<my_server_IP>:2345
echo "hello"|nc -vn 127.0.0.1 5555 (a port on a client-machine, that is forwarded to <my_server_IP>:2345)
gives "hello" output.
Code:
client1 port 5555|----ssh-tunnel---- eth0|-------server---------------|

[Code]...

The problem is that i need my script to execute some commands (registry parsing) on a remote client machine with winexe utility. So I need to identify each tunnel or each connection in order to execute the command on each of the client workstations. I need at least to have access to some ID of the ssh session or a tunnel, through which a certain connection was initiated and then use it to create a reverse tunnel or just connect to certain client via that client`s tunnel.

View 3 Replies View Related

Networking :: Identifying Where The Network Connection Is Being Cut-off From?

Feb 4, 2010

Starting from January, my Internet connection has become "unstable". I mean that I get occasional interruptions of the connection. This is particularly annoying while listening to a webradio or using voip. Of course, prior to January 2010, I could stay hours or days without interruptions. Now, I have to reconnect manually every 5 min to the service although the reconnection to the ISP is done immediately. So, before I take my axe and visit the office of my ISP, I would like identify where is that connection drop happening. Is it at my pc? at the ADSL modem/router? or the ISP? I use a wireless connection with WPA to my router. Then, the router is basically an ADSL modem. I am running Kubuntu locally. How can I follow up on the network status between different elements and see who is cutting off my connection?

View 1 Replies View Related

Software :: Red Hat 9 - Replicating And Identifying The Root Cause

May 31, 2010

I just encountered a very weird issue and I am having hard time replicating and identifying the root cause. We have one RH9 server and we received an alert that the /var reached 85%, I checked and found out that /var/log/audit.d is occupying most of the space. It has a lot of files inside it consisting file size of 21MB each everyday. I ask the customer if can housekeep and it eventually climbed up to 100%. My colleague did some house keeping but what he did was he compressed the audit.d directory and remove it.

After that users are complaining they cannot telnet to the server even though the service is on. I have recreated the audit.d directory and restarted the xinetd as usual. Still the same problem. And the weird thing is that I cannot even switch to any user from the root. I tried to do "su - someuser" but it hangs there without doing anything. I also tried to telnet, it will ask for login and password but same thing it hangs in there. Did some restart on xinetd and did "chkconfig telnet off" "chkconfig telnet on" but with no success. Could this be caused by the deletion of audit.d? Or is the 100% utilization of /var the system could not cope up? The good thing is everything worked fine after restart. But still the root cause is unknown. If I check /var/log/secure it shows the user being authenticated though it is not getting any session. /var/log/messages also does not reveal anything.

View 3 Replies View Related

Ubuntu Servers :: Connecting To Server Through Internet Links To Router

Feb 20, 2011

I have an Actiontec GT724WGR and I am having problems with my Ubuntu server. I set up a subdomain on freedns.afraid.org with my main computer's external ip. However whenever I use the link that was made it goes to my router configuration page instead of onto my server. I have already set up a static ip for my server enabled DMZ hosting and under port forwarding applied every single rule that applied to servers.

View 2 Replies View Related

Ubuntu :: 1.10 - Unity Missing Drivers Without Identifying

Dec 29, 2010

Tried to test the 10.10 Netbook's Unity but after keying the password I got a "Unity missing driver" without any identification of the driver. Is it available in the repositories? How can I identify it to install it? Why isn't it included?

View 5 Replies View Related

Ubuntu :: Identifying UPNP Connections To Sever?

Jul 13, 2011

I have a setup with a mythtv backend that streams media via the built in upnp to two xbox 360s. This works perfect at the moment. However I need a command/script that can identify if either of the two xbox's are connected via upnp. I need this so that I can have the system auto shutdown if no one is connected using the existing mythtv sleep wake features. (Basically if a script returns 1 then dont shutdown if returns 0 then shutdown.)

Code:
if upnp is connected then
dont shutdown
else
shutdown
fi
Thanks
Chris

View 5 Replies View Related

General :: Identifying The Desktop Environment And Distro?

Jul 18, 2010

I'm looking for the best way to identify what distro the user is running and what the desktop environment is running. I'm building some pipeline tools for a visual effects studio and need some generic commands for passing paths to the user's file manager from within Maya and Nuke. The workstations I have access to are FC12 with xfce4 so for that I'd pass a system command :

Code: ("thunar "+$path)I've been identifying Fedora workstations with:

Code: # cat /etc/issue

Is there a command to identify what the current window manager is? Preferably something generic that'll work on the other distros as well.

View 4 Replies View Related

General :: Identifying Machine Hardware Compatibility?

May 6, 2011

a. How can I determine the hardware type of the machine where the linux is running ?

b. Also, what exactly is the difference between machine hardware name and hardware platform ? (uname -m and uname -i)

c. Output from my machine shows,

- uname -i as i386 and
- uname -m as i686

View 3 Replies View Related

Ubuntu Networking :: Can't View External IP Links To Http Server On Same Machine

Sep 1, 2011

I have an apache server running on my ubuntu machine. I can view them using my local ip (192.168.1.6):80/. And my friends can view the things hosted on my server using my external ip (example http://123.123.123.123:80) but when a friend links back to me to show me what they are looking at and share the moment, I can't view the link, it simply redirects to my router login page.

I had an older linksys router and this could work fine. I could click on the links with my external IP and it routes back to my server for viewing.

Remember to note that I am on the machine that has the server, and I'd like to be redirected out and back to it so we can share pictures back and fourth without me having to replace the external IP address with my local one just to view that link in the browser.

View 3 Replies View Related

General :: Bash - Links -command Not Found - Error In Apache Server

Nov 6, 2010

I am using rhel5 with ip 192.168.0.254.i am using rhel on vmware 7. when i run links 192.168.0.254 then i got error "bash : links : command not found" i want to know why this error is showing? when i use red hat without vmware then there is no problem.

View 2 Replies View Related







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