General :: Listing All Linked Files

Jan 21, 2010

I can't seem to find a way to do this, so maybe it's not actually possible, but I was wondering if there was a way to list all files that link to a file.

For example.

touch a
ln a b
ln a c

I want to find out what files link to a (not symlinks, mind you), assuming that this is more complicated (they are spread around to different directories).

I kind of understand about the filesystem storing links in one area and data in another, so I understand it probably takes more work to find a link from a file location than the other way around.

View 1 Replies


ADVERTISEMENT

General :: How To Have A Mix Of Linked And Not Linked Files Without Linking Every File

Feb 20, 2010

I've got a shared (Windows/multiuser Linux) laptop, and I've got installed World of Warcraft and some steam games in Windows. With steam games, there is (almost) no problems. I've installed steam in Linux, and soft linked the 'steamapps' directory (per-game compatibility is another issue). With WoW, the problem is different. I would like to have almost (but not) all files. Under World of Warcraft, every file and directory must be linked except the Interface directory and WTF/config.wtf file (so every user can play with their own settings and addons). How can I have a mix of linked and not linked files without linking every file? If I link manually every file/dir, when updating from Linux other users and Windows Wow is not updated; when updating from Windows, new files remains "unlinked".

View 3 Replies View Related

Fedora :: USB Stick Listing - Sdb Linked To Sda

Jul 19, 2011

I've plugged a usb stick into my server.
cat /proc/partitions
8 0 1981440 sda
8 1 990720 sda1
8 2 436288 sda2

However when I do:
ls /dev/sd*
/dev/sda
/dev/sda1
/dev/sda2
/dev/sdb
/dev/sdb1
/dev/sda2

I'm sure I got no other devices connected that /dev/sdb would point to
cd /sys/block/sda
[root@footy sda]# ll
lrwxrwxrwx 1 root root 0 Jul 18 16:27 device ->
../../devices/pci0000:00/0000:00:03.2/usb1/1-1/1-1:1.0/host0/target0:0:0/0:0:0:0
[root@footy sda]# cd /sys/block/sdb
[root@footy sdb]# ll
lrwxrwxrwx 1 root root 0 Jul 18 16:27 device ->
../../devices/pci0000:00/0000:00:03.2/usb1/1-1/1-1:1.0/host0/target0:0:0/0:0:0:1

What does this imply, sdb linked to sda?

View 2 Replies View Related

General :: Listing Files Whose Contain A String?

May 5, 2010

following can be used to locate files that contain the contents 'SomeString' or 'SomeOtherString':

Code:

find /home/username/public_html -type f -print0 | xargs -0 egrep -l 'SomeString|SomeOtherString'

How would I limit this to searching for the text 'SomeString' or 'SomeOtherString', but only if the file has extension .php, .inc or .js? Also - what piping to xargs does here? I don't understand how this command actually works.

View 3 Replies View Related

General :: Listing Files Using Pattern Matching

Mar 13, 2011

I have a requirement to list files using find command My folder contains below list of files with out extention.I have a requirement to exclude only ABC.123.* type files and list others. Even though files having MNO contains this pattern i should not exclude. Even if file ends with .txt or .doc it should not be excluded. That is ABC.123.1234.txt should not be excluded.But I am not getting what is required. Can any one please let me know if I am doing wrong any where. As per my requirement I cannot use grep, -regex, or -regex attributes to find command.

View 7 Replies View Related

General :: Listing Files Selectively And Then Zipping Them?

Oct 4, 2010

I need to list the files only from 23:00 to 23:30 on 3rd oct 2010 from a directory and then zip them and have it.how to execute the same.

View 5 Replies View Related

General :: Listing Pdf Files In A Folder On The Desktop?

Mar 24, 2011

its a very basic question but iam not getting it right nowi have to list all the pdf files on my desktop even the pdf files which are present in folders on the desktopls *.pdfonly list the files present on the desktop, but not the files in the folders on the desktop containing the pdf files.

View 3 Replies View Related

General :: Listing Directory And Files' Permission Into Numbers?

Jul 20, 2010

Is it possible for listing directory and files' permission into numbers?

Generally ls command shows directory and files' permission as follows;

[root:maestro:/home/ddisk_net]# ls -al
Total 44
drwx------ 4 ddisk_net users 4096 7월 20 10:40 .
drwxr-xr-x 21 root root 4096 7월 20 10:28 ..
-rw------- 1 ddisk_net webteam 5 7월 20 10:40 .bash_history
-rw-r--r-- 1 ddisk_net users 33 1월 22 2009 .bash_logout

[code].....

View 9 Replies View Related

General :: Command For Listing Files/dirs Recursively Of Specific Directories?

Jul 22, 2011

suppose in my current directory, I have 50 sub-directories. Now, I am interested only in about 20 of those sub-directories (whose names match a pattern). I would like to recursively list the contents of these 20 sub-directories. How do I do that ? I would like to do this in Solaris 10 and Linux(RHEL 5.x).

View 3 Replies View Related

General :: Listing Files Recursively, Sorted By Time, Limited Head?

Mar 24, 2011

I'm trying to make a shell script that will list the 50 newest files in a directory with several subdirectories in. I've been trying with the find-command with no luck and now I've figured I should probably use ls. The problem is when I do "ls -lRt | head -50" it will do 1 directory at the time. It will not first make the full list and then sort it. This will display all items in first directory, sorted, then the newest directory will be sorted and displayed. So I figured I have to sort the whole process of ls before I limit the head. So this is where I am at now: ls -lRt | sort <something clever here> | head -50

Only doing a "|sort|" will sort it by name if I understand it right and I don't know how to solve it. Here's also my first attempt if that is of any interrest or help, this was limited by the change status time of files (so some lists got very large). These lists dit not get sorted by time and I could not find any way to do so.find $ftpDir -ctime $time -type f -print > $ftpFileLsAny help on this would be appreciated since I'm sort of stuck now. After reading manuals for all the options I can think of and still there's just a big blur in my head..

View 12 Replies View Related

Software :: Duplicates Or Hard-linked Files ?

Jul 18, 2011

I'm trying to trim down Linux so that it fits on an appliance, and noticed that some related files in /bin have the exact same size:

Code:

Are those file duplicates, or are they just hard-linked, ie. there's really only one file in the flash memory but it looks like there are more than one? How can make sure?

View 7 Replies View Related

Software :: Removed All Folder And Files Linked To Proftp

Sep 18, 2010

I installed proftpd once before, but i had removed it due to some errors I removed all folder and files linked to proftp, probley not the best thing to do How ever I'm trying to reinstall it againbut it doesn't seem to be installing every thing. My webmin did have it on the server rigth hand panel but now doesn't show How do I install all files needed again

[Code]....

View 5 Replies View Related

OpenSUSE :: Kmail To Firefox - Url Is Linked To Temp Cache Files

Aug 30, 2011

I'm using Opensuse11.4 and have kmail and Firefox. When I click a url: link in kmail it opens a new tab in Firefox. The problem is that the url is linked to my temp cache files as this file:///var/tmp/kdecache-terry/krun/1589.0.ctt

The tab this opens has most of the link icons stripped out and the links to other parts of the website don't work and I get a "file not found" error and the link is to a file which doesn't exist file:///contribute.php3

This is only a minor annoyance as I can right click > copy the url and paste it to the address bar in Firefox then it works ok. I don't think it anything in either programme that's broken because this happened after an update to Opensuse 11.4 on my previous laptop and has happened again on my new laptop with a fresh install.

View 2 Replies View Related

General :: Perform A Long Directory Listing Of All Files In The /bin Directory That Have Exactly Three Characters In Their Name?

Jan 18, 2010

How do you perform a long directory listing of all files in the /bin directory that have exactly three characters in their name?

View 1 Replies View Related

Server :: Listing Files Hang On Redhat Over VPN?

Jan 25, 2011

I have a newly built Redhat 5.5 box. When connecting over VPN and executing either "ls -al" or "df -h", the command prompt hangs without returning any output. Have got same result with TeraTerm and Putty clients. However, other commands run fine. Also,local users are able to run "ls -al" or "df -h" successfully.Storage is local disk. Any idea what could be mis-configured.

View 1 Replies View Related

Software :: Cifs Share Not Listing Any Files?

Apr 24, 2010

I've got a Fedora 10 server with a simple read-only samba share.I'm able to mount and browse the share from a Fedora 12 client, but all directories appear as empty--and I can see on the server that they contain many files. This happens whether I browse using smbclient, or mount using mount.cifs.I've got smb/nmb ports enabled on both the client and server. File permissions on the server look right.The server smb.conf setup:

Code:
[global]
security = user

[code]...

View 14 Replies View Related

Software :: Directory Listing Of Files That Don't Exist?

Oct 16, 2010

I think as a result of a script that started duplicating files in a loop, the allotted capacity on my VPS filled up with multiple nested copies of the same files... After a reboot, I could delete most of them, but got rm stalled in certain directories...

after isolating which ones, I found this: a directory listing that lists the files, and at the same time tells me they are not there!!!

partial listing:

Code:
ls
ls: cannot access userkey.php: No such file or directory
ls: cannot access workshop.php: No such file or directory
ls: cannot access quiz.php: No such file or directory
ls: cannot access webservice_rest.php: No such file or directory

[Code]....

View 5 Replies View Related

Ubuntu :: Get A Recursive Listing Of All Files Under The Current Directory?

Jan 2, 2011

If I runls -R1I get a recursive listing of all files under the current directory.However, if I dols -R1 *.avi, ie I want to search only for files with the file descriptor .avi, I get an errorQuote:ls: cannot access *.avi:No such file or directorySo it seems I am using ls incorrectly. What's the correct way to use wild card pattern matching when using the -R switch? Or maybe that isn't possible?

View 2 Replies View Related

CentOS 5 :: RSYNC: Listing Files Added & Changed?

Oct 21, 2010

I'm using rsync to create a mirror of the data files on our main server every day. I've looked at the man page, and can't see it; can I get a listing of the files that have been changed on or added to the mirror when it's completed? Can it just log what it's doing to a file?

View 1 Replies View Related

Ubuntu :: Firefox Opens File Listing Instead Of Nautilus Opening File Listing

Jun 20, 2010

Firefox opens file listing instead of Nautilus opening file listing.When I access a folder via "Places" -> "Home Folder" or "Places" -> "Downloads", Firefox opens and list the contents of the directory.I have re-installed Nautilus, un-installed Firefox and then going to "Places" -> "Home Folder" or "Places" -> "Downloads" launches Nautilus and I can view the contents normally. Anybody else had this problem with Firefox ? Anybody know how to fix this Firefox problem ?Running Ubuntu Desktop 9.10 64bit.

View 2 Replies View Related

Ubuntu :: Possible To Write Script / When Prompted In Terminal To Output Tree Listing Of Files And Folder

Mar 9, 2010

is it possible to write a script, when prompted in the terminal to output a tree listing of files and folder with out using a tree command.for example. control the output of ls -l to output that list like a tree (-- or /-)

View 3 Replies View Related

General :: Removing Linked Soft Link?

Sep 2, 2010

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

View 2 Replies View Related

General :: Command To Show Me Which Directories It Linked To?

Mar 25, 2010

Which command will tell me whether a directory is a symbolic link or not?
if it is a symbolic link, is there another command to show me which directories it is linked to?

View 1 Replies View Related

General :: Compiling Library In Cygwin To Be Linked With VC++

May 21, 2010

I'm interested in modding an open-source turn based game called Advanced Strategic Command or ASC, but to do that I need bunch of libraries. Installing those libraries is very easy in linux, I know but the thing is I'm working with windows in which the building of the libraries is a bit more complex, as you probably know. One of those libraries is the ligsigc++, I'm using VC++ but haven't been successful in building the libsigc++ in VC++. I considered making my life easier with Cygwin (a unix shell for windows) and simply executing ./Configure, Make. I's worked like a charm and the library dll it produced is named cygsigc-2.0-0.dll which made me wonder is compiling a library in cygwin to be linked with VC++ perfectly ok? That is is there any difference in compiling in cygwin and VC++?

View 2 Replies View Related

General :: Motion Detection" Sw Linked To Liberaries?

May 9, 2011

How is Motion Detection software interpreted, and who is responsible for the interpretation operation? Is motion.conf linked to a specific libraries?

View 10 Replies View Related

General :: Difference Between Static And Dynamically Linked Library?

Aug 30, 2010

Libraries have always been ambiguous to me. I would love to have a clear understanding of them. Here's what I know so far... Ok I know that libraries are a bunch of functions and definitions in C that binaries use. I also understand that static libraries are used by the binaries in /sbin:/usr/sbin:/usr/local/sbin and dynamically linked libraries are used by the binaries in /bin:/usr/bin:/usr/local/bin So why have statically linked and dynamically linked libraries? I know that dynamically linked libraries are used to save space. Otherwise each binary would need its own private copy of a library. So dynamically libraries are used to save space.

1. Where are the static libraries and the dynamically linked libraries located in the file structure?

2. Where does ldconfig fit into all of this?

3. Would a rootkit affect both statically and dynamically linked libraries? I would think yes unless the libraries only have read permissions.

4. If the above is true, is there any reason for your libraries to have write permission other than when you want to edit them?

View 5 Replies View Related

General :: Possible To 'hide' A Process From The Listing Of `ps` Or `top`?

Oct 13, 2010

I presume that if this is possible it would need to be done as root (or as a user who shares root's UID of 0).How can a process be launched so that it does not show up in a ps aux or ps ef or top listing if the command is run by non-root?Is this even possible?The distributions I typically run are RHEL/CentOS and Ubuntu - so if there is a distro-specific answer, that's ok, too.

View 1 Replies View Related

General :: Hide A User From The Who Listing?

Sep 3, 2011

Is it possible for a non-root user to hide themselves from the output of who/w, so that they can be logged in without other users seeing it? I think that the file /var/run/utmp might have something to do with this, but it's not writeable by non-root users (permission 644). I'm fairly certain that this can be done by a non-privileged user (because someone told me that they were able to do so), but I don't know how they did it and can't ask them right now.

View 1 Replies View Related

General :: Listing Of Zip File Contents Using C?

Oct 20, 2009

how to do the listing of zip file contents using C?

View 1 Replies View Related

General :: Listing Filenames Without The Directories?

Oct 3, 2010

list filenames one-per-line, in BASH without including directories. I think he was either wrong or making that up. There is a way to list just the names and one per line but there aren't any arguments I can find that can be used to exclude directories.

Code:

IFS=', '; files=`ls -m`; for i in $files; do if [ -f $i ]; then echo $i; fi; done That does only use ls as a command, however he said his GSI thought he could do it without all that...

Quote:

ricky@ricky-desktop:~$ ls -l
total 1376
drwxr-xr-x 2 ricky ricky 4096 2010-10-02 22:17 Azureus Downloads
drwxr-xr-x 4 ricky ricky 4096 2010-10-02 22:16 Desktop

[code]....

View 6 Replies View Related







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