Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Create type and Grant on it. Oracle
  • V$ROLLSTAT status is Full Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • Find total file sizes Linux/Unix
  • Good Site for Oracle Internals Oracle
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • Remove duplicate rows from table Oracle
  • Sample WW22 listener.ora Oracle
  • Virtual Indexes in Oracle Oracle
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • How to change hostname in Linux Linux/Unix
  • Clean up Oracle
  • Parallel DML Oracle
  • move_arch_files.ksh Linux/Unix
  • how to find OS block size 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

  • Find total file sizes Linux/Unix
  • Search and Replace vi editor command. Linux/Unix
  • purge_trc.sh Linux/Unix
  • set_env_dba Linux/Unix
  • Jai Shree Ram Linux/Unix
  • setting prompt display with .profile Linux/Unix

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Kill a session dynanically using execute immediate Oracle
  • scp with ssh2 Linux/Unix
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Oracle 11g Training on 29JAN1010 Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • Renaming the column name Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • tblwopk.sql /* Find Tables Without PK */ Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme