Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Implementing Listener Security Oracle
  • column level grant syntax Oracle
  • Query to Generate aggregate on every 30 mins. Oracle
  • checking redhat linux version Linux/Unix
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • normal maintenance for exp-imp and renaming table Oracle
  • find_idle_cpu.sql Oracle
  • switchover for primary database Oracle
  • Export Oracle data and Compress at same time Oracle
  • dbinv.sql Oracle
  • TRUNCATE Privs Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • find_err.sql for finding errors from dba_errors. 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

  • telnet listening Linux/Unix
  • Search and replace editor command in vi Linux/Unix
  • how to find VIP from ifconfig Linux/Unix
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • chk_space_SID.ksh Linux/Unix
  • Process Map for CPU and Memory for OS processes 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • Korn Shell Arithmatic Linux/Unix
  • My Test Case On 21-OCT-2005 Oracle
  • process id based files and processes Linux/Unix
  • Changing default shell Linux/Unix
  • crontab syntax Linux/Unix
  • Search and replace editor command in vi Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme