DH_CLEAN(1) Debhelper DH_CLEAN(1)NAME
dh_clean - clean up package build directories
SYNOPSIS
dh_clean [debhelperoptions] [-k] [-d] [-Xitem] [path...]
DESCRIPTION
dh_clean is a debhelper program that is responsible for cleaning up after a package is built. It removes the package build directories, and
removes some other files including debian/files, and any detritus left behind by other debhelper commands. It also removes common files
that should not appear in a Debian diff:
#*# *~ DEADJOE *.orig *.rej *.SUMS TAGS .deps/* *.P *-stamp
It does not run "make clean" to clean up after the build process. Use dh_auto_clean(1) to do things like that.
dh_clean should be the last debhelper command run in the clean target in debian/rules.
FILES
debian/clean
Can list other paths to be removed.
Note that directories listed in this file must end with a trailing slash. Any content in these directories will be removed as well.
OPTIONS -k, --keep
This is deprecated, use dh_prep(1) instead.
The option is removed in compat 12.
-d, --dirs-only
Only clean the package build directories, do not clean up any other files at all.
-Xitem --exclude=item
Exclude files that contain item anywhere in their filename from being deleted, even if they would normally be deleted. You may use this
option multiple times to build up a list of things to exclude.
path ...
Delete these paths too.
Note that directories passed as arguments must end with a trailing slash. Any content in these directories will be removed as well.
SEE ALSO debhelper(7)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
11.1.6ubuntu2 2018-05-10 DH_CLEAN(1)
Check Out this Related Man Page
DH_CLEAN(1) Debhelper DH_CLEAN(1)NAME
dh_clean - clean up package build directories
SYNOPSIS
dh_clean [debhelperoptions] [-k] [-d] [-Xitem] [path...]
DESCRIPTION
dh_clean is a debhelper program that is responsible for cleaning up after a package is built. It removes the package build directories, and
removes some other files including debian/files, and any detritus left behind by other debhelper commands. It also removes common files
that should not appear in a Debian diff:
#*# *~ DEADJOE *.orig *.rej *.SUMS TAGS .deps/* *.P *-stamp
It does not run "make clean" to clean up after the build process. Use dh_auto_clean(1) to do things like that.
dh_clean should be the last debhelper command run in the clean target in debian/rules.
FILES
debian/clean
Can list other paths to be removed.
Note that directories listed in this file must end with a trailing slash. Any content in these directories will be removed as well.
OPTIONS-k, --keep
This is deprecated, use dh_prep(1) instead.
The option is removed in compat 12.
-d, --dirs-only
Only clean the package build directories, do not clean up any other files at all.
-Xitem --exclude=item
Exclude files that contain item anywhere in their filename from being deleted, even if they would normally be deleted. You may use this
option multiple times to build up a list of things to exclude.
path ...
Delete these paths too.
Note that directories passed as arguments must end with a trailing slash. Any content in these directories will be removed as well.
SEE ALSOdebhelper(7)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
11.1.6ubuntu2 2018-05-10 DH_CLEAN(1)
I'm just starting out in scripting (taking online classes) but I need to know how to clean out (delete) the content of a number of logs. All of the files end in 'trc'. Does anyone have a script or command (SED or AWK) I can use?
Julie (4 Replies)
Hey there, i am trying to list all the directories and sub directories of a file system, but am having a bit of trouble.
ls -lR|grep \/|grep '^\.' >> input.dat
i used this statement to list all the directories and sub directories and output them to a file
when i try to print them out on... (3 Replies)
Hello all!
I ran rm -rf on a wrong directory, noticed it and hit ctrl-c.
Is there any way on a debian machine to tell what actually got deleted?
As there were many dirs and files in this directory that I don't care for, I'd like to see if anything important was removed.
Or do you know in... (4 Replies)
How do I exclude directories with the find command on Solaris?
I want to skip the directories /proc and /shared.
find / -nouser -print
This shows me all files and directories that don't have an owner but I need to skip /shared and /proc.
I've been able to get it to work on Linux... (3 Replies)
Hi,
Please help me, how to get all the direcotries, its sub directories and its sub directories recursively, need to exclude all the files in the process.
I wanted to disply using a unix command all the directories recursively excluding files.
I tried 'ls -FR' but that display files as... (3 Replies)
Hello all, i'm stumped.... I need to list all directories with all there info and exclude the files, then vice versa. I am not sure if I need to string several ls commands together or how to even do that. I believe I need to do some variation of ls -l but need to figure out how to take out the... (5 Replies)
Hi,
I am having a list of directories with different login id's. My requirement is that i need to list the directories of my id and need to delete them. So i am using following code
ls -ltr ¦ grep userid ¦ rm -rf
But this is not working. So is there any way of doing it. Please note... (3 Replies)
Hi,
I need a list of the number of files in all (sub-)directories e.g.:
/a/b/c 1364
/a/b 125
/a 362
etc.
Should be nice to have the list sorted from high to low.
Regards,
Wim (6 Replies)
I am trying to display todays and yesterdays .rej files from a directory.
ls -lrt *.rej | grep 'Aug 12' ; ls -lrt *.rej | grep 'Aug 13'
Which is working as above.
But i want take 'Aug 12' and 'Aug 13' from a variable and the command should work everyday.
I am able to get todays files by... (9 Replies)
Hi Guys,
I need to access multiple directories whcih is following similar structure and need to copy those files in desitination path.
for eg :
if ]
then
cd ${DIR}/Mon/loaded
echo "copying files to $GRS_DIR"
cp * ${DIR}/Mon/
echo "Files of Monday are Copied"
fi
if ]
then... (5 Replies)
Can you please help tweak the below command to exclude all directories with the name "logs" and "tmp"
find . -type f \( ! -name "*.tar*" ! -name "*.bkp*" \) -exec /usr/xpg4/bin/grep -i "user_1" /dev/null {} + >result.out
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v... (9 Replies)
My requirement is to find out data in any of the file in particular path.
I am using UNIX OS.
For example I have two files. A123.rej & A345.rej
A123.rej contain data
123,456
A345.rej is a empty file.
I tried a code to find , if any of this file contains data, I need to echo as... (7 Replies)
Hello All,
I need a script that would delete files which are more than "X" number of days old, also if there can be a log file of the deleted files for reference.
I am from windows background hence finding it difficult. Any help is much appreciated
Regards
Wert (4 Replies)