Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • eplan.sql Oracle
  • OEM-Commnds Oracle
  • oracle 11g RAC on vmware Oracle
  • Oracle Identifiers Oracle
  • Find long Running Transaction Linux/Unix
  • export import with parameter file. Oracle
  • sid_wise_sql.sql Oracle
  • Running select from V$ views from remote server Linux/Unix
  • V$transaction notes for finding XID composition. Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • send attachment from unix-shell script Linux/Unix
  • set_env_dba Linux/Unix
  • DBMS_Shared_pool pinning triggers Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle

How to sort list of files on basis of their sizes.

Posted on 09-Nov-2006 By Admin No Comments on How to sort list of files on basis of their sizes.

tuningdb21->AWRTEST@(/db1/home/oracle)ls -rlt | sort +4

total 48

drwx—— 2 oracle dba 96 May 17 16:16 nsmail

drwxrwxr-x 3 oracle dba 96 Oct 3 2005 app

drwxr-xr-x 3 oracle dba 96 Oct 4 2005 patch

drwxr-xr-x 2 oracle dba 96 Oct 16 15:17 scripts

-rw-r–r– 1 oracle dba 124 Oct 3 2005 local.cshrc

-rw-r–r– 1 oracle dba 385 Oct 10 10:47 afiedt.buf

-rw-r–r– 1 oracle dba 582 Oct 3 2005 local.profile

-rw-r–r– 1 oracle dba 607 Oct 3 2005 local.login

drwxr-xr-x 3 oracle dba 1024 May 24 14:19 oraprocs

drwxr-xr-x 2 oracle dba 1024 Oct 19 2005 RMAN

drwxr-xr-x 5 oracle dba 7168 Nov 7 17:19 paresh

-rw-r–r– 1 oracle dba 10267 Oct 11 13:39 rr1

tuningdb21->AWRTEST@(/db1/home/oracle)

And for sorting in reverse order.

tuningdb21->AWRTEST@(/db1/home/oracle)ls -rlt | sort -r +4

-rw-r–r– 1 oracle dba 10267 Oct 11 13:39 rr1

drwxr-xr-x 5 oracle dba 7168 Nov 7 17:19 paresh

drwxr-xr-x 2 oracle dba 1024 Oct 19 2005 RMAN

drwxr-xr-x 3 oracle dba 1024 May 24 14:19 oraprocs

-rw-r–r– 1 oracle dba 607 Oct 3 2005 local.login

-rw-r–r– 1 oracle dba 582 Oct 3 2005 local.profile

-rw-r–r– 1 oracle dba 385 Oct 10 10:47 afiedt.buf

-rw-r–r– 1 oracle dba 124 Oct 3 2005 local.cshrc

drwxr-xr-x 2 oracle dba 96 Oct 16 15:17 scripts

drwxr-xr-x 3 oracle dba 96 Oct 4 2005 patch

drwxrwxr-x 3 oracle dba 96 Oct 3 2005 app

drwx—— 2 oracle dba 96 May 17 16:16 nsmail

total 48

Linux/Unix, shell

Post navigation

Previous Post: Locktree.sql
Next Post: oradebug ipcrm ipcs

Related Posts

  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • adding new line after specific pattern using sed Linux/Unix
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • reset Sequence Oracle
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • Insert cause enqueue locks Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • purge_trc.sh Linux/Unix
  • Good Link from metalink 1 Oracle
  • Rman Notes -1 Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme