Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rm(1) [minix man page]

RM(1)							      General Commands Manual							     RM(1)

rm - remove a file SYNOPSIS
rm [-ifrRvx] name ... OPTIONS
-i Interactive remove: ask before removing -f Forced remove: no questions asked -rR Remove directories and their contents -v Tell what rm is removing -x Do not cross device boundaries EXAMPLES
rm file # Remove file rm -i *.c # Remove .c files, asking about each DESCRIPTION
Rm removes one or more files. If a file has no write permission, rm asks for permission (type 'y' or 'n') unless -f is specified. If the file is a directory, it will be recursively descended and removed if and only if the -R flag is present. SEE ALSO
cp(1), mv(1), rmdir(1), unlink(2), rmdir(2). RM(1)

Check Out this Related Man Page

RMDIR(1)						    BSD General Commands Manual 						  RMDIR(1)

rmdir -- remove directories SYNOPSIS
rmdir [-pv] directory ... DESCRIPTION
The rmdir utility removes the directory entry specified by each directory argument, provided it is empty. Arguments are processed in the order given. In order to remove both a parent directory and a subdirectory of that parent, the subdirectory must be specified first so the parent directory is empty when rmdir tries to remove it. The following option is available: -p Each directory argument is treated as a pathname of which all components will be removed, if they are empty, starting with the last most component. (See rm(1) for fully non-discriminant recursive removal.) -v Be verbose, listing each directory as it is removed. EXIT STATUS
The rmdir utility exits with one of the following values: 0 Each directory entry specified by a directory operand referred to an empty directory and was removed successfully. >0 An error occurred. EXAMPLES
Remove the directory foobar, if it is empty: $ rmdir foobar Remove all directories up to and including cow, stopping at the first non-empty directory (if any): $ rmdir -p cow/horse/monkey SEE ALSO
The rmdir utility is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible. HISTORY
A rmdir command appeared in Version 1 AT&T UNIX. BSD
March 15, 2013 BSD
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File/directory information......

Basically i have done created the script below, and it functions ok, it prints the access rights the user has. But i need it to print the group permissions, and other permissions, it would also be helpful if i could print the permissions in numeric form aswell, if it is possible. I have looked in... (50 Replies)
Discussion started by: Makaveli.2003
50 Replies

2. Shell Programming and Scripting

Korne Script for format file

Hi All, I am not too familiar with Korne script so I need as much help as possible on this ;) What I want to do is: from the excel file on my computer, I want to take certain field from this xls file and put it in txt or cvs format in specific width column. Then fpt this file into the server. ... (51 Replies)
Discussion started by: CamTu
51 Replies

3. UNIX for Dummies Questions & Answers

Information about Unix System Administration

I'm a newbie so I'm not sure if I'm posting this in the right section... if I didn't, please forgive me :) I've been looking all over the web for information on system administration. I'd like to become a Unix System Administrator but I want to find some more info about the job. Can someone please... (54 Replies)
Discussion started by: hpicracing
54 Replies

4. UNIX for Dummies Questions & Answers

Using "find" and "-exec rm" ... Just no luck :(

Hi All, Ok, so I'm fairly new to Unix, but would like to think I'm grasping things fairly ok (Well until now ;) ), BUT with this one I'm going in circles ... LOL .. really can't work out why? So sorry for this post if it seems a little "dumb" .. But here goes. In short I'd like to achieve the... (55 Replies)
Discussion started by: Dean Rotherham
55 Replies

5. Shell Programming and Scripting

Date format

Hi, I need to conver the date format to binary and then subract it by one which will result me an output with yesterdays date and use it.. So that i will use the out and delete all the folders which are of minus one days.i.e if today is 2010-03-18 (this is a folder format at some xyz location).... (59 Replies)
Discussion started by: j_panky
59 Replies

6. AIX

ORACLE Database running slow on AIX ( nmon / topas )

Hello, How can I know if ORACLE Database is running slow due to Memory or due to processing power ? I have only Oracle Database running on a P4 with 4GB RAM. Could anyone suggest any tools which can help me determine exactly if it is memory issue or processor issue. (43 Replies)
Discussion started by: filosophizer
43 Replies

7. Programming

AIX calling WINSOCK during e-mail - normal?

Hey everyone, I'm completely stumped on this. An AIX machine I'm working on is attempting to send email, but the SMTP connection is failing. I have no idea what this code does or if it should even work. If someone could give me a hand, or a suggestion on what else to use, I would appreciate... (54 Replies)
Discussion started by: ctote
54 Replies

8. Shell Programming and Scripting

Create directories in stagging and informatica server

I have a function in bash script to create dir and subdir function mkdir_stage ( ) { mkdir -p /webdata/ecif/etl/$Env/$projectname/ mkdir -p /webdata/ecif/etl/$Env/$projectname/archivefiles mkdir -p /webdata/ecif/etl/$Env/$projectname/dropbox mkdir -p ... (40 Replies)
Discussion started by: nitinmathur18
40 Replies

9. Shell Programming and Scripting

Auto correct a csv file using UNIX shell script.

Hi All, There are list of 4-5 .csv files which has 12 columns.In some cases one of the record is split into 2 records. What needs to be done is this split record has to be auto corrected and placed in the csv file. Eg: Let us consider sample.csv file and in normal conditions the file would... (40 Replies)
Discussion started by: karthik_ak
40 Replies

10. UNIX for Advanced & Expert Users

How to determine the encoding of this dd image?

I have extracted a raw data file from a magnetic tape using the dd command Afterwards, I managed to read the extracted data with Bless HexEditor and I found out that at offset 0x200000 there is a sequence of value which originally was stored in a table. I would like to extract this data and... (45 Replies)
Discussion started by: NICEPeppino
45 Replies

11. SuSE

Post Your /proc/cpuinfo here!

Here is a chance for Linux users to easily compare Linux CPU info and some meaningless BOGOMIPS. Everyone who is running Linux is welcome to: cat /proc/cpuinfo and post the results. Here is the results for processor : 0 vendor_id : AuthenticAMD cpu family... (182 Replies)
Discussion started by: Neo
182 Replies

12. Shell Programming and Scripting

Script to tar/rsync/rm multiple folder names

hi all, i attach a link with what im trying to do automatically via script but i have some questions i need answering please, bear in mind i am really new to bash scripting, the only thing i know how to do is commands in scripts like cd rm tar rsync cp stuff like that i have mutiple project... (48 Replies)
Discussion started by: robertkwild
48 Replies