Sponsored Content
Top Forums Shell Programming and Scripting To Find the largest file in the given directory. Post 302423889 by Lakris on Sunday 23rd of May 2010 05:36:44 AM
Old 05-23-2010
Hi, an easier way to achieve (1) is:

Code:
ls -S|head -1

i.e. list files sorted on size, and show the top entry.

As for (2), there is no program cc in Your search path for programs. Either the C Compiler isn't included or You may need to install it or make it available in some way. Since it's a Live CD it may or may not be possible to install a compiler. I guess You must read the documentation for that particular release/Live CD.

Best regards,
Lakris

Last edited by Lakris; 05-23-2010 at 06:41 AM..
This User Gave Thanks to Lakris For This Post:
 

10 More Discussions You Might Find Interesting

1. Programming

Finding largest file in current directory?

I was hoping to get some assistance with this C program I am working on. The goal is to find the largest file in the current directory and then display this filename along with the filesize. What I have so far will display all the files in the current directory. But, how do I deal with "grabbing"... (1 Reply)
Discussion started by: AusTex
1 Replies

2. UNIX for Advanced & Expert Users

largest size directory in unix

I want to find the which directory under a directory occupy the maximum size is there is any command to find please help (5 Replies)
Discussion started by: arunkumar_mca
5 Replies

3. Filesystems, Disks and Memory

find the 5o largest files in a directory

I'm trying to find the 50 largest file in a directory named /sasdb and its' subdirectories. I'm using the find command and a pipe to awk Not sure if I'm actually getting the largest files from this directory and its subdirectories. Here is the code I used... find /sasdb -ls | awk '{print... (8 Replies)
Discussion started by: igidttam
8 Replies

4. Shell Programming and Scripting

find largest file

Hi, 1)I have XX directory and have lot of files ,I want to find largest file in that directory 2)how calculate the size of file in MB. Thanks, Mohan (15 Replies)
Discussion started by: mohan705
15 Replies

5. HP-UX

find the largest file in whole system

find the largest file in whole system (7 Replies)
Discussion started by: megh
7 Replies

6. Shell Programming and Scripting

Find and display largest file on system

What is the correct command for finding and displaying the largest file on the system? I don't know how to specify "largest" with "find", and pipe that to something that will display the file contents. Or should I be using cat, more, less, ls, or something else? (4 Replies)
Discussion started by: raidkridley
4 Replies

7. UNIX for Dummies Questions & Answers

How to find the list of 5 largest file in current directory?

Hello, How to find the list of 5 largest(size wise) file in current directory?i tried using ls -l | sort -t " " -r +5 -6 -n | head -5 but this is not giving correct output as ls -l command gives 1 extra line of output that is how many total files are there!so by running the above... (4 Replies)
Discussion started by: salman4u
4 Replies

8. Shell Programming and Scripting

Find largest files

Hello, i am on linux 2.6.13-1.1526_FC4smp , and i would be very greatfull if someone could help to find the largest files on that server. I know i can find files with find command or list them with ls , but is there a way that i could list let's say 10 biggest files on server ? :o (11 Replies)
Discussion started by: tonijel
11 Replies

9. UNIX for Dummies Questions & Answers

Best way to find largest files in a directory

What is the best way to find the largest files in a directory? I used du -k|sort -rn |less. I got a results for this. But if I used the following command , I got another result...a different order in the same directory. Why is that? ls -la |awk '{print $5," ",$9}' sort -rn|less. I saw that... (6 Replies)
Discussion started by: Pouchie1
6 Replies

10. Shell Programming and Scripting

Command to find largest file.

Hi All, Is there a direct Linux command to find the largest file by checking recursively in all the directories. (3 Replies)
Discussion started by: paragkalra
3 Replies
FMTUTIL(1)							     TeX Live								FMTUTIL(1)

NAME
fmtutil - utility for maintaining TeX format files fmtutil-sys - utility for maintaining TeX format files system-wide SYNOPSIS
fmtutil [OPTION...] COMMAND fmtutil-sys [OPTION...] COMMAND DESCRIPTION
fmtutil is used to create or recreate format and hyphenation files or show information about format files. COMMAND is one of: --all recreate all format files --byengine enginename (re)create formats that depend on the engine enginename --byfmt formatname (re)create the format for format formatname --byhyphen hyphenfile (re)create formats that depend on the hyphenation file hyphenfile --catcfg output the content of the config file --disablefmt formatname disable formatname in config file --edit no-op in TeX Live --enablefmt formatname ensable formatname in config file --help print a summary of commands and options --listcfg list (enabled and disabled) configurations, filtered to available formats --missing create all missing format files --refresh recreate only existing format files --showhyphen formatname print the name of the hyphenation file for the format formatname --version show version info OPTIONS
--cnffile file specify the configuration file fmtutil should use --dolinks (not implemented, just for compatibility) --fmtdir directory set the destination directory for format files generated by fmtutil to directory --force (not implemented, just for compatibility) --no-engine-subdir don't use engine-specific subdir of the fmtdir --no-error-if-no-format exit successfully if no format is selected --quiet be silent --test (not implemented, just for compatibility) FILES
fmtutil.cnf default configuration file SEE ALSO
kpsewhich(1) BUGS
None known, but report any bugs found to <tex-k@tug.org> (mailing list). AUTHOR
fmtutil was written by Thomas Esser <te@dbs.uni-hannover.de> and is in the public domain. This manual page was written by C.M. Connelly <c@eskimo.com>, for the Debian GNU/Linux system and later slightly adapted for the teTeX 3 release. TeX Live June 2011 FMTUTIL(1)
All times are GMT -4. The time now is 12:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy