Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Listing all links in a file system Post 302107760 by ruger14 on Tuesday 20th of February 2007 01:46:53 PM
Old 02-20-2007
Listing all links in a file system

How would one find and list all links in a file system? My situation is
that I built several servers for disaster recovery, mirror images of
several servers in our main location. Instead of doing a "ls -l" on every
file system down the /usr structor to verify that I have all the necessary
links created, can I use the "find" command (with what options) or some
other command line tool? I'd like to be able to list all links down the /usr
file system on both machines, pipe the information out to a couple of
files and then do a "diff" between the files to see if I missed any.

Ruger14
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

links working system wide

I have created symbolic links to several frequently used commands, for example: "lt" is a link to "ls -ltrgo|tail". What can I do to make these links available system-wide, or at least in the directories my coworkers are in most of the time? I have copied the link to several directories, and... (6 Replies)
Discussion started by: jpprial
6 Replies

2. UNIX for Dummies Questions & Answers

Recursive directory listing without listing files

Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories. The following command also shows the files but I only want to see the directories. ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies

3. AIX

listing the whole system by filesize

Hi, Just wondered what command you would use to list all the files on Aix by filesize? I've tried a few but none of which seem to do the trick! Currently running du -m -a . | sort -rn | more as root Thanks, Matt. (1 Reply)
Discussion started by: elmesy
1 Replies

4. Shell Programming and Scripting

recurssion via symbolic links without allowing system to act recursively?

I tried looking up combinations of the keywords "infinite loop links" in google before causing a recurring post here... but alas, I couldn't find much. Cause: I've created an infinite loop, in a way, of directories. Problem: I'm not sure if this will crash a backup program (trying to... (1 Reply)
Discussion started by: jzacsh
1 Replies

5. Solaris

Hard Links and Soft or Sym links

When loooking at files in a directory using ls, how can I tell if I have a hard link or soft link? (11 Replies)
Discussion started by: Harleyrci
11 Replies

6. AIX

List all the soft links and hard links

Hi I'm logged in as root in an aix box Which command will list all the soft links and hard links present in the server ? (2 Replies)
Discussion started by: newtoaixos
2 Replies

7. Homework & Coursework Questions

Listing Live System Status

1. Edit a script named update.sh that generates status.html in your web directory: ~/public_html/. I need to write specific commands to show each specific item 2. The generated webpage should include information related to: UNIX : kernel version of ed-lab server USER : number of users on the... (13 Replies)
Discussion started by: devinj
13 Replies

8. UNIX for Dummies Questions & Answers

[Solved] How to remove listing of current user cmd from ps -ef listing?

Hi All, Could you please help to resolve my following issues: Problem Description: Suppose my user name is "MI90". i.e. $USER = MI90 when i run below command, i get all the processes running on the system containing name MQ. ps -ef | grep MQ But sometimes it lists... (8 Replies)
Discussion started by: KDMishra
8 Replies
APT-SPY(8)						      System Manager's Manual							APT-SPY(8)

NAME
apt-spy - program to generate a /etc/apt/sources.list.d/apt-spy.list file SYNOPSIS
apt-spy -d distribution [ -a area ] [ -c config ] [ -e number ] [ -f file ] [ -i file ] [ -m mirror-list ] [ -o output-file ] [ -p proxy ] [ -s country-list ] [ -t time ] [ -u update-URL ] [ -w file ] [ -n number ] [ -h ] [ -v ] [ update ] DESCRIPTION
This manual page briefly documents the apt-spy command. apt-spy is a program that tests all of the Debian archive mirrors the user specifies for bandwith and writes, by default, to /etc/apt/sources.list.d/apt-spy.list the fastest server. The user can select which of the many Debian sites to benchmark by geographical location. apt-spy does not need to be run by root if the user provides a configuration file, a place where to store the mirror list and an output file. See examples for more details. OPTIONS
-d distribution Debian distribution to use. Sensible values would be `stable', `testing' or `unstable'. Distribution names can also be used. This value is directly used in the generated sources.list, and is required unless updating. -a area This will cause only servers in the specified area to be benchmarked. By default, valid values for area are `Africa', `Asia', `Europe', `North-America', `Oceania' and `South-America'. It is very easy to define your own areas or subset of servers to bench- mark. For further details see apt-spy.conf(5). -c config configuration file to use instead of /etc/apt-spy.conf. -e number `early finish'. Stop benchmarking after number of servers have been completed. Act as if all servers were benchmarked upon comple- tion. -f file file to grab from the Debian servers. By default apt-spy will test the servers by getting part of the `ls-lR' file in the base of the Debian tree on the mirror. This tells apt-spy to get file instead. It is assumed that this file is also relative to the Debian base directory. -i file use file as input for apt-spy. You should generate this input file using the -w option. -m mirror-list where to load the mirrors list from or where to save it to. The default location is /var/lib/apt-spy/mirrors.txt. Using this option allows you to specify a different location. When updating, this defines where the updated mirrors list will be saved. -o output-file location for the new sources.list. By default the new file is created as /etc/apt/sources.list. -p proxy use proxy as a proxy server. This should be specified as `hostname:port'. -s country-list A comma-separated list of countries to benchmark. At the moment, this cannot be used with the "area" option. -t time how long (approximately) in seconds to download for. By default time is 15 seconds. How long the benchmark actually downloads for varies due to the way libcurl works. With the default 15 seconds, the benchmark generally takes beween 10 and 25 seconds. Each server has potentially two protocols (ftp and http) so roughly one minute per server would be a reasonable estimate of how long it should take. Be aware that this does vary considerably, and that benchmarking any more than a very few servers takes considerable time (possibly several hours for `-a All'). -u update-URL specify custom URL to get an updated mirrors list from. This can be http, ftp, file, or any other URL type supported by libcurl. -w file write a number of top servers to file in a format suitable for use with the -i option. The number of servers to output can be speci- fied with the -n option, and defaults to 5. -n number the number of top servers to write with the -w option. update connect to http.us.debian.org and download the mirror list to /var/lib/apt-spy/mirrors.txt. The -u or -m options may be used to respectively specify a different URL for the mirrors list or a different location for the downloaded file. -v output a version number. -h print a short usage message. EXAMPLES
Non root usage: apt-spy -d stable -a Europe -m ./mirror.txt -o apt-spy.list -c apt-spy.conf Above command tests European mirrors for stable Debian release saving http://http.us.debian.org/debian/README.mirrors.txt into mirror.txt, writing source file into apt-spy.list using configuration from apt-spy.conf. Note that not root users need to specified all these parame- ters. Updating mirror list file: apt-spy update Creating the /etc/apt/sources.list.d/apt-spy.list file: apt-spy -d stable SEE ALSO
sources.list(5), apt-spy.conf(5), apt(8). AUTHOR
apt-spy and this manual page was written by Steven Holmes <steg@bsdeviant.org> and updated by Stefano Canepa <sc@linux.it>. The original version of apt-spy was written by Danny Rodriguez <messiah@optonline.net>. This version is a total rewrite. 17th December, 2011 APT-SPY(8)
All times are GMT -4. The time now is 06:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy