07-07-2006
the 'stat' command gives you a lot of information of a file also its location but a bit crypted.
stat /tmp/xx.msg
File: `/tmp/xx.msg'
Size: 4401 Blocks: 16 IO Block: 4096 regular file
Device: 805h/2053d Inode: 30 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ walter) Gid: ( 100/ users)
Access: 2006-06-16 13:51:05.000000000 +0200
Modify: 2005-11-11 18:58:51.000000000 +0100
Change: 2005-11-11 18:58:51.000000000 +0100
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I need help in forming a script to copy files from one location which has a sub directory structure to another location with similar sub directory structure,
say location 1,
/home/rick/tmp_files/1-12/00-25/
here 1-12 are the number of sub directories under tmp_files and 00-25 are sub... (1 Reply)
Discussion started by: pharos467
1 Replies
2. Shell Programming and Scripting
Hi all
I need to copy the entire contents of one file into an existing file at a specific location. I know the exact line number where I need to put it. It appears I would use either sed or awk to do this, but I have been unsuccessful so far:
File A
line 1
line 2
line 3
line 4
... (6 Replies)
Discussion started by: gshepherd7
6 Replies
3. Shell Programming and Scripting
Hi Everyone,
I have 1.txt
here
a
b
c' funny"yes";
d
e
The finally output is:
here
a
b
c
d
e' funny"yes"; (1 Reply)
Discussion started by: jimmy_y
1 Replies
4. Shell Programming and Scripting
Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies
5. Shell Programming and Scripting
Hi,
I am logging to a linux server through a user "user1" in /home directory.
There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory.
When the script is added to crontab, on... (1 Reply)
Discussion started by: archana.n
1 Replies
6. Shell Programming and Scripting
I have file file1.txt in location 'loc1'. Now i want a copy of this file in location 'loc2' with a new file called test.txt.
Please help me how to do this in shell script. (1 Reply)
Discussion started by: vel4ever
1 Replies
7. Shell Programming and Scripting
Hi
This is my third past and very impressed with previous post replies
Hoping the same for below query
How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies
8. Shell Programming and Scripting
A) I would like to achive following actions using shell script. can someone help me with writing the shell script
1) Go to some dir ( say /xyz/logs ) and then perform find operation in this dir and list of subdir using
find . -name "*" -print | xargs grep -li 1367A49001CP0162 >... (1 Reply)
Discussion started by: GG2
1 Replies
9. Shell Programming and Scripting
Hello.
I want to to backup some "default:" values from a file do some other job and after restore that "default:" values back.
The problem is that the source and destination file has a lot of default: strings in it but with different values...
So..
Here is an example:
A part of my source... (6 Replies)
Discussion started by: ausdim
6 Replies
10. Shell Programming and Scripting
This question could be specific to the site subdivx.com In the past, I've been able to download a file following location using cURL but there is something about subdivx.com that's different and can't figure out how to get it to work.
I tried the following directly in the terminal with no... (5 Replies)
Discussion started by: MoonD
5 Replies
LEARN ABOUT LINUX
gnomevfs-info
gnomevfs-info(1) User Commands gnomevfs-info(1)
NAME
gnomevfs-info - display a list of file information
SYNOPSIS
gnomevfs-info URI
DESCRIPTION
gnomevfs-info displays the following information about a file:
o Name: filename
o Type: [Regular|Directory]
o MIME type: mime-type
o Size: file-size
o Blocks: #blocks
o I/O block size: block-size
o Local: [YES|NO]
o SUID: [YES|NO]
o SGID: [YES|NO]
o Sticky: [YES|NO]
o Permissions: octal permissions
o Link count: #links
o UID: owner-uid
o GID: owner-gid
o Access time: date-and-time
o Modification time: date-and-time
o Change time: date-and-time
o Device #: device#
o Inode #: inode#
o Readable: [YES|NO]
o Writable: [YES|NO]
o Executable: [YES|NO]
OPERANDS
The following operands are supported:
URI Specifies the file or directory location in standard URI format.
EXAMPLES
Example 1: Getting File Information for a Local File
example% gnomevfs-info file:///etc/nsswitch.conf
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables: NLSPATH.
EXIT STATUS
The exit value 0 is returned regardless of success or failure.
FILES
The following files are used by this application:
/usr/bin/gnomevfs-info Executable to display a list of file information
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-vfs |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
gnomevfs-cat(1), gnomevfs-copy(1), gnomevfs-ls(1), gnomevfs-mkdir(1)
NOTES
Written by Stephen Browne, Sun Microsystems Inc., 2004.
SunOS 5.10 6 Sep 2004 gnomevfs-info(1)