12-29-2008
make sure you are in the correct directory before issuing the command:
rm -rf *
will remove all files and directories.
use with care!!!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
This must be simple! How do you delete a directory that contains other files and directories?:confused: (2 Replies)
Discussion started by: firefinger
2 Replies
2. Programming
I have a number of files of the format filename.xfr_mmddyy_%H%M%S which i get in a specified directory daily. Now i want to search in the specified directory & delete the files which are more than 2 days old .So I use a command
find $DIR/backup/* -ctime +2 -exec rm -f {} \;
But after executing... (1 Reply)
Discussion started by: dharmesht
1 Replies
3. Shell Programming and Scripting
Hey! I have found similar posts both here and on other sites regarding this, but I cannot seem to get my script to work. I want to delete the oldest file in a test directory if there are more than two files. My script is currently:
#!/bin/bash
MEPATH=/usr/local/bin/test
FILECOUNT=`ls... (4 Replies)
Discussion started by: Immolation
4 Replies
4. Shell Programming and Scripting
Hi All,
I have to maintain few servers and in those servers in a specific directory some special jobs keeps on running .......
The directory is having many kind of files like.....acd*, hud*, rca*....bla bla bla.......
My aim is that if due to any job-any time a file having initials like... (4 Replies)
Discussion started by: jitendra.pat04
4 Replies
5. Shell Programming and Scripting
got it figured out :) (1 Reply)
Discussion started by: sHockz
1 Replies
6. Shell Programming and Scripting
I am trying to do the following task :
export ENV=aaa
export ENV_PATH=$(cd /apps | ls | grep $ENV)
However, it's not working. What's the way to change to directory and search some file in that directory in single command
Please help. (2 Replies)
Discussion started by: saurau
2 Replies
7. UNIX for Dummies Questions & Answers
Hi Folks,
I have a directory in unix that is /usr/local/pos contain the folowing directoreis ..that is
dir1
dir2
dir3
now I want to delete only dir2 please advise how to remove the directory dir 2 ..that is rm command and how to use it , and second if I want to zip the dir3 please... (1 Reply)
Discussion started by: punpun66
1 Replies
8. Shell Programming and Scripting
I need a script which should watch a directory for a file with specific directory.
If it finds a file in directory, it should search for few specific keyword in the file. if the keyword exists, it should trim string from specific column.
The file should be moved to another directory and the a... (8 Replies)
Discussion started by: akashdeepak
8 Replies
9. AIX
I have a directory under my home directory called: my work. I cannot delete this directory and I want to.
If anyone needs additional information. Please let me know.
Any help you can provide is greatly appreciated. (8 Replies)
Discussion started by: Nerdgirl1313
8 Replies
10. Shell Programming and Scripting
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
Discussion started by: digioleg54
9 Replies
LEARN ABOUT REDHAT
chkfontpath
CHKFONTPATH(8) Red Hat, Inc. CHKFONTPATH(8)
NAME
chkfontpath - simple interface for adding, removing, and listing directories in the X font server's path
SYNOPSIS
chkfontpath [-lqfh] [-a name of directory to add] [-r name of directory to remove]
DESCRIPTION
chkfontpath provides a simple method of configuring the directories contained in the X font server's path. As of Red Hat 6.0, all fonts in
X are served via this separate font server process, not through the main X server process. This speeds up font rendering, and also allows
use of font servers which are not running on the local host.
chkfontpath is mainly used by rpm in its %post and %postun sections to add and remove new directories to the server's config file at
installation and de-installation time of packages containing fonts.
-a, --add=name of directory to add
Add a directory to the font path.
-r, --remove=name of directory to remove
Remove a directory from the font path.
-l, --list
List all directories in the font path.
-q, --quiet
Quiet operation; don't display any output to the screen, even when there is an error during operation.
-f, --first
Requires usage of the add command; puts the specified directory first in the font path, rather than last.
-h, --help
Show detailed help on the command line.
When directories are added to the path, some sanity checking is performed to make sure you are not adding a directory without the file
fonts.dir contained in it, which the server needs to be able to render fonts properly. When a path is succesfully added or removed, the
xfs process is restarted if it is currently running.
RETURN CODES
chkfontpath returns 0 on success, or 1 on error.
FILES
/etc/X11/fs/config
Configuration file for the X font server (xfs).
SEE ALSO
xfs(1),fslsfonts(1)
AUTHOR
Written by Preston Brown <pbrown@redhat.com>
REPORTING BUGS
Report bugs to <http://bugzilla.redhat.com>.
COPYRIGHT
Copyright (C) 1999-2001 Red Hat, Inc. All rights reserved.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTIBILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
4th Berkeley Distribution Thu Jan 18 2001 CHKFONTPATH(8)