09-03-2012
Listing latest & large files from a mounted drive
Hi All,
My AIX server have a mounted drive "/stage". I want to list the latest modified/created files in this drive. Also large files in this drive.
I tried to
ls -l | sort +4nr | head -10
Someother solutions to list from entire drive.
Thanks.
![Smilie Smilie](https://www.unix.com/images/smilies/smile.gif)
Last edited by radoulov; 09-04-2012 at 09:26 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a script that backs up our storage drive daily to one external drive and weekly to another. What I'd like to do is find a way, in the script, to test whether the drives are mounted so that it doesn't accidentally fill up the main drive in the event of a drive failure, etc. Any ideas on how... (1 Reply)
Discussion started by: spectre_240sx
1 Replies
2. Filesystems, Disks and Memory
Hi guys, i'm new to UNIX and only know a small amout about it, but have just had some changes at work which now require me to interact with and work on SUN Unix systems often. I have reasonable knowledge of PC's but hope that you will be able to help me with these questions.
Part1.
I would like... (3 Replies)
Discussion started by: Scrat
3 Replies
3. Shell Programming and Scripting
if i am having files as below in a directory----
-rwxrwxrwx 1 dsadm dstage 43 Nov 21 2005 CheckfreeFtpSeq.err
-rwxrwxrwx 1 dsadm dstage 37 Jun 22 2007 EDIRemitVendorAdviceSeq.log
-rwxrwxrwx 1 dsadm dstage 43 Jun 22 2007 EDIRemitVendorAdviceSeq.err... (2 Replies)
Discussion started by: Sagarddd
2 Replies
4. AIX
1) when user login to the server the session got colosed. How will resolve?
2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem?
Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies
5. Shell Programming and Scripting
How can I list the files in a directory and just show the file size, date stamp, timestamp and file name..
I've been trying to ls -lrt the directory to a file and then use the cut command but I'm not having any luck with getting the proper results.. I thought i could use the -f switch and count... (4 Replies)
Discussion started by: Jazmania
4 Replies
6. Shell Programming and Scripting
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies
7. UNIX for Dummies Questions & Answers
Hi
We have two servers name A and B .
I have a folder "Share" on A was NFS mounted to "B" server.
I have set the ACL permissions using setfacl , so that both (One user from Server A and another user from Server B) users can read and write to the directory.
Both users can create the... (0 Replies)
Discussion started by: rakeshkumar
0 Replies
8. Shell Programming and Scripting
Hi,
I want to display latest files (created or modified) recursively in a path.
I tried in different ways, but didn't get any desired output:
find $path -type f -exec ls -lt {} \; | sort -n -r
find $path -type f -printf %p";" | xargs -d ";" ls -t
Second one is giving the error:... (21 Replies)
Discussion started by: karumudi7
21 Replies
9. Shell Programming and Scripting
I got a problem with the permission of mounted 2TB drive in my Linux/Mint system. All the files in any folder are with 777, which is not what I want.
my fstab line for this disk is:
UUID=90803E0C803DF974 /media/grape/Workspace1_ntfs ntfs auto,users,permissions 0 0 and blkid gave me:
$> blkid
... (4 Replies)
Discussion started by: yifangt
4 Replies
10. UNIX for Advanced & Expert Users
Hi Team
when I boot the server I get this 2 errors :
the disk drive for /tmp is not ready yet or not present
the disk drive for /boot is not ready yet or not present
and its stay like that , I m using Ubuntu 12.04
please if someone have any idea how to fix that problem . (1 Reply)
Discussion started by: SULTAN01
1 Replies
LEARN ABOUT OPENSOLARIS
rmmount
rmmount(1M) System Administration Commands rmmount(1M)
NAME
rmmount - removable media mounter for CD-ROM, floppy, Jaz drive, and others
SYNOPSIS
/usr/sbin/rmmount [-D]
DESCRIPTION
The rmmount utility is a removable media mounter that is executed by volume management whenever a removable medium, such as a CD-ROM or a
floppy, is inserted. Removable media is managed by an application or a volume manager. rmmount can also be called by using volrmmount(1).
Upon insertion of a medium and following invocation of the volcheck(1) command, rmmount determines what type of file system (if any) is on
that medium. If a file system is present, rmmount mounts the file system in one of the locations listed below.
For a diskette (floppy):
/floppy/floppy0 symbolic link to mounted floppy in local floppy drive
/floppy/floppy_name mounted named floppy
/floppy/unnamed_floppy mounted unnamed floppy
For a CD-ROM or a DVD-ROM:
/cdrom/cdrom0
symbolic link to mounted CD-ROM in local CD-ROM drive
/cdrom/CD-ROM_name
mounted named CD-ROM
/cdrom/CD-ROM_name/partition
mounted named CD-ROM with partitioned file system
/cdrom/unnamed_cdrom
mounted unnamed CD-ROM
For a Zip drive:
/rmdisk/zip0 symbolic link to mounted Zip medium in local Zip drive
/rmdisk/Zip_name mounted named Zip medium
/rmdisk/Zip_name/partition mounted named Zip medium with partitioned file system
/rmdisk/unnamed_zip mounted unnamed Zip medium
For a Jaz drive:
/rmdisk/jaz0 symbolic link to mounted Jaz medium in local Jaz drive
/rmdisk/Jaz_name mounted named Jaz medium
/rmdisk/Jaz_name/partition mounted named Jaz medium with partitioned file system
/rmdisk/unnamed_Jaz mounted unnamed Jaz medium
For a generic "rmdisk" drive:
/rmdisk/rmdisk0
symbolic link to mounted removable medium in local removable medium drive
/rmdisk/rmdisk_name
mounted named removable medium
/rmdisk/rmdisk_name/partition
mounted named removable medium with partitioned file system
/rmdisk/unnamed_rmdisk
mounted unnamed removable medium
If the media is read-only (for example, a CD-ROM or a floppy with write-protect tab set), the file system is mounted read-only.
If a file system is not identified, rmmount does not mount a file system. See the for more information on the location of CD-ROM, floppy,
and other media without file systems.
If a file system type has been determined, it is then checked to see that it is "clean." If the file system is "dirty," fsck -p (see
fsck(1M)) is run in an attempt to clean it. If fsck fails, the file system is mounted read-only.
After the mount is complete, "actions" associated with the media type are executed. These actions allow for the notification to other pro-
grams that new media are available.
Actions are executed in the order in which they appear in the configuration file. The action function can return either 1 or 0. If it
returns 0, no further actions will be executed. This allows the function to control which applications are executed.
In order to execute an action, rmmount performs a dlopen(3C) on the shared object and calls the action function defined within it. The def-
inition of the interface to actions can be found in /usr/include/rmmount.h.
File systems mounted by rmmount are always mounted with the nosuid flag set, thereby disabling setuid programs and access to block or char-
acter devices in that file system. Upon ejection, rmmount unmounts mounted file systems and executes actions associated with the media
type. If a file system is "busy" (that is, it contains the current working directory of a live process), the ejection will fail.
OPTIONS
-D Turn on the debugging output from the rmmount dprintf calls.
FILES
/usr/lib/rmmount/*.so.1 shared objects used by rmmount.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWvolu |
+-----------------------------+-----------------------------+
SEE ALSO
volcheck(1), volrmmount(1), fsck(1M), dlopen(3C), attributes(5)
SunOS 5.11 1 Mar 2007 rmmount(1M)