02-02-2009
Does this help?
From:
Unix/Linux "find" Command Tutorial
A common request is a way to find all the hard links to some file. Using ls -li
file will tell you how many hard links the file has, and the
inode number. You can locate all pathnames to this file with:
find
mount-point -xdev -inum
inode-number
Since hard links are restricted to a single filesystem, you need to search that whole filesystem so you start the search at the filesystem's
mount point. (This is likely to be either /home or / for files in your home directory.) The -xdev options tells find to not search any other filesystems.
(While most Unix and all Linux systems have a find command that supports the -inum criteria, this isn't POSIX standard. Older Unix systems provided the ncheck utility instead that could be used for this.)
10 More Discussions You Might Find Interesting
1. Tips and Tutorials
A
at : execute commands at a specified time/date.
awk: a scripting language, especially useful for manipulating text and automation.
B
bash : invokes the Bourne Again Shell (standard on most boxes).
batch: execute comands when load permits.
bc : interactive C-like calcultor (integers... (6 Replies)
Discussion started by: binhnx2000
6 Replies
2. IP Networking
hi,I am describeing basic command about cisco Ios .my english not well,so that has error on the article ,I hope that you give directions to me.
A. Check command for basic router
show version
show processes
show protocols
show mem
show ip route
show startup-config
show... (1 Reply)
Discussion started by: Yeliu
1 Replies
3. Shell Programming and Scripting
Hi there,
I am looking to create a single file called outputa.txt, which will show the contents of my directorya and its sub directories, and all file and directory permissions.
What command would be used for this?
Cheers
Kev (2 Replies)
Discussion started by: kev112
2 Replies
4. UNIX for Dummies Questions & Answers
Why do basic unix commands such as "ls" not work in "BASH" mode??
I am frustrated!! (10 Replies)
Discussion started by: PixelLover
10 Replies
5. UNIX for Dummies Questions & Answers
I was wondering what command lines i could use to do the following.
1. mail a file to a user with a subject line "HELLO". Also, send a Blind carbon copy to a different user?
2. Display the number of files AND directories in a given directory?
3. Display the last 5 files in a given... (4 Replies)
Discussion started by: tragic54
4 Replies
6. Linux
I'm working with telnet under windows and Xming. I connect to a network computer and I open Xterm. With Xterm I want to be able to open more than one windows like firefox, nedit etc.
Example : When a open firefox on the xterm, I type "firefox", after that, I cannot make an other command until I... (1 Reply)
Discussion started by: Meccos
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a months worth of data that I need to separate into weekly files. There is a date column with dates in the following format: YYYYMMDD.
I'm thinking I can create the weekly files by using a grep command combined with an IF command and specify each day of the specific week I'm... (1 Reply)
Discussion started by: cwl
1 Replies
8. Linux
I am completely new to Ubuntu 10.04 and Linux in general. I have spent many years in the past using DOS and I consider myself to be at advanced level with various Windows platforms.
I have just download Ubuntu 10.04 and burnt to disk. So now I need to know please, is there a list of basic... (2 Replies)
Discussion started by: Royalist
2 Replies
9. Shell Programming and Scripting
I am new to unix so this is probably a pretty basic question.
I am trying to write several commands on one line that creates a directory called bf in the current directory, then copy all files within that directory and any subdirectories, that do not start with the letter c to the new bf folder.... (5 Replies)
Discussion started by: scotty85
5 Replies
10. UNIX for Beginners Questions & Answers
:D:D:D
These are list of command i typed on opensuse terminal and evolve lots of doubt around ,that i can't answer.
COMMAND 1 linux-xavv:/ # cd
COMMAND 2 linux-xavv:~ #
Does above command 1 and command two with red labelled sign make different meaning or same .
1
linux-xavv:/... (1 Reply)
Discussion started by: lobsang
1 Replies
LEARN ABOUT DEBIAN
e2tail
E2TAIL(1) General Commands Manual E2TAIL(1)
NAME
e2tail - a basic version of the tail command for an ext2 filesystem
SYNOPSIS
e2tail [options] file
DESCRIPTION
The e2tail command implements a basic version of the tail command.
OPTIONS
-n num_lines
The number of lines to display
-f Output appended data as the file grows. This is inode dependent, so if the file is renamed, it will keep checking it.
-F Output appended data as the file grows. This is file name dependent, so if the file is renamed, it will check on any new files with
the same name as the original. This is useful for watching log files that may be rotated out occasionally. This was requested by a
person in the computer security field for monitoring 'honeypot' type machines.
-s sleep_interval
The number of seconds to sleep before checking if the file has grown while in 'follow' mode. The default is 1.
SEE ALSO
e2tools(7), e2ln(1), e2ls(1), e2mkdir(1), e2cp(1), e2rm(1), e2mv(1).
AUTHOR
The e2tools were written by Keith Sheffield <sheff@pobox.com>.
This manual page was written by Lucas Wall <lwall@debian.org>, for the Debian project (but may be used by others).
March 2, 2005 E2TAIL(1)