Help with basic command that will not work


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help with basic command that will not work
# 1  
Old 02-01-2009
PHP Help with basic command that will not work

I need to be able to look up a file system with the inode number 214743 and, get its absolute reference in a single line...

I have tried..


"
find / -inum 214743 -print"
# 2  
Old 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.)
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Basic Linux command line question

: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

2. Shell Programming and Scripting

Basic Unix cp command help

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

3. Linux

Basic Ubuntu command or script list

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

4. UNIX for Dummies Questions & Answers

Basic IF Command Question

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

5. Linux

Basic Linux Shell Command

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

6. UNIX for Dummies Questions & Answers

Basic unix command help plz

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

7. UNIX for Dummies Questions & Answers

Why do basic unix commands not work in BASH

Why do basic unix commands such as "ls" not work in "BASH" mode?? I am frustrated!! (10 Replies)
Discussion started by: PixelLover
10 Replies

8. Shell Programming and Scripting

basic unix file command!

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

9. IP Networking

Cisco ISO basic command

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

10. Tips and Tutorials

Unix Basic Command

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
Login or Register to Ask a Question