02-09-2011
Thanks chubler and rdcwayx.
I was trying in debian its not working. I just tried in Unix it worked.
I dont know why its not working the same command in debian
Thanks for your help
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there a way to sort files by size using the ls command?
thanks in advance (1 Reply)
Discussion started by: AMD
1 Replies
2. UNIX for Dummies Questions & Answers
Hi
I am using the command below to list the 10 biggest directories and files in my present directory
du -hs * | sort +0 | tail -10
the output is
8K disk-space
16K rish
32K WINDOWS
48K tests
104K imgvdEwLa.jpg
168K 020204_aerosmith_1024768.jdk
3.2M Acdc -... (4 Replies)
Discussion started by: the.noob
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have directories with name like:
aaa
bbb
ccc
...
I would like to to see which directories are the largest and then list the files within each. I have success using:
du -ks * | sort -rin | head -n 20
which gives me an output like:
120 bbb
27 ccc
3 aaa
...
I would like... (3 Replies)
Discussion started by: ChatPerdu
3 Replies
4. UNIX for Dummies Questions & Answers
Hi
I have a file that is a fdupes output. I'd like to sort the duplicated file by size. The format file is the following:
5996544 bytes each:
/path1/to/file1.jpg
/path2/to/file1.jpg
/pathx/to/file1.jpg
... random number of lines
/path999/to/file1.jpg
591910 bytes each:... (2 Replies)
Discussion started by: AdminLew
2 Replies
5. Shell Programming and Scripting
Hello,
I've done
ls -ls >fileout1
When I do the sort command for +4 it sorts it bu group. When I do +5 it sorts it by date. But it's skipping the file size column. Example:
rwxr-xr-x 1 Grueben sup 65 16 Sep 13:58 cdee
How can I sort it by file size? It doesn't... (2 Replies)
Discussion started by: Grueben
2 Replies
6. Shell Programming and Scripting
How do you combine these ls commands so that I can have the outputs by name, time stamp, and size?
ls -al |grep name_of_file
ls -al | sort +4nr
ls -l -t
Please advise. (4 Replies)
Discussion started by: Daniel Gate
4 Replies
7. Shell Programming and Scripting
fuser -OdV /temp
This command returns the output below;
inode=132 size=10871 fd=2 5046330
inode=570 size=292 fd=1 5439528
inode=259 size=2669 fd=1 5570758
inode=759 size=255 fd=1 6226124
inode=636 size=1035 fd=1 ... (8 Replies)
Discussion started by: Daniel Gate
8 Replies
8. Shell Programming and Scripting
Hello,
I'm trying to find top 5(highest) directories by size. I did something like du -sh * > $file
Where I can get all the size with respect to directories, but I need only top 5 directory from the file. How can I sort by size in the file and print top 5 sizes with the directory name???
... (3 Replies)
Discussion started by: pjeedu2247
3 Replies
9. UNIX for Dummies Questions & Answers
-rw-r--r-- 1 oracle oinstall 4 Jan 17 16:23 a
-rw-r--r-- 1 oracle oinstall 212 Jan 17 17:51 amar
-rw-r--r-- 1 oracle oinstall 32 Jan 17 17:30 b
-rw-r--r-- 1 oracle oinstall 246 Jan 17 15:40 h1.tar.gz
Hi,
I want combination of linux command to sort out the line which has 32k size.
... (5 Replies)
Discussion started by: karthick nath
5 Replies
10. UNIX for Beginners Questions & Answers
OS : RHEL 6.6
I want to list the files/directories sorted (Ascending or Desceding) by their size.
As you can see in the below example, du command doesn't sort by size.
In Linux world, is there any other command or workaround using du command to list the files/directories sorted by their... (6 Replies)
Discussion started by: John K
6 Replies
LEARN ABOUT DEBIAN
make-klone-project
MAKE-KLONE-PROJECT(1) General Commands Manual MAKE-KLONE-PROJECT(1)
NAME
make-klone-project - manage a KLone based custom Debian package
SYNOPSIS
make-klone-project [options] COMMAND
DESCRIPTION
make-klone-project is a tool to create and manage custom webserver packages that use KLone, a framework that integrates a web site with
possibly dynamic content and a web server into a single binary.
The aim is to let the author to focus on editing the site specific files under webapp/ and allow creating a Debian package containing the
web server and an init.d script to manage it with dpkg-buildpackage.
USAGE
make-klone-project takes one non-option argument.
create Create a new project directory, package-0.1 and seeds it with KLone's source and a debian/ directory.
clean Remove all non-user created files and directories ie. everything but debian/copyright, debian/changelog, debian/wsp.* and webapp/.
See also the -l option below.
refresh
Cleans the project directory as with make-klone-project clean and reseeds the KLone source and the debian/ directory.
EXAMPLES
make-klone-project create -p myapp -m "Kari Pahula <kaol@debian.org>"
cd myapp-0.1
(edit any files that require editing, mostly in webapp/)
make-klone-project refresh
dpkg-buildpackage -rfakeroot
sudo dpkg -i ../myapp_0.1_i386.deb
OPTIONS
-b NAME
Name the created web server binary as NAME. If not specified the package name is used.
-l Look for the project root directory in clean and refresh commands by changing the working directory to the parent directory until
they find a file named debian/wsp.opt.maintainer in the current directory. Returns with error if none is found. Without this op-
tion, only the current directory is checked for this file.
The upside of using this option is that make-klone-project will be agnostic about the working directory, as long as it is somewhere
inside the project tree, just like dpkg-buildpackage. The downside is that you run a greater risk of having the clean command cause
unwanted data loss, if you happen to have an unfortunately named file in a wrong place.
-m NAME
Sets the maintainer name as NAME.
-p NAME
Set the package name as NAME. Only effective with the create command. If not specified, uses customkloneapp.
FILES
debian/wsp.description
A custom description for the package. Should be formatted like the corresponding field in the debian/control file.
debian/wsp.opt.*
The options set in prior calls to make-klone-project.
webapp/
The user specified site tree, to be imported as the site by KLone.
NOTES
Your web server will be run as a root, so you will need to use either allow_root or uid and gid options in your etc/kloned.conf.
SEE ALSO
dpkg-buildpackage(1), klone(1), kloned.conf(5), kloned(8).
AUTHOR
make-klone-project was written by Kari Pahula <kaol@debian.org>.
16 Sep 2007 MAKE-KLONE-PROJECT(1)