LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2007, 03:29 PM   #1
JaxsunApex
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Rep: Reputation: 0
Can you write a script to display file name, Inode, and size of any file?


Can you write a script to display file name, Inode, and size of any file? I want to display this, but I haven't got a clue how to do this. I am a newbie of course. I want to use the set and echo command to do so.
 
Old 01-29-2007, 03:30 PM   #2
StargateSteve
Member
 
Registered: Dec 2006
Location: UNM
Distribution: Debian Lenny
Posts: 107

Rep: Reputation: 15
for that, look at the dir command and its arguments.
 
Old 01-29-2007, 03:32 PM   #3
JaxsunApex
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Original Poster
Rep: Reputation: 0
I know it would be under the dir command, but I mean writing a script that would display it in a file.
 
Old 01-30-2007, 08:39 AM   #4
StargateSteve
Member
 
Registered: Dec 2006
Location: UNM
Distribution: Debian Lenny
Posts: 107

Rep: Reputation: 15
Code:
dircommand -arguments > file.name
The cool little arrow can be used to redirect output to a file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I write a script (batch file)?? cvzyl Linux - Software 4 07-30-2006 09:11 AM
How to write script file in Linux? rust8y Linux - General 3 05-20-2006 05:49 AM
Backup script to write to file? ctroyp Linux - Newbie 13 01-10-2006 06:15 PM
File size display munged in Konqueror pumpkin7593 Linux - Software 0 01-24-2005 08:30 PM
Help with file size script jpc82 Programming 10 04-01-2004 04:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration