My company has an old DG/UX system we use for customer data. I need to archive some data to clear some space, so I wanted to be able to list items in each directory by size, to grab some "low hanging" fruit to give me some breathing room as the system is constantly at 90% capacity.
For my examples here I will be using my /var directory, even though it's not what I am cleaning out.
So I go into the directory and do a
I get a gorgeous listing of where, why, how, etc that recursively goes into each directory and lists the contents.
*BUT* I want to list it by filesize! So if I do a:
I get not as nice of a list, but everything is sorted by size.
The thing is, I could really use the syntax of the first one, that listed things by directory, and *then* by size. Is there a way to do both?
Before you tell me to use the -S option with ls, save your breath. DG/UX considers it an illegal option.
Thanks in advance.
Last edited by Franklin52; 03-15-2010 at 06:07 PM..
Reason: Please use code tags!
Hi,
I would like to get latest file with using listing tail and want to replace header's first column starting from # to nothing.
I am using this to replace first header #
code :-sed '1s/#//'
but I want to do something like this.
Code :- ls promo_random.csv | tail -1 | sed '1s/#//'... (4 Replies)
Hi All,
Could you please help to resolve my following issues:
Problem Description:
Suppose my user name is "MI90".
i.e. $USER = MI90
when i run below command, i get all the processes running on the system containing name MQ.
ps -ef | grep MQ
But sometimes it lists... (8 Replies)
Old DG box Aviion PentiumPro running R4.20Mu06 being used to try to recreate Ingres db from backup tapes so machine has not been operational before and some of original files in /etc may have ben overwritten
Unable to get NIC working
Any pointers on how to go about configuring NIC :rolleyes: (0 Replies)
If I do an ls -l on a directory I get this:
-rw-r--r-- 1 root other 5248094 Jun 24 03:56 monitor.log.7
-rw-r--r-- 1 root other 5248303 Jul 11 11:19 ct.log.1
-rw-r--r-- 1 root other 5248907 Jun 29 06:01 ct_monitor.log.5
-rw-r--r-- 1 root other 5249042 Jun 19... (1 Reply)
Dear All,
I want to list all the files of a Directory. I am not able to find out the code. So plz send me code in C in Unix Environmrnt so that I can Display all the file names of a Directory (3 Replies)
I am currently attempting to create a file which I access from an oracle form.
At the minute I do a host command and run an ls -l e.g.
/bin/ls -l /dir/dir/dir/ > /tmp/list.txt
I then read this file within my oracle form. However I want the user to be able to restrict, sort and filter the... (2 Replies)
How can I list all files in a directory and its subdirectories that have been created or changed since the system was booted. I was trying to acomplish this with "ls" and "find" commands but could not get anything usefull. Maybe some one can provide me a hint.
Thank you for your time. (1 Reply)
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)