Sponsored Content
Full Discussion: Deleting unamed directories
Top Forums UNIX for Dummies Questions & Answers Deleting unamed directories Post 41748 by miredale on Monday 13th of October 2003 11:52:44 AM
Old 10-13-2003
Hammer & Screwdriver removing direcotries with ACSII charactors

If you want to remove files with ASCII charactors you would do the following command : rm -i *
This will search through the directory and ask you if you want to delete the selected file, you just reply with a Y or N

I guess if you want to delete directories you could try rm -fri *

but test this is a test directory stucture to begin with just in case.

hope it works
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

deleting nfs directories...

Hi I have Solaris 8 in several Ultras and they share some directories between each others using nfs. (you know, one shares the other mounts the remote directory into a local...). The problem is that one guy (me) deleted a shared directory and now the computer that was mounting it remotely is... (3 Replies)
Discussion started by: piltrafa
3 Replies

2. UNIX for Dummies Questions & Answers

Recursively deleting directories

Say I have a directory call test, and several directories nested in it, and several directories nested in them. And I want to remove all directories within "test" and its subdirectories that have the name "cvs", how can I do this? I tried rm -r cvs, but that only removed the top level direcotry... (4 Replies)
Discussion started by: mikeshank
4 Replies

3. UNIX for Dummies Questions & Answers

Deleting string from file of same name within several directories

I searched the forum, but I don't think I was able to find exactly what I'm looking for. Is there a command in shell where I can delete a particular string from every file it occurs in (where the file is named the same, but sits in different directories)? Example: Within the directory I am... (5 Replies)
Discussion started by: halo969
5 Replies

4. UNIX for Dummies Questions & Answers

What/How to check before deleting files and directories

Hi there, I have a some directories containing web files that are old, and I need to remove them. I know that there might be sym links and hyperlinks pointing to these old directories. If that's the case, then I'll have to fix the links before deleting these old directories to avoid broken... (4 Replies)
Discussion started by: yvochan
4 Replies

5. UNIX for Dummies Questions & Answers

deleting all the sub directories

hello., i am creating a certain sub directories as apart of my requirement, and then later on i have to delete all those sub directories.. ____________________________________________________ DIR1="/home/pavi/cvs/20071426/TEMP" echo " DIR1 is : " $DESTDIR1 echo... (2 Replies)
Discussion started by: pavan_test
2 Replies

6. Filesystems, Disks and Memory

deleting directories from a list

I have a need to remove a bunch of old user home directories from my OS X server. Using BASH and ls, I've been able to redirect the directory structure to a file with 'ls -l >userslist'. I've then manually sifted through the list for directories whos owner doesn't match the a given directory name... (1 Reply)
Discussion started by: amacgeek
1 Replies

7. UNIX for Dummies Questions & Answers

deleting older directories

how can we delete directories older than 6 months (9 Replies)
Discussion started by: dnat
9 Replies

8. Shell Programming and Scripting

Deleting empty directories using find

Hello, I'm submitting this thread, because I was looking a way to delete empty directories using find and I found a thread from 2007 that helped me. I have worked from that threat, but I found that the command sent would analyze original directory and may delete it to. I have come up with expanded... (3 Replies)
Discussion started by: lramirev
3 Replies

9. Shell Programming and Scripting

deleting files in sub directories!

Hello out there, I want to setup a crontab feature to remove temporary pdf files from sub directories that are older than 30 days. I want to presevere the directory structer though. I got this far for a command. Will this remove the pdf's in subdirectories or just directly under the pdf folder? If... (6 Replies)
Discussion started by: vsekvsek
6 Replies

10. Shell Programming and Scripting

Deleting directories

I want to delete directories which are empty and directories which are 2 level deep. example: /app/data/logs/G07696115/G07696115 So if a same directory is there inside G07696115 with the same name G07696115, i want to find and delete that alone(Make sure you do not touch directory any... (4 Replies)
Discussion started by: gtm004
4 Replies
SHOWMOUNT(8)						      System Manager's Manual						      SHOWMOUNT(8)

NAME
showmount - show mount information for an NFS server SYNOPSIS
showmount [ -adehv ] [ --all ] [ --directories ] [ --exports ] [ --help ] [ --version ] [ host ] DESCRIPTION
showmount queries the mount daemon on a remote host for information about the state of the NFS server on that machine. With no options showmount lists the set of clients who are mounting from that host. The output from showmount is designed to appear as though it were pro- cessed through ``sort -u''. OPTIONS
-a or --all List both the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable. See the notes on rmtab in rpc.mountd(8). -d or --directories List only the directories mounted by some client. -e or --exports Show the NFS server's export list. -h or --help Provide a short help summary. -v or --version Report the current version number of the program. --no-headers Suppress the descriptive headings from the output. SEE ALSO
rpc.mountd(8), rpc.nfsd(8) BUGS
The completeness and accuracy of the information that showmount displays varies according to the NFS server's implementation. Because showmount sorts and uniqs the output, it is impossible to determine from the output whether a client is mounting the same directory more than once. AUTHOR
Rick Sladkey <jrs@world.std.com> 6 October 1993 SHOWMOUNT(8)
All times are GMT -4. The time now is 07:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy