Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Du command takes too long to respond Post 303045698 by MadeInGermany on Thursday 9th of April 2020 07:27:59 AM
Old 04-09-2020
Is /data ia separata file system? Then you can quickly query it with a statfs() e.g. df /data. (Maybe you need some options like df -Pk /data.)
But if you need to break it down then you must use du.
Here is a command that I often use for cleanup:
Code:
du -akx "$@" | sort -k1,1n | tail -100

I have used "$@" so it will take arguments when it is placed in a function or in a script. (Without arguments du defaults to .)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Finding out how long a command takes to run

Hi I am trying to find out the best way to find out how long a command takes to run in miliseconds .. Is there such a way of doing this in Unix ? Thanks (3 Replies)
Discussion started by: cfoxwell
3 Replies

2. Programming

fwrite takes extremely long time

After my previous thread, I think I found out what causes the long delays. I run this program on several Linux computers, and the sometimes (after the file with the arrays becomes big) the fwrite takes between 100 ms to 900 ms. This is very bad for me, as I want a timer to halt each 30 ms.... ... (5 Replies)
Discussion started by: inna
5 Replies

3. Shell Programming and Scripting

Killing a process that takes too long

Hello, I have a C program that takes anywhere from 5 to 100 arguments and I'd like to run it from a script that makes sure it doesnt take too long to execute. If the C program takes more than 5 seconds to execute, i would like the shell script to kill it and return a short message to the user. ... (3 Replies)
Discussion started by: WeezelDs
3 Replies

4. UNIX for Dummies Questions & Answers

time how long it takes to load a module

Hello, like the title says, how can i measure the time it takes to load a module in Linux, and how how can i measure the time it takes to load a statically compiled module. /Best Regards Olle ---------- Post updated at 01:13 PM ---------- Previous update was at 11:54 AM ---------- For... (0 Replies)
Discussion started by: ollebanan
0 Replies

5. Shell Programming and Scripting

sort takes a long time

Dear experts I have a 200MG text file in this format: text \tab number I try to sort using options -fd and it takes very long! is that normal or I can speed it up in some ways? I dont want to split the file since this one is already splitted. I use this command: sort -fd file >... (12 Replies)
Discussion started by: voolek
12 Replies

6. Shell Programming and Scripting

Wget takes a long time to complete

Hi, I wish to check the return value for wget $url. However, some urls are designed to take 45 minutes or more to return. All i need to check if the URL can be reached or not using wget. How can i get wget to return the value in a few seconds ? (8 Replies)
Discussion started by: mohtashims
8 Replies

7. Shell Programming and Scripting

Timeout to abolish ssh connection command it takes too long

Hi, I am running a ssh connection test in a script, how can I add a timeout to abolish the process if it takes too long? ssh -i ~/.ssh/ssl_key useraccount@computer1 Thank you. - j (1 Reply)
Discussion started by: hce
1 Replies

8. UNIX for Advanced & Expert Users

Find command takes too long to complete

Hi, Below is my find command find /opt/app/websphere -name myfolder -perm -600 | wc -l At time it even takes 20 mins to complete. my OS is : SunOS mypc 5.10 Generic_150400-09 sun4v sparc SUNW,T5440 (10 Replies)
Discussion started by: mohtashims
10 Replies

9. Shell Programming and Scripting

Find command takes long

Hi, I am trying to search for a Directory called "mont" under a directory path "/opt/app/var/dumps" Although "mont" is in the very parent directory called "dumps" i.e "/opt/app/var/dumps/mont" and it can never be inside any Sub-Directory of "dumps"; my below find command which also checks... (5 Replies)
Discussion started by: mohtashims
5 Replies

10. Shell Programming and Scripting

Script takes too long to complete

Hi, I have a lengthy script which i have trimmed down for a test case as below. more run.sh #!/bin/bash paths="allpath.txt" while IFS= read -r loc do echo "Working on $loc" startdir=$loc find "$startdir" -type f \( ! -name "*.log*" ! -name "*.class*" \) -print | while read file do... (8 Replies)
Discussion started by: mohtashims
8 Replies
next(1) 						      General Commands Manual							   next(1)

NAME
next - show the next message (only available within the message handling system, mh) SYNOPSIS
next [+foldername] [-[no]header] [-help] [-showproc program] [-noshowproc] [options to showproc] OPTIONS
Displays a one-line header before the message. The header consists of the name of the folder and the message number. This is the default behavior. It can be suppressed with the -noheader option. Prints a list of the valid options to this command. Specifies an alternative program to list messages. The default is to use the program defined by the showproc: entry in the file. As with show, you can give options to the showproc program at the command line. These are passed directly to showproc by next. (If you specify an option that has a numerical value, leave no space between the argument and the value. See RESTRICTIONS for more information.) The defaults for this command are: +folder defaults to the current folder -header DESCRIPTION
The command next displays the next message in the current folder. The next message is the one after the current message in the folder. The message that is shown becomes the current message. If you name a folder using the +folder argument, next displays the next message in the folder you specify. That folder becomes the current folder. RESTRICTIONS
The next command is really a link to the show program. As a result, if you make a link to next and that link is not called next, your link will act like show instead. To avoid this, add a profile-entry for the link to your and add the argument next to the entry. Also, if you use the showproc switch to specify an alternative viewer, leave no space between the options specified with the viewer and their values. For example, if you want to use the more command to scroll through messages in your inbox folder, and you want to pause every five lines, you would enter the following command, where there is no space between the option n and the value 5: % next +inbox -showproc more -n5 If there is space between the option n and the value 5, the command interprets 5 as a message number to view. PROFILE COMPONENTS
Path: To determine the user's Mail directory showproc: Program to show the message FILES
The user profile. SEE ALSO
show(1), prev(1), mh_profile(4) next(1)
All times are GMT -4. The time now is 01:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy